Sync from SUSE:SLFO:Main libpwquality revision 7ab98044f3744f39a48ab7ffab8991b5
This commit is contained in:
parent
304780acec
commit
1942c38a98
@ -1,5 +1,6 @@
|
|||||||
pam_pwquality
|
pam_pwquality
|
||||||
requires "pam-<targettype>"
|
requires "pam-<targettype>"
|
||||||
|
prereq "pam-config"
|
||||||
supplements "packageand(pam_pwquality:pam-<targettype>)"
|
supplements "packageand(pam_pwquality:pam-<targettype>)"
|
||||||
post "%{_sbindir}/pam-config -a --pwquality || :"
|
post "%{_sbindir}/pam-config -a --pwquality || :"
|
||||||
libpwquality1
|
libpwquality1
|
||||||
|
@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 22 08:58:19 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- Drop python 2.x support (it's been 4 years).
|
||||||
|
- Add python3-setuptools BuildRequires which is needed for
|
||||||
|
distutils.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 20 19:23:49 UTC 2023 - Giacomo Comes <gcomes.obs@gmail.com>
|
||||||
|
|
||||||
|
- add: prereq "pam-config" in baselibs.conf
|
||||||
|
* post scriptlet in pam_pwquality-32bit runs: pam-config
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 26 10:03:04 UTC 2022 - Andreas Stieger <andreas.stieger@gmx.de>
|
Mon Dec 26 10:03:04 UTC 2022 - Andreas Stieger <andreas.stieger@gmx.de>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libpwquality
|
# spec file for package libpwquality
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
%define _secconfdir %{_sysconfdir}/security
|
%define _secconfdir %{_sysconfdir}/security
|
||||||
%define libname libpwquality1
|
%define libname libpwquality1
|
||||||
%bcond_without python2
|
|
||||||
|
|
||||||
Name: libpwquality
|
Name: libpwquality
|
||||||
Version: 1.4.5
|
Version: 1.4.5
|
||||||
@ -34,11 +33,9 @@ BuildRequires: cracklib-devel
|
|||||||
BuildRequires: gettext-devel
|
BuildRequires: gettext-devel
|
||||||
BuildRequires: pam-devel
|
BuildRequires: pam-devel
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: pkgconfig(python3)
|
|
||||||
%if %{with python2}
|
|
||||||
BuildRequires: pkgconfig(python2)
|
|
||||||
%endif
|
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: pkgconfig(python3)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
libpwquality is a library for password quality checks and generation
|
libpwquality is a library for password quality checks and generation
|
||||||
@ -86,24 +83,12 @@ Summary: PAM module to disallow weak new passwords
|
|||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Requires: pam
|
Requires: pam
|
||||||
Requires(post): pam-config
|
Requires(post): pam-config
|
||||||
Requires(postun):pam-config
|
Requires(postun): pam-config
|
||||||
|
|
||||||
%description -n pam_pwquality
|
%description -n pam_pwquality
|
||||||
The pam_pwquality PAM module can be used instead of pam_cracklib to
|
The pam_pwquality PAM module can be used instead of pam_cracklib to
|
||||||
disallow weak new passwords when user's login password is changed.
|
disallow weak new passwords when user's login password is changed.
|
||||||
|
|
||||||
%package -n python2-pwquality
|
|
||||||
Summary: Python bindings for libpwquality
|
|
||||||
Group: Development/Libraries/Python
|
|
||||||
Provides: python-pwquality = %{version}-%{release}
|
|
||||||
Obsoletes: python-pwquality < %{version}-%{release}
|
|
||||||
|
|
||||||
%description -n python2-pwquality
|
|
||||||
libpwquality is a library for password quality checks and generation
|
|
||||||
of random passwords that pass the checks.
|
|
||||||
|
|
||||||
This package provides Python bindings for the libpwquality library.
|
|
||||||
|
|
||||||
%package -n python3-pwquality
|
%package -n python3-pwquality
|
||||||
Summary: Python 3 bindings for libpwquality
|
Summary: Python 3 bindings for libpwquality
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
@ -131,20 +116,9 @@ make -O %{?_smp_mflags}
|
|||||||
%else
|
%else
|
||||||
%make_build
|
%make_build
|
||||||
%endif
|
%endif
|
||||||
%if %{with python2}
|
|
||||||
pushd python
|
|
||||||
%python_build
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
%if %{with python2}
|
|
||||||
pushd python
|
|
||||||
%python_install
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
find %{buildroot} -type f -name "*.la" -delete -print
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
%find_lang %{name} %{?no_lang_C}
|
%find_lang %{name} %{?no_lang_C}
|
||||||
|
|
||||||
@ -184,13 +158,8 @@ fi
|
|||||||
%{_pam_moduledir}/pam_pwquality.so
|
%{_pam_moduledir}/pam_pwquality.so
|
||||||
%{_mandir}/man8/pam_pwquality.8%{?ext_man}
|
%{_mandir}/man8/pam_pwquality.8%{?ext_man}
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%files -n python2-pwquality
|
|
||||||
%{python2_sitearch}/*
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -n python3-pwquality
|
%files -n python3-pwquality
|
||||||
%{python3_sitearch}/*
|
%{python3_sitearch}/pwquality-%{version}-py3*-linux-*.egg
|
||||||
|
|
||||||
%files lang -f libpwquality.lang
|
%files lang -f libpwquality.lang
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user