Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37733500
en ru br
ALT Linux repos
S:43.0-alt3
5.0: 2.26.1-alt3
4.1: 2.22.1-alt1.qa1.M41.1
4.0: 1.0-alt1
3.0: 0.7.8-alt1.1

Group :: Graphical desktop/GNOME
RPM: seahorse

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# vim: set ft=spec: -*- rpm-spec -*-
%define _unpackaged_files_terminate_build 1

%define ver_major 1.0

%def_enable debug

%def_with ldap
%def_enable hkp
%def_enable gedit
%def_enable nautilus
%def_enable gnome_keyring
%def_enable sharing
%def_enable dbus
%if_enabled dbus
# Problems with Gecko detection
#def_enable epiphany
%def_enable gedit
%endif
%def_enable libnotify
%def_enable ssh

Name: seahorse
Version: %ver_major
Release: alt1

Summary: Seahorse is a GNOME frontend to GnuPG
License: GPL
Group: Graphical desktop/GNOME
Url: http://%name.sf.net/

Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.bz2
Source2: seahorse-agent.sh

Requires: gnupg
Requires: lib%name = %version-%release
%{?_enable_ssh:Requires: openssh-clients}

# From configure.in

BuildPreReq: intltool >= 0.35
BuildPreReq: libgnome-devel >= 2.14
BuildPreReq: libgtk+2-devel >= 2.4.0
BuildPreReq: libgnomeui-devel
BuildPreReq: libgpgme-devel >= 1.0.0
BuildPreReq: gnome-doc-utils >= 0.3.2
%{?_with_ldap:BuildPreReq: libldap-devel}
%{?_enable_hkp:BuildPreReq: libsoup-devel > 2.2}
%if_enabled nautilus
BuildPreReq: libnautilus-devel >= 2.9.0
BuildPreReq: glib2-devel >= 2.6.0
%endif
%{?_enable_gnome_keyring:BuildPreReq: libgnome-keyring-devel}
%{?_enable_sharing:BuildPreReq: libavahi-glib-devel >= 0.6}
%if_enabled dbus
BuildPreReq: libdbus-glib-devel >= 0.35
%if_enabled epiphany
BuildPreReq: epiphany-devel >= 2.14.0
BuildPreReq: libxml2-devel >= 2.6.0
BuildPreReq: glib2-devel >= 2.10.0
BuildPreReq: libgtk+2-devel >= 2.8.0
%endif
%{?_enable_gedit:BuildPreReq: gedit-devel >= 2.6}
BuildPreReq: libgnome-panel-devel >= 2.9.4
%endif
%{?_enable_libnotify:BuildPreReq: libnotify-devel >= 0.3}
%{?_enable_ssh:BuildPreReq: openssh openssh-clients}

BuildRequires: gcc-c++ gnupg libSM-devel libgcrypt-devel libgnutls-devel libgpg-error-devel libgpgme-devel libpopt-devel libsoup-devel libtasn1-devel zlib-devel

%description
Seahorse is a graphical interface for managing and using encryption keys.
Currently it supports PGP keys using for Gnu Privacy Guard. Its goal is to
provide an easy to use Key Management Tool, along with an easy to use interface for encryption operations.

%package -n lib%name
Summary: Seahorse libraries
Group: Graphical desktop/GNOME

%description -n lib%name
Seahorse is a graphical interface for managing and using encryption keys. This package contains Seahorse libraries. Note: to use Seahorse, you should install seahorse package and/or Seahorse applet.

%package -n lib%name-devel
Summary: Seahorse development files
Group: Development/GNOME and GTK+
Requires: lib%name = %version-%release

%description -n lib%name-devel
This package contains files necessary to develop applications that use or
extend Seahorse encryption keys manager.

%package agent
Summary: Seahorse GPG/SSH Agent
Group: File tools
PreReq: lib%name = %version-%release
# TODO: When Bug #10595 is fixed, replace this with ssh-agent.
Requires: openssh-clients

%description agent
Seahorse is a graphical interface for managing and using encryption keys.
Currently it supports PGP keys using for Gnu Privacy Guard. Its goal is to
provide an easy to use Key Management Tool, along with an easy to use interface for encryption operations.

This package contains Seahorse Agent, a program that caches GPG/SSH passphrases
for the session. IMPORTANT NOTE: Seahorse Agent interacts with ssh-agent BUT is
not able to interact with gpg-agent, it appears as gpg-agent itself. Please
switch gpg-agent off if you intend to use seahorse-agent for GPG passphrases
caching.

%package -n nautilus-%name
Summary: Seahorse Nautilus plugin
Group: File tools
PreReq: nautilus2
PreReq: lib%name = %version-%release

%description -n nautilus-%name
Seahorse is a graphical interface for managing and using encryption keys.
Currently it supports PGP keys using for Gnu Privacy Guard. Its goal is to
provide an easy to use Key Management Tool, along with an easy to use interface for encryption operations.

This package contains seahorse Nautilus plugin.

%package -n gedit-plugins-%name
Summary: Seahorse gEdit plugin
Group: Editors
PreReq: gedit
PreReq: lib%name = %version-%release

