]> git.pld-linux.org Git - packages/python-pyasn1_modules.git/commitdiff
automatic change: use py_build/py_install macros
authorJacek Konieczny <jajcus@jajcus.net>
Sat, 28 Nov 2015 17:06:43 +0000 (18:06 +0100)
committerJacek Konieczny <jajcus@jajcus.net>
Sat, 28 Nov 2015 17:06:43 +0000 (18:06 +0100)
python-pyasn1_modules.spec

index 31d49bcf8d0751d794a3a24ebe1df63ef37dff66..f7ec20c7fb2132eec5032335806a6bcfa1abd145 100644 (file)
@@ -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}
This page took 0.169596 seconds and 4 git commands to generate.