Accepting request 807113 from home:favogt:branches:Virtualization:Appliances:Images:openSUSE-Tumbleweed
- Register with pam-config in %post(un) OBS-URL: https://build.opensuse.org/request/show/807113 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libpwquality?expand=0&rev=30
This commit is contained in:
parent
5a79e08072
commit
a63b92f9ff
@ -1,3 +1,5 @@
|
|||||||
pam_pwquality
|
pam_pwquality
|
||||||
|
requires "pam-<targettype>"
|
||||||
supplements "packageand(pam_pwquality:pam-<targettype>)"
|
supplements "packageand(pam_pwquality:pam-<targettype>)"
|
||||||
|
post "%{_sbindir}/pam-config -a --pwquality || :"
|
||||||
libpwquality1
|
libpwquality1
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 18 11:20:41 UTC 2020 - Fabian Vogt <fvogt@suse.com>
|
||||||
|
|
||||||
|
- Register with pam-config in %post(un)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri May 1 20:28:41 UTC 2020 - Thorsten Kukuk <kukuk@suse.com>
|
Fri May 1 20:28:41 UTC 2020 - Thorsten Kukuk <kukuk@suse.com>
|
||||||
|
|
||||||
|
@ -36,7 +36,6 @@ BuildRequires: gettext-devel
|
|||||||
BuildRequires: pam-devel
|
BuildRequires: pam-devel
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: pkgconfig(python3)
|
BuildRequires: pkgconfig(python3)
|
||||||
%lang_package
|
|
||||||
%if %{with python2}
|
%if %{with python2}
|
||||||
BuildRequires: pkgconfig(python2)
|
BuildRequires: pkgconfig(python2)
|
||||||
%endif
|
%endif
|
||||||
@ -45,6 +44,8 @@ BuildRequires: pkgconfig(python2)
|
|||||||
libpwquality is a library for password quality checks and generation
|
libpwquality is a library for password quality checks and generation
|
||||||
of random passwords that pass the checks.
|
of random passwords that pass the checks.
|
||||||
|
|
||||||
|
%lang_package
|
||||||
|
|
||||||
%package -n %{libname}
|
%package -n %{libname}
|
||||||
Summary: Library for password quality checking and generating random passwords
|
Summary: Library for password quality checking and generating random passwords
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
@ -84,6 +85,8 @@ using the libpwquality library.
|
|||||||
Summary: PAM module to disallow weak new passwords
|
Summary: PAM module to disallow weak new passwords
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Requires: pam
|
Requires: pam
|
||||||
|
Requires(post): 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
|
||||||
@ -144,6 +147,16 @@ find %{buildroot} -type f -name "*.la" -delete -print
|
|||||||
%post -n %{libname} -p /sbin/ldconfig
|
%post -n %{libname} -p /sbin/ldconfig
|
||||||
%postun -n %{libname} -p /sbin/ldconfig
|
%postun -n %{libname} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post -n pam_pwquality
|
||||||
|
# Due to boo#728586 it is necessary to duplicate this in the 32bit variant.
|
||||||
|
# So you need to edit baselibs.conf if you change this.
|
||||||
|
%{_sbindir}/pam-config -a --pwquality || :
|
||||||
|
|
||||||
|
%postun -n pam_pwquality
|
||||||
|
if [ "$1" = "0" ]; then
|
||||||
|
%{_sbindir}/pam-config -d --pwquality || :
|
||||||
|
fi
|
||||||
|
|
||||||
%files -n %{libname}
|
%files -n %{libname}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc AUTHORS NEWS README
|
%doc AUTHORS NEWS README
|
||||||
|
Loading…
x
Reference in New Issue
Block a user