2018-03-15 15:37:58 +00:00
|
|
|
%global glib2_version 2.44.0
|
|
|
|
%global gcr_version 3.27.90
|
2015-02-26 13:57:54 +00:00
|
|
|
%global gcrypt_version 1.2.2
|
2004-09-09 05:26:10 +00:00
|
|
|
|
2023-11-20 22:23:36 +00:00
|
|
|
%bcond_without ssh_agent
|
2023-10-19 11:04:50 +00:00
|
|
|
|
2023-11-21 11:15:02 +00:00
|
|
|
Name: gnome-keyring
|
|
|
|
Version: 42.1
|
2024-02-12 09:42:49 +00:00
|
|
|
Release: %autorelease
|
2023-11-21 11:15:02 +00:00
|
|
|
Summary: Framework for managing passwords and other secrets
|
|
|
|
|
2024-01-18 16:02:31 +00:00
|
|
|
# egg/ is (GPL-2.0-or-later OR LGPL-3.0-or-later) OR BSD-3-Clause
|
|
|
|
# pkcs11/ is MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later
|
|
|
|
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)
|
2023-11-21 11:15:02 +00:00
|
|
|
URL: https://wiki.gnome.org/Projects/GnomeKeyring
|
|
|
|
Source0: https://download.gnome.org/sources/%{name}/42/%{name}-%{version}.tar.xz
|
2022-05-23 14:26:36 +00:00
|
|
|
# https://gitlab.gnome.org/GNOME/gnome-keyring/-/merge_requests/52
|
2023-11-21 11:15:02 +00:00
|
|
|
Patch0: gnome-keyring-42.0-fix-strncpy.patch
|
2024-01-26 09:46:32 +00:00
|
|
|
Patch1: gnome-keyring-c89.patch
|
2023-11-21 11:15:02 +00:00
|
|
|
|
|
|
|
BuildRequires: pkgconfig(gcr-3) >= %{gcr_version}
|
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version}
|
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
|
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
BuildRequires: pkgconfig(p11-kit-1)
|
|
|
|
BuildRequires: docbook-dtds
|
|
|
|
BuildRequires: docbook-style-xsl
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: libgcrypt-devel >= %{gcrypt_version}
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: systemd-rpm-macros
|
2023-10-19 11:04:50 +00:00
|
|
|
%if %{with ssh_agent}
|
2023-11-21 11:15:02 +00:00
|
|
|
BuildRequires: /usr/bin/ssh-add
|
|
|
|
BuildRequires: /usr/bin/ssh-agent
|
2023-10-19 11:04:50 +00:00
|
|
|
%endif
|
2023-11-21 11:15:02 +00:00
|
|
|
BuildRequires: /usr/bin/xsltproc
|
2008-01-15 00:31:49 +00:00
|
|
|
|
2023-10-19 11:04:50 +00:00
|
|
|
%if %{with ssh_agent}
|
2018-03-05 20:26:40 +00:00
|
|
|
Requires: /usr/bin/ssh-add
|
|
|
|
Requires: /usr/bin/ssh-agent
|
2023-10-19 11:04:50 +00:00
|
|
|
%endif
|
2023-04-20 17:55:45 +00:00
|
|
|
# for /usr/libexec/gcr-ssh-askpass
|
|
|
|
Requires: gcr3
|
2018-03-05 20:26:40 +00:00
|
|
|
|
2004-09-09 05:26:10 +00:00
|
|
|
%description
|
2009-04-07 17:23:57 +00:00
|
|
|
The gnome-keyring session daemon manages passwords and other types of
|
|
|
|
secrets for the user, storing them encrypted with a main password.
|
2008-11-23 06:28:23 +00:00
|
|
|
Applications can use the gnome-keyring library to integrate with the keyring.
|
2004-09-09 05:26:10 +00:00
|
|
|
|
2018-03-05 20:31:22 +00:00
|
|
|
|
2007-07-27 20:02:29 +00:00
|
|
|
%package pam
|
2008-11-23 06:28:23 +00:00
|
|
|
Summary: Pam module for unlocking keyrings
|
2024-01-18 16:02:31 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2014-09-23 07:51:48 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2007-07-27 20:02:29 +00:00
|
|
|
# for /lib/security
|
2014-09-23 07:51:48 +00:00
|
|
|
Requires: pam%{?_isa}
|
2007-07-27 20:02:29 +00:00
|
|
|
|
|
|
|
%description pam
|
|
|
|
The gnome-keyring-pam package contains a pam module that can
|
2008-11-23 06:28:23 +00:00
|
|
|
automatically unlock the "login" keyring when the user logs in.
|
2007-07-27 20:02:29 +00:00
|
|
|
|
|
|
|
|
2004-09-09 05:26:10 +00:00
|
|
|
%prep
|
2018-03-05 20:31:22 +00:00
|
|
|
%autosetup -p1
|
2015-10-23 09:39:31 +00:00
|
|
|
|
2010-05-03 15:31:18 +00:00
|
|
|
|
2004-09-09 05:26:10 +00:00
|
|
|
%build
|
2012-03-20 22:37:50 +00:00
|
|
|
%configure \
|
2013-07-02 12:51:42 +00:00
|
|
|
--with-pam-dir=%{_libdir}/security \
|
2021-09-22 18:32:31 +00:00
|
|
|
--enable-pam \
|
2022-05-23 14:26:36 +00:00
|
|
|
--with-systemd \
|
2022-07-03 01:52:00 +00:00
|
|
|
--without-libcap-ng \
|
2023-10-19 11:04:50 +00:00
|
|
|
--with-pkcs11-config=%{_datadir}/p11-kit/modules \
|
2023-10-24 01:40:55 +00:00
|
|
|
%if %{with ssh_agent}
|
|
|
|
--enable-ssh-agent
|
|
|
|
%else
|
2023-10-19 11:04:50 +00:00
|
|
|
--disable-ssh-agent
|
|
|
|
%endif
|
2009-01-09 03:49:13 +00:00
|
|
|
|
|
|
|
# avoid unneeded direct dependencies
|
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
|
|
|
|
|
2020-07-13 19:48:58 +00:00
|
|
|
%make_build
|
2004-09-09 05:26:10 +00:00
|
|
|
|
2018-03-05 20:31:22 +00:00
|
|
|
|
2004-09-09 05:26:10 +00:00
|
|
|
%install
|
2015-10-17 14:29:31 +00:00
|
|
|
%make_install
|
2007-07-27 20:02:29 +00:00
|
|
|
|
2013-07-02 13:06:32 +00:00
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/security/*.la
|
2011-01-03 11:17:13 +00:00
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/pkcs11/*.la
|
2009-01-05 14:22:02 +00:00
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/gnome-keyring/devel/*.la
|
2004-09-09 05:26:10 +00:00
|
|
|
|
|
|
|
%find_lang gnome-keyring
|
|
|
|
|
2022-05-23 14:26:36 +00:00
|
|
|
%post
|
|
|
|
%systemd_user_post gnome-keyring-daemon.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_user_preun gnome-keyring-daemon.service
|
2004-09-09 05:26:10 +00:00
|
|
|
|
|
|
|
%files -f gnome-keyring.lang
|
2015-02-26 14:00:20 +00:00
|
|
|
%doc AUTHORS NEWS README
|
|
|
|
%license COPYING COPYING.LIB
|
2007-08-03 02:43:57 +00:00
|
|
|
# LGPL
|
2007-12-08 03:57:31 +00:00
|
|
|
%dir %{_libdir}/gnome-keyring
|
2011-01-29 19:56:50 +00:00
|
|
|
%dir %{_libdir}/gnome-keyring/devel
|
2009-01-05 14:22:02 +00:00
|
|
|
%{_libdir}/gnome-keyring/devel/*.so
|
2011-01-29 19:56:50 +00:00
|
|
|
%dir %{_libdir}/pkcs11
|
|
|
|
%{_libdir}/pkcs11/*.so
|
2007-08-03 02:43:57 +00:00
|
|
|
# GPL
|
2021-09-22 18:32:31 +00:00
|
|
|
%{_bindir}/gnome-keyring-daemon
|
2011-01-17 15:02:15 +00:00
|
|
|
%{_bindir}/gnome-keyring
|
|
|
|
%{_bindir}/gnome-keyring-3
|
2010-05-03 15:31:18 +00:00
|
|
|
%{_datadir}/dbus-1/services/*.service
|
2009-12-22 15:14:37 +00:00
|
|
|
%{_sysconfdir}/xdg/autostart/*
|
2010-09-13 12:51:31 +00:00
|
|
|
%{_datadir}/GConf/gsettings/*.convert
|
|
|
|
%{_datadir}/glib-2.0/schemas/*.gschema.xml
|
2022-07-03 01:52:00 +00:00
|
|
|
%{_datadir}/p11-kit/modules/gnome-keyring.module
|
2020-01-16 17:35:39 +00:00
|
|
|
%dir %{_datadir}/xdg-desktop-portal
|
|
|
|
%dir %{_datadir}/xdg-desktop-portal/portals
|
|
|
|
%{_datadir}/xdg-desktop-portal/portals/gnome-keyring.portal
|
2014-05-15 19:29:28 +00:00
|
|
|
%{_mandir}/man1/gnome-keyring.1*
|
|
|
|
%{_mandir}/man1/gnome-keyring-3.1*
|
|
|
|
%{_mandir}/man1/gnome-keyring-daemon.1*
|
2022-05-23 14:26:36 +00:00
|
|
|
%{_userunitdir}/gnome-keyring-daemon.service
|
|
|
|
%{_userunitdir}/gnome-keyring-daemon.socket
|
2004-09-09 05:26:10 +00:00
|
|
|
|
2007-07-27 20:02:29 +00:00
|
|
|
%files pam
|
2013-07-02 12:51:42 +00:00
|
|
|
%{_libdir}/security/*.so
|
2007-07-27 20:02:29 +00:00
|
|
|
|
|
|
|
|
2024-02-12 09:42:49 +00:00
|
|
|
%autochangelog
|