[packages/git-core-slug] new python macros

glen glen at pld-linux.org
Tue Feb 23 20:06:51 CET 2016


commit b1f53e7ae7c15835f76c80a40d5054391bb0b78a
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Feb 23 21:06:45 2016 +0200

    new python macros

 git-core-slug.spec | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/git-core-slug.spec b/git-core-slug.spec
index 8888e43..3c28d85 100644
--- a/git-core-slug.spec
+++ b/git-core-slug.spec
@@ -18,7 +18,7 @@ BuildRequires:	asciidoc
 BuildRequires:	docbook-dtd45-xml
 BuildRequires:	python3-modules >= 1:3.3.0
 BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.228
+BuildRequires:	rpmbuild(macros) >= 1.714
 BuildRequires:	xmlto
 Requires:	git-core
 Requires:	python3-modules
@@ -56,16 +56,13 @@ mv draenog-slug-*/* .
 %patch0 -p1
 
 %build
-%{__python3} setup.py build
+%py3_build
 %{__make} man
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__python3} setup.py install \
+%py3_install \
 	--install-data=/home/services/git \
-	--skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
 
 %{__make} man-install \
 	DESTDIR=$RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/git-core-slug.git/commitdiff/b1f53e7ae7c15835f76c80a40d5054391bb0b78a



More information about the pld-cvs-commit mailing list