[packages/python-gammu] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:24:20 CET 2015
commit f520967b4b14ba48f6cd85f6659d2ade8ff7f82b
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 18:06:42 2015 +0100
automatic change: use py_build/py_install macros
python-gammu.spec | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/python-gammu.spec b/python-gammu.spec
index 89ed9b0..a287c4f 100644
--- a/python-gammu.spec
+++ b/python-gammu.spec
@@ -23,15 +23,12 @@ Python bindings for Gammu library.
%setup -q -n %{module}-%{version}
%build
-export CFLAGS="%{rpmcflags}"
-%{__python} setup.py build
+%py_build
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-%{__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}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-gammu.git/commitdiff/f520967b4b14ba48f6cd85f6659d2ade8ff7f82b
More information about the pld-cvs-commit
mailing list