Hello community,

here is the log from the commit of package libpwquality for openSUSE:Factory 
checked in at 2018-01-16 09:28:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libpwquality (Old)
 and      /work/SRC/openSUSE:Factory/.libpwquality.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libpwquality"

Tue Jan 16 09:28:56 2018 rev:13 rq:562613 version:1.4.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/libpwquality/libpwquality.changes        
2017-11-12 17:57:41.047008046 +0100
+++ /work/SRC/openSUSE:Factory/.libpwquality.new/libpwquality.changes   
2018-01-16 09:28:57.995324687 +0100
@@ -1,0 +2,23 @@
+Mon Jan  8 18:54:44 UTC 2018 - [email protected]
+
+- Update RPM groups and summaries.
+
+-------------------------------------------------------------------
+Mon Jan  8 10:20:54 UTC 2018 - [email protected]
+
+- Switch url to https://github.com/libpwquality/libpwquality/
+- Update to release 1.4.0:
+  * Fix possible buffer overflow with data from /dev/urandom
+    in pwquality_generate().
+  * Do not try to check presence of too short username in password.
+    (thanks to Nikos Mavrogiannopoulos)
+  * Make the user name check optional (via usercheck option).
+  * Add an 'enforcing' option to make the checks to be warning-only
+    in PAM.
+  * The difok = 0 setting will disable all old password similarity
+    checks except new and old passwords being identical.
+  * Updated translations from Zanata.
+- Add patch libpwquality-pythons.patch to avoid duping pythondir
+- Make python3 default and enable py2 only when needed
+
+-------------------------------------------------------------------

Old:
----
  libpwquality-1.3.0.tar.bz2

New:
----
  libpwquality-1.4.0.tar.bz2
  libpwquality-pythons.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libpwquality.spec ++++++
--- /var/tmp/diff_new_pack.Add8qO/_old  2018-01-16 09:28:59.491254697 +0100
+++ /var/tmp/diff_new_pack.Add8qO/_new  2018-01-16 09:28:59.495254510 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libpwquality
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,28 +18,35 @@
 
 %define _pammoduledir /%{_lib}/security
 %define _secconfdir %{_sysconfdir}/security
+%define libname libpwquality1
+%bcond_without python2
 Name:           libpwquality
-Version:        1.3.0
+Version:        1.4.0
 Release:        0
 Summary:        Library for password quality checking and generating random 
passwords
 License:        BSD-3-Clause OR GPL-2.0+
-Group:          System/Libraries
-Url:            https://fedorahosted.org/libpwquality/
-Source:         
https://fedorahosted.org/releases/l/i/libpwquality/%{name}-%{version}.tar.bz2
+Group:          Development/Libraries/C and C++
+Url:            https://github.com/libpwquality/libpwquality
+Source:         
https://github.com/%{name}/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
+Patch0:         libpwquality-pythons.patch
+BuildRequires:  autoconf
+BuildRequires:  automake
 BuildRequires:  cracklib-devel
 BuildRequires:  gettext-devel
+BuildRequires:  libtool
 BuildRequires:  pam-devel
-# Needed for pkgconfig() Provides
 BuildRequires:  pkgconfig
-BuildRequires:  python2-devel
-BuildRequires:  python3-devel
+BuildRequires:  pkgconfig(python3)
 %lang_package
+%if %{with python2}
+BuildRequires:  pkgconfig(python2)
+%endif
 
 %description
 libpwquality is a library for password quality checks and generation
 of random passwords that pass the checks.
 
-%package -n libpwquality1
+%package -n %{libname}
 Summary:        Library for password quality checking and generating random 
passwords
 Group:          System/Libraries
 Requires:       cracklib-dict >= 2.8
@@ -48,12 +55,12 @@
 # To make lang package installable
 Provides:       %{name}
 
-%description -n libpwquality1
+%description -n %{libname}
 libpwquality is a library for password quality checks and generation
 of random passwords that pass the checks.
 
 %package tools
