[packages/bkchem] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 19:23:01 CET 2015
commit d184795210779779774b581cd423e246efdf4089
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 19:20:07 2015 +0100
automatic change: use py_build/py_install macros
bkchem.spec | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/bkchem.spec b/bkchem.spec
index edb5955..e8d8833 100644
--- a/bkchem.spec
+++ b/bkchem.spec
@@ -55,16 +55,14 @@ jakości. Używane są biblioteki Cairo oraz pycairo.
%setup -q
%build
-%{__python} setup.py build
+%py_build
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_pixmapsdir}}
install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
install images/bkchem.png $RPM_BUILD_ROOT%{_pixmapsdir}/bkchem.png
-%{__python} setup.py install \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+%py_install
#fix executable
sed -e "s@$RPM_BUILD_ROOT@@g" -i $RPM_BUILD_ROOT%{_bindir}/%{name}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/bkchem.git/commitdiff/d184795210779779774b581cd423e246efdf4089
More information about the pld-cvs-commit
mailing list