From: Jan Rękorajski Date: Fri, 21 Oct 2016 21:43:52 +0000 (+0200) Subject: - use macros for build/install X-Git-Tag: auto/th/pootle-2.1.6-6 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=a6adb95b05bdf22e2f10d8db6b12dee1e7a87141;p=packages%2Fpootle.git - use macros for build/install - rel 6 --- diff --git a/pootle.spec b/pootle.spec index d4e41ea..5158f39 100644 --- a/pootle.spec +++ b/pootle.spec @@ -4,7 +4,7 @@ Summary: Localization and translation management web application Name: pootle Version: 2.1.6 -Release: 5 +Release: 6 License: GPL v2 Group: Development/Tools Source0: http://downloads.sourceforge.net/translate/%{fullname}-%{version}.tar.bz2 @@ -69,16 +69,13 @@ It's features include:: %{__sed} -i -e '1s,#!.*env python,#!%{__python},' wsgi.py %build -%{__python} setup.py build +%py_build %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_sbindir},%{_datadir}/pootle,%{_sharedstatedir}/pootle/po/.tmp,%{_sysconfdir}} -%{__python} setup.py install \ - --skip-build \ - --optimize=2 \ - --root=$RPM_BUILD_ROOT +%py_install # install_dirs.py was modified _after_ install completed, so compile again # before py_postclean