[packages/libpwquality] - use rpm python macros - rel 4
baggins
baggins at pld-linux.org
Thu May 5 18:06:31 CEST 2016
commit ae00de8b61f942ee442a4b1319fefd9d9b948b55
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Thu May 5 18:06:17 2016 +0200
- use rpm python macros
- rel 4
libpwquality.spec | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/libpwquality.spec b/libpwquality.spec
index 4d86173..361cc66 100644
--- a/libpwquality.spec
+++ b/libpwquality.spec
@@ -9,7 +9,7 @@ Summary: Library for password quality checking and generating random passwords
Summary(pl.UTF-8): Biblioteka do sprawdzania jakości oraz generowania losowych haseł
Name: libpwquality
Version: 1.3.0
-Release: 3
+Release: 4
License: BSD or GPL v2+
Group: Libraries
Source0: https://fedorahosted.org/releases/l/i/libpwquality/%{name}-%{version}.tar.bz2
@@ -104,10 +104,14 @@ Wiązania Pythona 3 do biblioteki libpwquality.
%{__make}
+cd python
+CFLAGS="%{rpmcflags} -fno-strict-aliasing"
+%py_build
+cd ..
+
%if %{with python3}
cd python
-CFLAGS="%{rpmcflags} -fno-strict-aliasing" \
-%{__python3} setup.py build --build-base py3
+%py3_build
%endif
%install
@@ -116,10 +120,13 @@ rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+cd python
+%py_install
+cd ..
+
%if %{with python3}
cd python
-%{__python3} ../python/setup.py build --build-base py3 install \
- --root=$RPM_BUILD_ROOT
+%py3_install
cd ..
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libpwquality.git/commitdiff/ae00de8b61f942ee442a4b1319fefd9d9b948b55
More information about the pld-cvs-commit
mailing list