[packages/python-unicodecsv] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:47:22 CET 2015
commit 8215e5c9af20236d667d37ab2ecad0d2996da23b
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 18:06:44 2015 +0100
automatic change: use py_build/py_install macros
python-unicodecsv.spec | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/python-unicodecsv.spec b/python-unicodecsv.spec
index 08caa15..1d889cb 100644
--- a/python-unicodecsv.spec
+++ b/python-unicodecsv.spec
@@ -29,16 +29,13 @@ which supports unicode strings without a hassle.
%setup -q -n %{module}-%{version}
%build
-%{__python} setup.py build
+%py_build
%{?with_tests:%{__python} setup.py test}
%install
rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
- --skip-build \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py_install
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-unicodecsv.git/commitdiff/8215e5c9af20236d667d37ab2ecad0d2996da23b
More information about the pld-cvs-commit
mailing list