Advertisement
david_david

libuser.spec.diff

Dec 28th, 2015
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. Index: libuser.spec
  2. ===================================================================
  3. --- libuser.spec (révision 916618)
  4. +++ libuser.spec (copie de travail)
  5. @@ -138,10 +138,14 @@
  6.  
  7. # Remove unpackaged files
  8. rm -rf %{buildroot}/usr/share/man/man3/userquota.3 \
  9. - %{buildroot}%{py_platsitedir}/*a \
  10. + %{buildroot}%{python2_sitearch}/*a \
  11. %{buildroot}%{_libdir}/%{name}/*.la \
  12. %{buildroot}%{_libdir}/*.la
  13.  
  14. +%if 0%{?with_python3}
  15. +rm -rf %{buildroot}%{python3_sitearch}/*a
  16. +%endif # if with_python3
  17. +
  18. #check
  19. #make check
  20.  
  21. @@ -149,12 +153,14 @@
  22. export LD_LIBRARY_PATH
  23.  
  24. # Verify that all python modules load, just in case.
  25. -pushd %{buildroot}/%{_libdir}/python%{pyver}/site-packages/
  26. -python -c "import libuser"
  27. +pushd %{buildroot}%{python2_sitearch}/
  28. +%{__python2} -c "import libuser"
  29. popd
  30.  
  31. %if 0%{?with_python3}
  32. -pushd %{buildroot}/%{_libdir}/python%{py3ver}/site-packages/
  33. +pushd %{buildroot}%{python3_sitearch}/
  34. +# The Python 3 module only supports UTF-8
  35. +LC_ALL=en_US.UTF-8 \
  36. %{__python3} -c "import libuser"
  37. popd
  38. %endif # if with_python3
  39. @@ -178,7 +184,7 @@
  40. %{_libdir}/libuser.so.%{major}{,.*}
  41.  
  42. %files python
  43. -%{py_platsitedir}/*.so
  44. +%{python2_sitearch}/*.so
  45.  
  46. %if 0%{?with_python3}
  47. %files python3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement