[packages/python-pyasn1_modules] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:36:23 CET 2015
commit b4b95595f9b423ed71f2842766d33c76722eba5b
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 18:06:43 2015 +0100
automatic change: use py_build/py_install macros
python-pyasn1_modules.spec | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/python-pyasn1_modules.spec b/python-pyasn1_modules.spec
index 31d49bc..f7ec20c 100644
--- a/python-pyasn1_modules.spec
+++ b/python-pyasn1_modules.spec
@@ -28,15 +28,13 @@ It's thought to be useful to protocol developers and testers.
%setup -q -n %{module}-%{version}
%build
-%{__python} setup.py build
+%py_build
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-%{__python} setup.py install \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py_install
find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm
cp tools/*.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pyasn1_modules.git/commitdiff/b4b95595f9b423ed71f2842766d33c76722eba5b
More information about the pld-cvs-commit
mailing list