[packages/gourmet] - use rpm python macros - rel 4

baggins baggins at pld-linux.org
Fri May 6 09:18:06 CEST 2016


commit 31b71e6f855518c7280f8ac0ec0185adeea01e0b
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri May 6 09:17:51 2016 +0200

    - use rpm python macros
    - rel 4

 gourmet.spec | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/gourmet.spec b/gourmet.spec
index 8bd5d79..bd25b52 100644
--- a/gourmet.spec
+++ b/gourmet.spec
@@ -2,7 +2,7 @@ Summary:	Gourmet Recipe Manager is a simple but powerful recipe-managing applica
 Summary(hu.UTF-8):	Gourmet Recipe Manager egy egyszerű, de hatékony recept-nyilvántartó alkalmazás
 Name:		gourmet
 Version:	0.15.9
-Release:	3
+Release:	4
 License:	GPL v2
 Group:		X11/Applications
 Source0:	http://downloads.sourceforge.net/grecipe-manager/%{name}-%{version}.tar.gz
@@ -70,15 +70,12 @@ for file in *.po; do
 	msgfmt -o $lang/LC_MESSAGES/gourmet.mo $file
 done
 cd ..
-python setup.py build
+%py_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-python setup.py install \
-	--root=$RPM_BUILD_ROOT \
-	--optimize=2
-
+%py_install
 %py_postclean
 
 mv $RPM_BUILD_ROOT%{_localedir}/{sv_SE,sv}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gourmet.git/commitdiff/31b71e6f855518c7280f8ac0ec0185adeea01e0b



More information about the pld-cvs-commit mailing list