gnome-keyring/gnome-keyring.spec

137 lines
3.8 KiB
RPMSpec
Raw Normal View History

%global glib2_version 2.44.0
%global gcr_version 3.27.90
%global gcrypt_version 1.2.2
%bcond_without ssh_agent
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
# 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
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
%if %{with ssh_agent}
2023-11-21 11:15:02 +00:00
BuildRequires: /usr/bin/ssh-add
BuildRequires: /usr/bin/ssh-agent
%endif
2023-11-21 11:15:02 +00:00
BuildRequires: /usr/bin/xsltproc
2008-01-15 00:31:49 +00:00
%if %{with ssh_agent}
2018-03-05 20:26:40 +00:00
Requires: /usr/bin/ssh-add
Requires: /usr/bin/ssh-agent
%endif
# for /usr/libexec/gcr-ssh-askpass
Requires: gcr3
2018-03-05 20:26:40 +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.
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
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
%prep
2018-03-05 20:31:22 +00:00
%autosetup -p1
2015-10-23 09:39:31 +00:00
%build
2012-03-20 22:37:50 +00:00
%configure \
--with-pam-dir=%{_libdir}/security \
--enable-pam \
2022-05-23 14:26:36 +00:00
--with-systemd \
--without-libcap-ng \
--with-pkcs11-config=%{_datadir}/p11-kit/modules \
%if %{with ssh_agent}
--enable-ssh-agent
%else
--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
%make_build
2018-03-05 20:31:22 +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
%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
%files -f gnome-keyring.lang
%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
%{_bindir}/gnome-keyring-daemon
%{_bindir}/gnome-keyring
%{_bindir}/gnome-keyring-3
%{_datadir}/dbus-1/services/*.service
%{_sysconfdir}/xdg/autostart/*
%{_datadir}/GConf/gsettings/*.convert
%{_datadir}/glib-2.0/schemas/*.gschema.xml
%{_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
2007-07-27 20:02:29 +00:00
%files pam
%{_libdir}/security/*.so
2007-07-27 20:02:29 +00:00
2024-02-12 09:42:49 +00:00
%autochangelog