-Summary:        Library for password quality checking -- Tools
+Summary:        Tools from libpequality, a library for password quality 
checking
 Group:          Productivity/Security
 
 %description tools
@@ -63,9 +70,9 @@
 This package contains simple tools that use libpwquality.
 
 %package devel
-Summary:        Library for password quality checking -- Development Files
+Summary:        Development files for libpwquality, a library for password 
quality checking
 Group:          Development/Libraries/C and C++
-Requires:       libpwquality1 = %{version}
+Requires:       %{libname} = %{version}
 Requires:       pkgconfig
 
 %description devel
@@ -85,7 +92,7 @@
 disallow weak new passwords when user's login password is changed.
 
 %package -n python2-pwquality
-Summary:        Library for password quality checking -- Python bindings
+Summary:        Python bindings for libpwquality
 Group:          Development/Libraries/Python
 Provides:       python-pwquality = %{version}-%{release}
 Obsoletes:      python-pwquality < %{version}-%{release}
@@ -97,7 +104,7 @@
 This package provides Python bindings for the libpwquality library.
 
 %package -n python3-pwquality
-Summary:        Library for password quality checking -- Python 3 bindings
+Summary:        Python 3 bindings for libpwquality
 Group:          Development/Libraries/Python
 Provides:       python-pwquality = %{version}-%{release}
 Obsoletes:      python-pwquality < %{version}-%{release}
@@ -110,30 +117,38 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
-cp -r python python3
+# needed for patch0
+autoreconf -fvi
 %configure \
   --disable-static \
   --with-securedir=%{_pammoduledir} \
-  --with-pythonsitedir=%{python_sitearch}
+  --with-python-binary=%{_bindir}/python3 \
+  --with-pythonsitedir=%{python3_sitearch}
 make %{?_smp_mflags}
-pushd python3
-%python3_build
+%if %{with python2}
+pushd python
+%python_build
 popd
+%endif
 
 %install
 %make_install
-pushd python3
-%python3_install
+%if %{with python2}
+pushd python
+%python_install
 popd
+%endif
+
 find %{buildroot} -type f -name "*.la" -delete -print
 %find_lang %{name} %{?no_lang_C}
 
-%post -n libpwquality1 -p /sbin/ldconfig
-%postun -n libpwquality1 -p /sbin/ldconfig
+%post -n %{libname} -p /sbin/ldconfig
+%postun -n %{libname} -p /sbin/ldconfig
 
-%files -n libpwquality1
+%files -n %{libname}
 %doc AUTHORS COPYING NEWS README
 %{_libdir}/libpwquality.so.*
 %config(noreplace) %{_secconfdir}/pwquality.conf
@@ -155,8 +170,10 @@
 %{_pammoduledir}/pam_pwquality.so
 %{_mandir}/man8/pam_pwquality.8%{?ext_man}
 
+%if %{with python2}
 %files -n python2-pwquality
 %{python2_sitearch}/*
+%endif
 
 %files -n python3-pwquality
 %{python3_sitearch}/*

++++++ libpwquality-1.3.0.tar.bz2 -> libpwquality-1.4.0.tar.bz2 ++++++
++++ 28702 lines of diff (skipped)

++++++ libpwquality-pythons.patch ++++++
>From 694445da998ae3c5507df9651876488e91e6dafa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= <[email protected]>
Date: Mon, 3 Jul 2017 20:39:14 +0300
Subject: [PATCH] use separate build tree for python versions

added python patch to allow multiple python versions build without
duplicating source tree
---
 python/Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/python/Makefile.am b/python/Makefile.am
index abc5cd3..fd3a5ea 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -11,7 +11,7 @@ CLEANFILES = *~ constants.c *.so
 EXTRA_DIST = pwquality.c setup.py
 
 all-local:
-       CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build 
--build-lib=.
+       CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build 
--build-base py$(PYTHONREV)
 
 install-exec-local:
-       CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py install 
--prefix=${DESTDIR}${prefix}
+       CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build 
--build-base py$(PYTHONREV) install --prefix=${DESTDIR}${prefix}

Reply via email to