[packages/pootle/pootle-2.1] - use macros for build/install - rel 6
baggins
baggins at pld-linux.org
Fri Oct 21 23:44:10 CEST 2016
commit a6adb95b05bdf22e2f10d8db6b12dee1e7a87141
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Oct 21 23:43:52 2016 +0200
- use macros for build/install
- rel 6
pootle.spec | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
---
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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pootle.git/commitdiff/a6adb95b05bdf22e2f10d8db6b12dee1e7a87141
More information about the pld-cvs-commit
mailing list