From 4178224a4dab427992fae5536e461032ee841e8ac9e04233ac3fbb9e5e2f48d2 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Wed, 29 Sep 2021 07:18:36 +0000 Subject: [PATCH] Accepting request 922054 from GNOME:Next - Use %_pam_moduledir instead of hardcoding %{_lib}/security (boo#1191042). Fixed bugref OBS-URL: https://build.opensuse.org/request/show/922054 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libpwquality?expand=0&rev=38 --- libpwquality.changes | 6 ++++++ libpwquality.spec | 7 +++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/libpwquality.changes b/libpwquality.changes index 75ced7c..1b332d4 100644 --- a/libpwquality.changes +++ b/libpwquality.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Sep 28 13:41:10 UTC 2021 - Dominique Leuenberger + +- Use %_pam_moduledir instead of hardcoding %{_lib}/security + (boo#1191042). + ------------------------------------------------------------------- Tue Jan 5 16:27:27 UTC 2021 - Josef Möllers diff --git a/libpwquality.spec b/libpwquality.spec index 52ba599..471fa2b 100644 --- a/libpwquality.spec +++ b/libpwquality.spec @@ -16,7 +16,6 @@ # -%define _pammoduledir /%{_lib}/security %define _secconfdir %{_sysconfdir}/security %define libname libpwquality1 %bcond_without python2 @@ -86,7 +85,7 @@ Summary: PAM module to disallow weak new passwords Group: System/Libraries Requires: pam Requires(post): pam-config -Requires(postun): pam-config +Requires(postun):pam-config %description -n pam_pwquality The pam_pwquality PAM module can be used instead of pam_cracklib to @@ -122,7 +121,7 @@ This package provides Python 3 bindings for the libpwquality library. %build %configure \ --disable-static \ - --with-securedir=%{_pammoduledir} \ + --with-securedir=%{_pam_moduledir} \ --with-python-binary=%{_bindir}/python3 \ --with-pythonsitedir=%{python3_sitearch} \ %{nil} @@ -181,7 +180,7 @@ fi %{_libdir}/pkgconfig/pwquality.pc %files -n pam_pwquality -%{_pammoduledir}/pam_pwquality.so +%{_pam_moduledir}/pam_pwquality.so %{_mandir}/man8/pam_pwquality.8%{?ext_man} %if %{with python2}