[packages/python-mechanize] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:30:29 CET 2015
commit 8c18a1f201dd147727d9d237df409c98f2e935f4
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-mechanize.spec | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/python-mechanize.spec b/python-mechanize.spec
index ab97953..01d4b10 100644
--- a/python-mechanize.spec
+++ b/python-mechanize.spec
@@ -29,13 +29,11 @@ Biblioteka do automatycznej interakcji ze stronami WWW.
%setup -q -n %{module}-%{version}%{extraver}
%build
-%{__python} setup.py build
+%py_build
%install
rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+%py_install
%py_postclean %{_datadir}/%{name}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-mechanize.git/commitdiff/8c18a1f201dd147727d9d237df409c98f2e935f4
More information about the pld-cvs-commit
mailing list