[packages/python-pyinotify] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:38:32 CET 2015
commit 27fc82124c97cb1acf9a80bd2439b989043cef0a
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-pyinotify.spec | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/python-pyinotify.spec b/python-pyinotify.spec
index 8c39251..75e1cb1 100644
--- a/python-pyinotify.spec
+++ b/python-pyinotify.spec
@@ -54,17 +54,14 @@ systemie plików.
%setup -q -n %{module}-%{version}
%build
-export CFLAGS="%{rpmcflags}"
-%{__python} setup.py build -b build_python2
-%{__python3} setup.py build -b build_python3
+%py_build -b build_python2
+%py3_build -b build_python3
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
mv build_python2 build
-%{__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}
@@ -74,10 +71,7 @@ install python2/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%{__rm} -r build
mv build_python3 build
-%{__python3} setup.py \
- install \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+%py3_install
%clean
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pyinotify.git/commitdiff/27fc82124c97cb1acf9a80bd2439b989043cef0a
More information about the pld-cvs-commit
mailing list