]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
libpwquality: Build bindings for python 3
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Jul 2016 19:45:05 +0000 (21:45 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Jul 2016 19:45:05 +0000 (21:45 +0200)
This drops the package for python 2.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
libpwquality/libpwquality.nm

index b5c6a4d084c813a43fd0f7b9fc59501ed81e7222..fc13c9fd42d7d3e3f8c66469a9c0e9a79949524e 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = libpwquality
 version    = 1.3.0
-release    = 1
+release    = 2
 
 groups     = System/Base
 url        = https://fedorahosted.org/libpwquality/
@@ -26,25 +26,20 @@ build
                cracklib-devel
                gettext
                pam-devel
-               python-devel
+               python3-devel
        end
+
+       configure_options += \
+               --disable-static \
+               --with-pythonsitedir=%{python3_sitearch} \
+               --with-python-binary=%{python3}
 end
 
 packages
        package %{name}
 
-       package python-%{name}
-               summary = Python bindings for the libpwquality library.
-               description
-                       This is pwquality Python module that provides Python bindings
-                       for the libpwquality library. These bindings can be used
-                       for easy password quality checking and generation of random
-                       pronounceable passwords from Python applications.
-               end
-
-               files
-                       %{libdir}/python*
-               end
+       package python3-%{name}
+               template PYTHON3
        end
 
        package %{name}-devel