File kwallet-pam.spec of Package kwallet-pam
#
# spec file for package kwallet-pam
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2007-2009,2011,2012 Herbert Graeber
# Copyright (c) 2010 Pascal Bleser
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: kwallet-pam
Version: 5.25.1
Release: 0
Summary: KWallet PAM Integration
License: BSD-3-clause and LGPL-2.1-or-later
Group: System/GUI/KDE
Url: https://projects.kde.org/projects/playground/base/kwallet-pam
Source: %{name}-%{version}.tar.gz
BuildRequires: pam-devel
BuildRequires: libgcrypt-devel => 1.5.0
BuildRequires: gcc-c++
BuildRequires: cmake >= 3.16
BuildRequires: kf5-filesystem
BuildRequires: cmake(KF5Wallet) >= 5.90
BuildRequires: extra-cmake-modules
BuildRequires: socat
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package offers the integration between KWallet and PAM. Once setup, the kwallet is automatically opened
upon login
%prep
%setup -q
%build
%cmake_kf5 -d bld -- -DKWALLET4=1
%make_jobs
cd ..
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C bld
%kf5_makeinstall -C build
mkdir %{buildroot}/%{_lib}
mv %{buildroot}%{_libdir}/security %{buildroot}/%{_lib}/
%package -n pam_kwallet
Summary: KWallet5 PAM Integration
Group: System/GUI/KDE
Supplements: packageand(pam:kwalletd5)
Obsoletes: pam_kwallet5
Obsoletes: pam_kwallet4
Requires: socat
PreReq: pam-config
%description -n pam_kwallet
This package offers the integration between KWallet5 and PAM. Once setup, the kwallet is automatically opened
upon login
%post -n pam_kwallet
%{_sbindir}/pam-config -a || true
%postun -n pam_kwallet
if [ "$1" == "0" ]; then
%{_sbindir}/pam-config -d || true
fi
%files -n pam_kwallet
%defattr(-,root,root)
%license LICENSES/*
%doc README.txt
%dir /%{_lib}/security
%attr(755,root,root) /%{_lib}/security/pam_kwallet5.so
%{_kf5_configdir}/autostart/pam_kwallet_init.desktop
/usr/lib/systemd/user/plasma-kwallet-pam.service
%if 0%{?sle_version} >= 150500 && 0%{?is_opensuse} || 0%{?suse_version} > 1500
%{_libexecdir}/pam_kwallet_init
%else
%{_libdir}/libexec/pam_kwallet_init
%endif
%changelog