Accepting request 991716 from home:pgajdos

-  use pam rpm macros [bsc#1190957]

OBS-URL: https://build.opensuse.org/request/show/991716
OBS-URL: https://build.opensuse.org/package/show/security:chipcard/pam_pkcs11?expand=0&rev=31
This commit is contained in:
Jason Sikes 2022-08-20 00:46:37 +00:00 committed by Git OBS Bridge
parent 71f71b9701
commit 38fba7e602
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jul 29 08:49:15 UTC 2022 - pgajdos@suse.com
- use pam rpm macros [bsc#1190957]
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jan 15 10:26:28 UTC 2022 - Andreas Stieger <andreas.stieger@gmx.de> Sat Jan 15 10:26:28 UTC 2022 - Andreas Stieger <andreas.stieger@gmx.de>

View File

@ -107,9 +107,11 @@ sed -i '/^HTML_TIMESTAMP/s/YES/NO/' doc/doxygen.conf.in
%install %install
%make_install %make_install
mkdir -p %{buildroot}/%{_lib} %if 0%{?suse_version} <= 1500
mv %{buildroot}%{_libdir}/security %{buildroot}/%{_lib} mkdir -p %{buildroot}%{_pam_moduledir}
rm %{buildroot}%{_libdir}/pam_pkcs11/*.*a %{buildroot}/%{_lib}/security/*.*a mv %{buildroot}%{_libdir}/security/* %{buildroot}%{_pam_moduledir}
%endif
rm %{buildroot}%{_pam_moduledir}/*.la %{buildroot}%{_libdir}/pam_pkcs11/*.la
# Hardcoded defaults... no sysconfdir # Hardcoded defaults... no sysconfdir
install -dm 755 %{buildroot}%{_sysconfdir}/pam_pkcs11/cacerts install -dm 755 %{buildroot}%{_sysconfdir}/pam_pkcs11/cacerts
install -dm 755 %{buildroot}%{_sysconfdir}/pam_pkcs11/crls install -dm 755 %{buildroot}%{_sysconfdir}/pam_pkcs11/crls
@ -145,7 +147,7 @@ ln -s service %{buildroot}%{_sbindir}/rcpkcs11_eventmgr
%exclude %{_docdir}/%{name}/api %exclude %{_docdir}/%{name}/api
%{_bindir}/* %{_bindir}/*
%{_libdir}/pam_pkcs11 %{_libdir}/pam_pkcs11
/%{_lib}/security/*.so /%{_pam_moduledir}/*.so
%{_mandir}/man?/*%{ext_man} %{_mandir}/man?/*%{ext_man}
%dir %{_sysconfdir}/pam_pkcs11 %dir %{_sysconfdir}/pam_pkcs11
%dir %{_sysconfdir}/pam_pkcs11/cacerts %dir %{_sysconfdir}/pam_pkcs11/cacerts