[packages/letsencrypt] update to new python macros

glen glen at pld-linux.org
Fri Dec 4 12:09:50 CET 2015


commit ffeb482ec03e13c2135e834e640037967f0f1870
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Dec 4 13:09:45 2015 +0200

    update to new python macros

 letsencrypt.spec | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/letsencrypt.spec b/letsencrypt.spec
index 486bc4f..30816e2 100644
--- a/letsencrypt.spec
+++ b/letsencrypt.spec
@@ -16,7 +16,7 @@ URL:		https://letsencrypt.org/
 BuildRequires:	python-modules
 BuildRequires:	python-setuptools
 BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.612
+BuildRequires:	rpmbuild(macros) >= 1.713
 %if %{with tests}
 BuildRequires:	python-mock
 BuildRequires:	python-pythondialog
@@ -44,7 +44,9 @@ browser-trusted certificates for free.
 %setup -q
 
 %build
-%{__python} setup.py build %{?with_tests:test}
+%if %{with python2}
+%py_build %{?with_tests:test}
+%endif
 
 %if %{with doc}
 cd docs
@@ -54,12 +56,7 @@ rm -r _build/html/_sources
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py \
-	build \
-	install --skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
-
+%py_install
 %py_postclean
 
 # don't package tests
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/letsencrypt.git/commitdiff/ffeb482ec03e13c2135e834e640037967f0f1870



More information about the pld-cvs-commit mailing list