Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37425769
en ru br
ALT Linux repos
S:42.1-alt1
5.0: 2.26.1-alt1
4.1: 2.22.3-alt0.M41.1
4.0: 0.8.1-alt1
3.0: 0.4.2-alt1

Group :: Graphical desktop/GNOME
RPM: gnome-keyring

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_disable snapshot

%define ver_major 42
%def_disable static
%def_disable gtk_doc
%def_disable debug
%def_disable valgrind
%def_enable pam
%def_enable selinux
%def_enable systemd
%def_enable ssh
%def_disable check

Name: gnome-keyring
Version: %ver_major.1
Release: alt1

Summary: %name is a password keeper for GNOME
License: GPL-2.0 and LGPL-2.1
Group: Graphical desktop/GNOME
Url: http://www.gnome.org

%if_disabled snapshot
Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.xz
%else
Source: %name-%version.tar
%endif
Patch: gnome-keyring-3.14.0-alt-lfs.patch
# https://bugzilla.gnome.org/show_bug.cgi?id=794848
# https://bug794848.bugzilla-attachments.gnome.org/attachment.cgi?id=370357
Patch1: gnome-keyring-3.28.2-bgo-ssh-agent_timeout.patch

%define glib_ver 2.44.0
%define dbus_ver 1.0
%define gcrypt_ver 1.2.2
%define tasn1_ver 0.3.4
%define p11kit_ver 0.23.9
%define gcr_ver 3.28.0

Requires(post): libcap-utils
Requires: p11-kit >= %p11kit_ver

# From configure.ac

%{?_enable_systemd:BuildRequires(pre): rpm-build-systemd}
BuildRequires: gnome-common libgio-devel >= %glib_ver
BuildRequires: gtk-doc xsltproc
BuildRequires: libdbus-devel >= %dbus_ver
BuildRequires: libgcrypt-devel >= %gcrypt_ver
BuildRequires: libtasn1-devel >= %tasn1_ver  libp11-kit-devel >= %p11kit_ver
BuildRequires: gcr-libs-devel >= %gcr_ver
BuildRequires: libtasn1-utils
BuildRequires: libcap-ng-devel
%{?_enable_pam:BuildRequires: libpam-devel}
%{?_enable_valgrind:BuildRequires: valgrind}
%{?_enable_selinux:BuildRequires: libselinux-devel}
%{?_enable_ssh:BuildRequires: %_bindir/ssh-agent %_bindir/ssh-add}
%{?_enable_check:BuildRequires: /proc xvfb-run dbus-tools-gui}

%description
%name is a program that keep password and other secrets for
users. It is run as a damon in the session, similar to ssh-agent, and
other applications can locate it by an environment variable.

%package -n pam_%name
Summary: A pam module for unlocking keyrings at login time
Group: System/Base
Requires: %name = %version-%release

%description -n pam_%name
The pam_gnome-keyring package contains a pam module that can
automatically unlock the "login" keyring when the user logs in
and start the keyring daemon.

%package ssh
Summary: SSH Key Agent for GNOME Keyring
Group: Networking/Remote access
Requires: %name = %version-%release
# since 3.27.x gnome-keyring wraps the ssh-agent as a subprocess
Requires: gcr >= %gcr_ver openssh-clients

%description ssh
GNOME Keyring ssh agent is a wrapper for stock ssh-agent from OpenSSH.

%define _gtk_docdir %_datadir/gtk-doc/html
%define _libexecdir %_prefix/libexec/%name

%prep
%setup
%patch -p1 -b .lfs
%{?_enable_ssh:%patch1 -p1 -b .ssh-agent}

%build
%autoreconf
%configure \
%{?_enable_gtk_doc:--enable-gtk-doc} \
%{subst_enable static} \
%{subst_enable debug} \
%{subst_enable valgrind} \
%{subst_enable selinux} \
%{?_disable_systemd:--without-systemd} \
%{?_disable_ssh:--disable-ssh-agent} \
--enable-doc \
--with-pam-dir=/%_lib/security

%make_build

%install
%makeinstall_std

%find_lang --with-gnome %name

%check
%make check

%post
setcap -q cap_ipc_lock=ep %_bindir/gnome-keyring-daemon 2>/dev/null ||:

%files -f %name.lang
%_bindir/gnome-keyring
%_bindir/gnome-keyring-3
%_bindir/gnome-keyring-daemon
%_datadir/dbus-1/services/org.gnome.keyring.service
%_datadir/dbus-1/services/org.freedesktop.secrets.service
%_sysconfdir/xdg/autostart/*.desktop
%{?_enable_ssh:%exclude %_sysconfdir/xdg/autostart/gnome-keyring-ssh.desktop}
%_datadir/glib-2.0/schemas/org.gnome.crypto.cache.gschema.xml
%_datadir/GConf/gsettings/org.gnome.crypto.cache.convert
%_datadir/p11-kit/modules/gnome-keyring.module
%_libdir/gnome-keyring/
%{?_enable_ssh:%exclude %_libdir/gnome-keyring/*/gkm-ssh-store-standalone.so}
%_libdir/pkcs11
%_man1dir/*
%_datadir/dbus-1/services/org.freedesktop.impl.portal.Secret.service
%_datadir/xdg-desktop-portal/portals/gnome-keyring.portal
%{?_enable_systemd:
%_userunitdir/%name-daemon.service
%_userunitdir/%name-daemon.socket}
%doc README AUTHORS NEWS

%exclude %_libdir/pkcs11/*.la
%exclude %_libdir/gnome-keyring/*/*.la
%exclude /%_lib/security/*.la

%if_enabled ssh
%files ssh
%_libdir/gnome-keyring/*/gkm-ssh-store-standalone.so
%_sysconfdir/xdg/autostart/gnome-keyring-ssh.desktop
%endif


%if_enabled pam
%files -n pam_%name
/%_lib/security/pam_gnome_keyring.so
%exclude /%_lib/security/pam_gnome_keyring.la
%endif


%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin