[packages/gyp] - use rpm python macros - rel 3
baggins
baggins at pld-linux.org
Sat May 7 08:43:33 CEST 2016
commit 54b7c2c7482de1bbfdaab821758cf2d0c546851c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat May 7 08:43:23 2016 +0200
- use rpm python macros
- rel 3
gyp.spec | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/gyp.spec b/gyp.spec
index c8ff9ac..ebba117 100644
--- a/gyp.spec
+++ b/gyp.spec
@@ -3,7 +3,7 @@
%bcond_with tests # build without tests
%define svnrev 1602
-%define rel 2
+%define rel 3
Summary: Generate Your Projects
Summary(pl.UTF-8): GYP (Generate Your Projects) - narzędzie do generowania systemów budowania
Name: gyp
@@ -64,15 +64,14 @@ Ten pakiet zawiera moduły Pythona.
%setup -q -n %{name}
%build
-%{__python} setup.py build
+%py_build
%{?with_tests:%{__python} gyptest.py -a}
%install
rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+
+%py_install
%py_postclean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gyp.git/commitdiff/54b7c2c7482de1bbfdaab821758cf2d0c546851c
More information about the pld-cvs-commit
mailing list