2252f31
%global glib2_version 2.44.0
2252f31
%global gcr_version 3.27.90
e74e0b8
%global gcrypt_version 1.2.2
cvsdist 7a743dc
e13fa6c
%bcond_without ssh_agent
2c82d29
4952be7
Name:           gnome-keyring
fdbf9ec
Version:        46.1
5eca43f
Release:        %autorelease
4952be7
Summary:        Framework for managing passwords and other secrets
4952be7
bc2a508
# egg/ is (GPL-2.0-or-later OR LGPL-3.0-or-later) OR BSD-3-Clause
bc2a508
# pkcs11/ is MPL-1.1 OR GPL-2.0-or-later OR  LGPL-2.1-or-later
bc2a508
License:        GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later AND ((GPL-2.0-or-later OR LGPL-3.0-or-later) OR BSD-3-Clause) AND (MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later)
4952be7
URL:            https://wiki.gnome.org/Projects/GnomeKeyring
fdbf9ec
Source0:        https://download.gnome.org/sources/%{name}/46/%{name}-%{version}.tar.xz
4952be7
4952be7
BuildRequires:  pkgconfig(gcr-3) >= %{gcr_version}
4952be7
BuildRequires:  pkgconfig(glib-2.0) >= %{glib2_version}
4952be7
BuildRequires:  pkgconfig(libsystemd)
4952be7
BuildRequires:  pkgconfig(systemd)
4952be7
BuildRequires:  pkgconfig(p11-kit-1)
4952be7
BuildRequires:  docbook-dtds
4952be7
BuildRequires:  docbook-style-xsl
4952be7
BuildRequires:  gcc
4952be7
BuildRequires:  gettext
4952be7
BuildRequires:  intltool
4952be7
BuildRequires:  libgcrypt-devel >= %{gcrypt_version}
4952be7
BuildRequires:  libselinux-devel
4952be7
BuildRequires:  make
4952be7
BuildRequires:  pam-devel
4952be7
BuildRequires:  systemd-rpm-macros
2c82d29
%if %{with ssh_agent}
4952be7
BuildRequires:  /usr/bin/ssh-add
4952be7
BuildRequires:  /usr/bin/ssh-agent
2c82d29
%endif
4952be7
BuildRequires:  /usr/bin/xsltproc
a1e13b5
2c82d29
%if %{with ssh_agent}
ba6bac9
Requires: /usr/bin/ssh-add
ba6bac9
Requires: /usr/bin/ssh-agent
2c82d29
%endif
1f4d22e
# for /usr/libexec/gcr-ssh-askpass
1f4d22e
Requires: gcr3
ba6bac9
cvsdist 7a743dc
%description
3b11c0e
The gnome-keyring session daemon manages passwords and other types of
3b11c0e
secrets for the user, storing them encrypted with a main password.
2dfe894
Applications can use the gnome-keyring library to integrate with the keyring.
cvsdist 7a743dc
3f29b07
120d0bb
%package pam
2dfe894
Summary: Pam module for unlocking keyrings
bc2a508
License: LGPL-2.1-or-later
fd31bf3
Requires: %{name}%{?_isa} = %{version}-%{release}
120d0bb
# for /lib/security
fd31bf3
Requires: pam%{?_isa}
120d0bb
120d0bb
%description pam
120d0bb
The gnome-keyring-pam package contains a pam module that can
2dfe894
automatically unlock the "login" keyring when the user logs in.
120d0bb
120d0bb
cvsdist 7a743dc
%prep
3f29b07
%autosetup -p1
b2c2287
Tomas Bzatek 59c0041
cvsdist 7a743dc
%build
99a10b9
%configure \
e489eaa
           --with-pam-dir=%{_libdir}/security \
e4be4e4
           --enable-pam \
2570ab9
           --with-systemd \
658abff
           --without-libcap-ng \
2c82d29
           --with-pkcs11-config=%{_datadir}/p11-kit/modules \
819a097
%if %{with ssh_agent}
819a097
           --enable-ssh-agent
819a097
%else
2c82d29
           --disable-ssh-agent
2c82d29
%endif
0e5994d
0e5994d
# avoid unneeded direct dependencies
0e5994d
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
0e5994d
7bb82aa
%make_build
cvsdist 7a743dc
3f29b07
cvsdist 7a743dc
%install
1ddf211
%make_install
120d0bb
a875c7e
rm $RPM_BUILD_ROOT%{_libdir}/security/*.la
ac10961
rm $RPM_BUILD_ROOT%{_libdir}/pkcs11/*.la
Tomas Bzatek e3d2d12
rm $RPM_BUILD_ROOT%{_libdir}/gnome-keyring/devel/*.la
cvsdist 7a743dc
cvsdist 7a743dc
%find_lang gnome-keyring
cvsdist 7a743dc
2570ab9
%post
2570ab9
%systemd_user_post gnome-keyring-daemon.service
2570ab9
2570ab9
%preun
2570ab9
%systemd_user_preun gnome-keyring-daemon.service
cvsdist 7a743dc
cvsdist 7a743dc
%files -f gnome-keyring.lang
2f11c23
%doc AUTHORS NEWS README
2f11c23
%license COPYING COPYING.LIB
4b9a247
# LGPL
cc5d8a9
%dir %{_libdir}/gnome-keyring
33de984
%dir %{_libdir}/gnome-keyring/devel
Tomas Bzatek e3d2d12
%{_libdir}/gnome-keyring/devel/*.so
33de984
%dir %{_libdir}/pkcs11
33de984
%{_libdir}/pkcs11/*.so
4b9a247
# GPL
e4be4e4
%{_bindir}/gnome-keyring-daemon
e41c396
%{_bindir}/gnome-keyring
e41c396
%{_bindir}/gnome-keyring-3
Tomas Bzatek 59c0041
%{_datadir}/dbus-1/services/*.service
Tomas Bzatek 2e46d5b
%{_sysconfdir}/xdg/autostart/*
1491244
%{_datadir}/GConf/gsettings/*.convert
1491244
%{_datadir}/glib-2.0/schemas/*.gschema.xml
658abff
%{_datadir}/p11-kit/modules/gnome-keyring.module
4a7a059
%dir %{_datadir}/xdg-desktop-portal
4a7a059
%dir %{_datadir}/xdg-desktop-portal/portals
4a7a059
%{_datadir}/xdg-desktop-portal/portals/gnome-keyring.portal
c058c78
%{_mandir}/man1/gnome-keyring.1*
c058c78
%{_mandir}/man1/gnome-keyring-3.1*
c058c78
%{_mandir}/man1/gnome-keyring-daemon.1*
2570ab9
%{_userunitdir}/gnome-keyring-daemon.service
2570ab9
%{_userunitdir}/gnome-keyring-daemon.socket
cvsdist 7a743dc
120d0bb
%files pam
e489eaa
%{_libdir}/security/*.so
120d0bb
120d0bb
5eca43f
%autochangelog