[packages/python-pyannodex] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:36:12 CET 2015
commit fa3628ed21344029fe77c9730be96586bbdf7c37
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-pyannodex.spec | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/python-pyannodex.spec b/python-pyannodex.spec
index 8be6bf8..71b5feb 100644
--- a/python-pyannodex.spec
+++ b/python-pyannodex.spec
@@ -25,16 +25,14 @@ Wiązania Pythona dla bibliotek Annodex.
%setup -q -n pyannodex-%{version}
%build
-%{__python} setup.py build
+%py_build
%install
rm -rf $RPM_BUILD_ROOT
#install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_examplesdir}/%{name}-%{version}}
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-%{__python} setup.py install \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+%py_install
cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
# install as examples (just python reimplementation of C utils from libannodex)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pyannodex.git/commitdiff/fa3628ed21344029fe77c9730be96586bbdf7c37
More information about the pld-cvs-commit
mailing list