Add scriptlets for pam-config
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/pam_kwallet?expand=0&rev=34
This commit is contained in:
parent
d3c7676b1e
commit
d90f30f862
@ -1,4 +1,4 @@
|
|||||||
pam_kwallet
|
pam_kwallet
|
||||||
requires "pam_kwallet = <version>"
|
requires "pam_kwallet = <version>"
|
||||||
supplements "packageand(pam_kwallet:pam-<targettype>)"
|
supplements "packageand(pam_kwallet:pam-<targettype>)"
|
||||||
|
post "%{_sbindir}/pam-config -a --kwallet5 || :"
|
||||||
|
@ -32,6 +32,7 @@ BuildRequires: pam-devel
|
|||||||
BuildRequires: socat
|
BuildRequires: socat
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
Requires: %{name}-common = %{version}
|
Requires: %{name}-common = %{version}
|
||||||
|
Requires(postun): coreutils pam pam-config
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This PAM module allows you to automatically open your kwallet
|
This PAM module allows you to automatically open your kwallet
|
||||||
@ -57,6 +58,16 @@ module.
|
|||||||
%install
|
%install
|
||||||
%kf5_makeinstall -C build
|
%kf5_makeinstall -C build
|
||||||
|
|
||||||
|
# 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.
|
||||||
|
%post
|
||||||
|
%{_sbindir}/pam-config -a --kwallet5 || :
|
||||||
|
|
||||||
|
%postun
|
||||||
|
if [ "$1" = "0" ]; then
|
||||||
|
%{_sbindir}/pam-config -d --kwallet5 || :
|
||||||
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc COPYING*
|
%doc COPYING*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user