]> git.pld-linux.org Git - packages/pootle.git/commitdiff
- use macros for build/install pootle-2.1 auto/th/pootle-2.1.6-6
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 21 Oct 2016 21:43:52 +0000 (23:43 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Fri, 21 Oct 2016 21:43:52 +0000 (23:43 +0200)
- rel 6

pootle.spec

index d4e41ea12ed3c24fc2028a9ffeaf2f957199a2a6..5158f39f0cf8536bb27c6208ff4f498dcd3a118b 100644 (file)
@@ -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
This page took 0.099812 seconds and 4 git commands to generate.