2016-05-06 20:10:43 +02:00
|
|
|
#
|
|
|
|
# spec file for package pam_kwallet
|
|
|
|
#
|
2017-01-16 10:38:21 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-05-06 20:10:43 +02:00
|
|
|
#
|
|
|
|
# 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: pam_kwallet
|
2017-08-22 23:15:39 +02:00
|
|
|
Version: 5.10.5
|
2016-05-06 20:10:43 +02:00
|
|
|
Release: 0
|
2017-08-02 10:48:56 +02:00
|
|
|
Summary: A PAM Module for KWallet signing
|
2016-05-06 20:10:43 +02:00
|
|
|
License: LGPL-2.1 and GPL-2.0+ and GPL-3.0
|
|
|
|
Group: System/GUI/KDE
|
|
|
|
Url: http://www.kde.org/
|
2017-08-02 10:49:23 +02:00
|
|
|
Source0: http://download.kde.org/stable/plasma/%{version}/kwallet-pam-%{version}.tar.xz
|
|
|
|
Source1: baselibs.conf
|
2017-08-09 10:40:05 +02:00
|
|
|
# PATCH-FIX-UPSTREAM
|
|
|
|
Patch1: 0001-Several-cleanups.patch
|
|
|
|
# PATCH-FIX-UPSTREAM
|
|
|
|
Patch2: 0002-Avoid-dropping-privileges-by-initializing-gcrypt-sec.patch
|
|
|
|
# PATCH-FIX-UPSTREAM
|
|
|
|
Patch3: 0003-Check-for-a-graphical-session.patch
|
2016-05-06 20:10:43 +02:00
|
|
|
BuildRequires: extra-cmake-modules >= 1.2.0
|
|
|
|
BuildRequires: kf5-filesystem
|
|
|
|
BuildRequires: libgcrypt-devel >= 1.5.0
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: socat
|
|
|
|
BuildRequires: xz
|
2017-08-02 10:48:56 +02:00
|
|
|
Requires: %{name}-common = %{version}
|
2017-08-22 23:15:39 +02:00
|
|
|
%if 0%{?suse_version} >= 1330
|
2017-08-25 22:56:56 +02:00
|
|
|
Requires(post): coreutils pam pam-config
|
|
|
|
Requires(postun): coreutils pam pam-config
|
2017-08-02 19:51:38 +02:00
|
|
|
%endif
|
2016-05-06 20:10:43 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This PAM module allows you to automatically open your kwallet
|
|
|
|
when signing into your account.
|
|
|
|
|
2017-08-02 10:48:56 +02:00
|
|
|
%package common
|
|
|
|
Summary: Support files for the KWallet PAM module
|
|
|
|
Group: System/GUI/KDE
|
|
|
|
Requires: kwalletd5
|
|
|
|
Requires: socat
|
|
|
|
|
|
|
|
%description common
|
|
|
|
This package contains support files used by the KWallet PAM
|
|
|
|
module.
|
|
|
|
|
2016-05-06 20:10:43 +02:00
|
|
|
%prep
|
|
|
|
%setup -q -n kwallet-pam-%{version}
|
2017-08-09 10:40:05 +02:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
2016-05-06 20:10:43 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake_kf5 -d build -- -DLIBEXEC_INSTALL_DIR=%{_kf5_libexecdir} -DCMAKE_INSTALL_PREFIX=/
|
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
|
|
|
%kf5_makeinstall -C build
|
|
|
|
|
2017-08-22 23:15:39 +02:00
|
|
|
%if 0%{?suse_version} >= 1330
|
2017-08-02 11:11:37 +02:00
|
|
|
# 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
|
2017-08-02 19:51:38 +02:00
|
|
|
%endif
|
2017-08-02 11:11:37 +02:00
|
|
|
|
2016-05-06 20:10:43 +02:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING*
|
2017-08-02 10:48:56 +02:00
|
|
|
/%{_lib}/security/pam_kwallet5.so
|
|
|
|
|
|
|
|
%files common
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING*
|
2016-05-06 20:10:43 +02:00
|
|
|
%config %{_kf5_configdir}/autostart/pam_kwallet_init.desktop
|
|
|
|
%{_kf5_libexecdir}/pam_kwallet_init
|
|
|
|
|
|
|
|
%changelog
|