Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: libuser.spec
- ===================================================================
- --- libuser.spec (révision 916618)
- +++ libuser.spec (copie de travail)
- @@ -138,10 +138,14 @@
- # Remove unpackaged files
- rm -rf %{buildroot}/usr/share/man/man3/userquota.3 \
- - %{buildroot}%{py_platsitedir}/*a \
- + %{buildroot}%{python2_sitearch}/*a \
- %{buildroot}%{_libdir}/%{name}/*.la \
- %{buildroot}%{_libdir}/*.la
- +%if 0%{?with_python3}
- +rm -rf %{buildroot}%{python3_sitearch}/*a
- +%endif # if with_python3
- +
- #check
- #make check
- @@ -149,12 +153,14 @@
- export LD_LIBRARY_PATH
- # Verify that all python modules load, just in case.
- -pushd %{buildroot}/%{_libdir}/python%{pyver}/site-packages/
- -python -c "import libuser"
- +pushd %{buildroot}%{python2_sitearch}/
- +%{__python2} -c "import libuser"
- popd
- %if 0%{?with_python3}
- -pushd %{buildroot}/%{_libdir}/python%{py3ver}/site-packages/
- +pushd %{buildroot}%{python3_sitearch}/
- +# The Python 3 module only supports UTF-8
- +LC_ALL=en_US.UTF-8 \
- %{__python3} -c "import libuser"
- popd
- %endif # if with_python3
- @@ -178,7 +184,7 @@
- %{_libdir}/libuser.so.%{major}{,.*}
- %files python
- -%{py_platsitedir}/*.so
- +%{python2_sitearch}/*.so
- %if 0%{?with_python3}
- %files python3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement