Dominique Leuenberger 2022-08-04 11:23:02 +00:00 committed by Git OBS Bridge
commit a08328d5d8
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Aug 2 20:39:41 UTC 2022 - Torsten Gruner <simmphonie@opensuse.org>
- 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 <meissner@suse.com>

View File

@ -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