[packages/python-django_reversion] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:21:23 CET 2015
commit 3c4b9979fdd0853e275a628d74a9edfd40b01561
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 18:06:42 2015 +0100
automatic change: use py_build/py_install macros
python-django_reversion.spec | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/python-django_reversion.spec b/python-django_reversion.spec
index 4e6c8aa..cbf533a 100644
--- a/python-django_reversion.spec
+++ b/python-django_reversion.spec
@@ -41,14 +41,11 @@ absolute minimum of code changes.
%setup -q -n django-%{module}-%{version}
%build
-export CFLAGS="%{rpmcflags}"
-%{__python} setup.py build
+%py_build
%install
rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py_install
%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
%py_comp $RPM_BUILD_ROOT%{py_sitedir}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-django_reversion.git/commitdiff/3c4b9979fdd0853e275a628d74a9edfd40b01561
More information about the pld-cvs-commit
mailing list