[packages/python-django-assets] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:20:36 CET 2015
commit 840ad83ccd613a0ba7fac989a09653dfb50a413a
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-assets.spec | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/python-django-assets.spec b/python-django-assets.spec
index f06ec33..0b3ed48 100644
--- a/python-django-assets.spec
+++ b/python-django-assets.spec
@@ -32,7 +32,7 @@ merging, minifying and compiling CSS and Javascript files.
%setup -q -n %{module}-%{version}
%build
-%{__python} setup.py build
+%py_build
%if %{with tests}
# Unittests can't be run yet: https://github.com/miracle2k/django-assets/issues/10
@@ -46,10 +46,7 @@ rm -r html/.{doctrees,buildinfo}
%install
rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
- --skip-build \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py_install
%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/tests
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-django-assets.git/commitdiff/840ad83ccd613a0ba7fac989a09653dfb50a413a
More information about the pld-cvs-commit
mailing list