[packages/python-log4py] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:29:42 CET 2015
commit 8f0540a83b47be7a188034dab9fdf6fdbcef3648
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-log4py.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/python-log4py.spec b/python-log4py.spec
index b32c962..f08b6af 100644
--- a/python-log4py.spec
+++ b/python-log4py.spec
@@ -33,7 +33,7 @@ konfiguracyjnych.
%setup -q -n %{module}-%{version}
%build
-python setup.py build
+%py_build
%install
rm -rf $RPM_BUILD_ROOT
@@ -41,7 +41,7 @@ rm -rf $RPM_BUILD_ROOT
PYTHONPATH=$RPM_BUILD_ROOT%{py_sitescriptdir}
export PYTHONPATH
-python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
+%py_install
find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm
%clean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-log4py.git/commitdiff/8f0540a83b47be7a188034dab9fdf6fdbcef3648
More information about the pld-cvs-commit
mailing list