diff --git a/oath-toolkit.changes b/oath-toolkit.changes index 38f8cb0..643174c 100644 --- a/oath-toolkit.changes +++ b/oath-toolkit.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Aug 2 20:39:41 UTC 2022 - Torsten Gruner + +- Use %_pam_moduledir instead of hardcoding %{_lib}/security +- Define macro _pam_moduledir if not set to fix builds for Leap and SLE + ------------------------------------------------------------------- Thu Apr 21 09:52:55 UTC 2022 - Marcus Meissner diff --git a/oath-toolkit.spec b/oath-toolkit.spec index 76cf259..e510a7e 100644 --- a/oath-toolkit.spec +++ b/oath-toolkit.spec @@ -16,6 +16,7 @@ # +%{!?_pam_moduledir: %define _pam_moduledir /%{_lib}/security} Name: oath-toolkit Version: 2.6.7 Release: 0 @@ -132,7 +133,7 @@ This subpackage contains the headers for this library. %build autoreconf -fiv %configure \ - --with-pam-dir=/%{_lib}/security \ + --with-pam-dir=%{_pam_moduledir} \ --with-libgcrypt \ --disable-silent-rules \ --disable-static @@ -166,7 +167,7 @@ find %{buildroot} -type f -name "*.la" -delete -print %files -n pam_oath %doc pam_oath/README %license pam_oath/COPYING -/%{_lib}/security/pam_oath.so +%{_pam_moduledir}/pam_oath.so %files -n liboath0 %license liboath/COPYING