%description -n gedit-plugins-%name
Seahorse is a graphical interface for managing and using encryption keys.
Currently it supports PGP keys using for Gnu Privacy Guard. Its goal is to
provide an easy to use Key Management Tool, along with an easy to use interface for encryption operations.

This package contains seahorse gEdit plugin.

%package -n gnome-applets-%name
Summary: Seahorse panel applet
Group: Graphical desktop/GNOME
PreReq: %name = %version-%release

%description -n gnome-applets-%name
Seahorse is a graphical interface for managing and using encryption keys.
Currently it supports PGP keys using for Gnu Privacy Guard. Its goal is to
provide an easy to use Key Management Tool, along with an easy to use interface for encryption operations.

This package contains Seahorse applet for the GNOME panel.

%prep
%setup -q

%build
%__autoreconf
%configure \
%{subst_enable debug} \
   %{subst_with ldap} \
   %{subst_enable hkp} \
   --enable-keyserver \
   %{subst_enable nautilus} \
   --enable-agent \
   %{?_enable_gnome_keyring:--enable-gnome-keyring} \
   %{subst_enable sharing} \
   %{subst_enable dbus} \
   %{subst_enable epiphany} \
   %{subst_enable gedit} \
   --enable-applet \
   %{subst_enable libnotify} \
   %{subst_enable ssh} \
   --enable-tests \
   --disable-static \
   --disable-scrollkeeper \
   --disable-update-mime-database \

%make_build

%install
%make_install DESTDIR=%buildroot install
mkdir -p %buildroot%_sysconfdir/X11/profile.d
install -m755 %SOURCE2 %buildroot%_sysconfdir/X11/profile.d/seahorse-agent.sh

%find_lang %name

%post -n lib%name
%post_ldconfig

%postun -n lib%name
%postun_ldconfig

%post
%gconf2_install %name
%update_scrollkeeper

%preun
if [ $1 = 0 ]; then
%gconf2_uninstall %name
fi

%postun
%clean_scrollkeeper

%post agent
{
echo "Attention for those who use gpg-agent!"
echo "Seahorse-agent does not integrate with gpg-agent, but can act"
echo "as a gpg-agent itself. You should disable original gpg-agent"
echo "to avoid the mess (by default it is disabled)."
echo "(In short: make sure a line with 'use-agent'"
echo "in your ~/.gnupg/gpg.conf is commented out or absent)"
} || :

%post -n nautilus-%name
%update_mimedb

%postun -n nautilus-%name
%clean_mimedb

%post -n gedit-plugins-%name
%gconf2_install %name-gedit

%preun -n gedit-plugins-%name
if [ $1 = 0 ]; then
%gconf2_uninstall %name-gedit
fi

%files -n lib%name -f %name.lang
%_libdir/libcryptui.so.*
%_bindir/cryptui-test-keyset
%_bindir/cryptui-test-ui
%dir %_libdir/%name
%_libdir/%name/%name-ssh-askpass
%_libdir/%name/xloadimage

%files
%_bindir/%name
%_bindir/%name-tool
%_bindir/%name-preferences
%dir %_datadir/%name
%dir %_datadir/%name/glade
%_datadir/%name/glade/*.glade
%exclude %_datadir/%name/glade/%name-applet-*.glade
%_datadir/%name/glade/*.ui
%exclude %_datadir/%name/glade/seahorse-agent-cache.glade
%_datadir/dbus-1/services/*.service
%_liconsdir/%{name}*.png
%_iconsdir/hicolor/22x22/apps/%{name}*.svg
%_iconsdir/hicolor/scalable/apps/%{name}*.svg
%_pixmapsdir/%{name}*
%_desktopdir/*.desktop
%_datadir/control-center-2.0/capplets/*.desktop
%_datadir/gnome/help/%name
%_datadir/omf/%name
%_man1dir/%name-tool.*
%config %_sysconfdir/gconf/schemas/seahorse.schemas
%doc AUTHORS ChangeLog COPYING COPYING-DOCS NEWS README THANKS TODO

%files -n lib%name-devel
%dir %_includedir/libcryptui
%_includedir/libcryptui/*.h
%_libdir/libcryptui.so
%_pkgconfigdir/cryptui-*.pc

%files agent
%attr(711,root,root) %_bindir/%name-daemon
%_bindir/%name-agent
%_datadir/%name/glade/seahorse-agent-cache.glade
%_man1dir/seahorse-daemon.*
%_man1dir/seahorse-agent.*
%_sysconfdir/X11/profile.d/seahorse-agent.sh

%files -n nautilus-%name
%_libdir/nautilus/extensions-1.0/*
%exclude %_libdir/nautilus/extensions-1.0/*.la
%_datadir/mime/packages/*

%files -n gedit-plugins-%name
%_libdir/gedit-2/plugins/*
%exclude %_libdir/gedit-2/plugins/*.la
%config %_sysconfdir/gconf/schemas/%name-gedit.schemas

%files -n gnome-applets-%name
%_libdir/%name/%name-applet
%_libdir/bonobo/servers/*.server
%_datadir/gnome-2.0/ui/*.xml
%_datadir/%name/glade/%name-applet-*.glade
%_datadir/gnome/help/%name-applet
%_datadir/omf/%name-applet

%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