Advertisement
david_david

python-efl.spec.diff

Apr 18th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. Index: python-efl.spec
  2. ===================================================================
  3. --- python-efl.spec (révision 1003461)
  4. +++ python-efl.spec (copie de travail)
  5. @@ -9,8 +9,8 @@
  6. Group: Development/Python
  7. Url: https://launchpad.net/pyliblzma
  8. Source0: python-%{module}-%{version}.tar.xz
  9. -BuildRequires: python-devel
  10. -BuildRequires: python-setuptools
  11. +BuildRequires: pkgconfig(python2)
  12. +BuildRequires: pythonegg(2)(setuptools)
  13. BuildRequires: pkgconfig(dbus-python)
  14. BuildRequires: pkgconfig(ecore)
  15. BuildRequires: pkgconfig(elementary)
  16. @@ -24,7 +24,7 @@
  17. Summary: Python 3 bindings for the EFL
  18. Group: Development/Python
  19. BuildRequires: pkgconfig(python3)
  20. -BuildRequires: python3-setuptools
  21. +BuildRequires: pythonegg(3)(setuptools)
  22.  
  23. %description -n python3-%{module}
  24. Python 3 bindings for the EFL library.
  25. @@ -31,25 +31,18 @@
  26.  
  27. %prep
  28. %setup -q
  29. -cp -a . %{py3dir}
  30.  
  31. %build
  32. -env CFLAGS="%{optflags}" %{__python} setup.py build
  33. +%py2_build
  34. +%py3_build
  35.  
  36. -pushd %{py3dir}
  37. -env CFLAGS="%{optflags}" %{__python3} setup.py build
  38. -popd
  39. -
  40. %install
  41. -%{__python} setup.py install --root=%{buildroot}
  42. +%py2_install
  43. +%py3_install
  44.  
  45. -pushd %{py3dir}
  46. -%{__python3} setup.py install --root=%{buildroot}
  47. -popd
  48. -
  49. %files
  50. -%{python_sitearch}/efl
  51. -%{python_sitearch}/python_efl-*.egg-info
  52. +%{python2_sitearch}/efl
  53. +%{python2_sitearch}/python_efl-*.egg-info
  54.  
  55. %files -n python3-%{module}
  56. %{python3_sitearch}/efl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement