File seahorse-plugins.spec of Package seahorse-plugins

#
# spec file for package seahorse-plugins
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           seahorse-plugins
Version:        2.30.1
Release:        5
License:        GFDLv1.1 ; GPLv2+
Group:          Productivity/Security
Summary:        Plugins for the seahorse cryptography interface
Url:            http://www.gnome.org
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM seahorse-plugins-2.30.1-gpgisok.patch bgo#607423 michal@sawicz.net -- fix signing / encrypting
Patch0:         %{name}-2.30.1-gpgisok.patch
BuildRequires:  epiphany-devel
BuildRequires:  fdupes
# For directory ownership:
BuildRequires:  gedit
BuildRequires:  gedit-devel
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gnome-panel-devel
BuildRequires:  gpg2
BuildRequires:  gpgme-devel
BuildRequires:  intltool
BuildRequires:  libnotify-devel
BuildRequires:  nautilus-devel
BuildRequires:  seahorse-devel
BuildRequires:  shared-mime-info
BuildRequires:  update-desktop-files
# Needed by the patch
BuildRequires:  gnome-common
Recommends:     %{name}-lang
Supplements:    seahorse
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq

%description
Seahorse is a graphical interface for managing and using encryption
keys. Currently it supports PGP keys (using GPG/GPGME) and SSH keys.
Its goal is to provide an easy to use Key Management Tool, along with
an easy to use interface for encryption operations.

This package provides various plugins for seahorse.

%package applet
License:        GFDLv1.1 ; GPLv2+
Summary:        Plugins for the seahorse cryptography interface
Group:          System/GUI/GNOME
Requires:       %{name} = %{version}-%{release}

%description applet
Seahorse is a graphical interface for managing and using encryption
keys. Currently it supports PGP keys (using GPG/GPGME) and SSH keys.
Its goal is to provide an easy to use Key Management Tool, along with
an easy to use interface for encryption operations.

This package provides various plugins for seahorse.

%package epiphany
# When epiphany is updated, _epiphany_major_version will need to be too.
%define _epiphany_major_version 2.27
License:        GFDLv1.1 ; GPLv2+
Summary:        Plugins for the seahorse cryptography interface
Group:          System/GUI/GNOME
Requires:       %{name} = %{version}-%{release}
Requires:       epiphany

%description epiphany
Seahorse is a graphical interface for managing and using encryption
keys. Currently it supports PGP keys (using GPG/GPGME) and SSH keys.
Its goal is to provide an easy to use Key Management Tool, along with
an easy to use interface for encryption operations.

This package provides various plugins for seahorse.

%package gedit
License:        GFDLv1.1 ; GPLv2+
Summary:        Plugins for the seahorse cryptography interface
Group:          System/GUI/GNOME
Requires:       %{name} = %{version}-%{release}
# Requires: gedit = %(rpm -q --qf '%%{version}' gedit)
Requires:       gedit

%description gedit
Seahorse is a graphical interface for managing and using encryption
keys. Currently it supports PGP keys (using GPG/GPGME) and SSH keys.
Its goal is to provide an easy to use Key Management Tool, along with
an easy to use interface for encryption operations.

This package provides various plugins for seahorse.

%package nautilus
License:        GFDLv1.1 ; GPLv2+
Summary:        Plugins for the seahorse cryptography interface
Group:          System/GUI/GNOME
Requires:       %{name} = %{version}-%{release}
Requires:       nautilus

%description nautilus
Seahorse is a graphical interface for managing and using encryption
keys. Currently it supports PGP keys (using GPG/GPGME) and SSH keys.
Its goal is to provide an easy to use Key Management Tool, along with
an easy to use interface for encryption operations.

This package provides various plugins for seahorse.

%lang_package
%prep
%setup -q
%patch0 -p1

%build
%configure \
    --disable-static \
    --disable-update-mime-database \
    --disable-schemas-install \
    --disable-scrollkeeper
make

%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
find %{buildroot} -type f -name "*.la" -delete -print
%suse_update_desktop_file seahorse-pgp-encrypted
%suse_update_desktop_file seahorse-pgp-keys
%suse_update_desktop_file seahorse-pgp-preferences Security X-SuSE-ControlCenter-Personal
%suse_update_desktop_file seahorse-pgp-signature
%find_lang %{name} %{?no_lang_C}
%def_gconf_schemas %{name}
%add_gconf_schemas seahorse-plugins
%def_gconf_schemas %{name}-gedit
%add_gconf_schemas seahorse-gedit
%end_gconf_schemas
%fdupes $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%post
%desktop_database_post
%mime_database_post

%postun
%desktop_database_postun
%mime_database_postun

%post applet
%icon_theme_cache_post

%postun applet
%icon_theme_cache_postun

%pre gedit -f %{name}-gedit.schemas_pre

%posttrans gedit -f %{name}-gedit.schemas_posttrans

%preun gedit -f %{name}-gedit.schemas_preun

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.schemas_list
%defattr(-,root,root)
%doc AUTHORS ChangeLog NEWS README
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/%{name}/
%doc %{_datadir}/omf/%{name}/%{name}-C.omf
%{_bindir}/seahorse-*
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/seahorse-applet.svg
%{_datadir}/pixmaps/seahorse-plugins
%{_datadir}/seahorse-plugins
%{_mandir}/man1/*.1.gz
%{_datadir}/mime/packages/*.xml

%files applet
%defattr (-, root, root)
%doc %{_datadir}/gnome/help/seahorse-applet
%{_datadir}/gnome-2.0/ui/*.xml
%{_datadir}/icons/hicolor/*/*/*.png
%{_datadir}/icons/hicolor/*/*/*.svg
%{_libdir}/bonobo/servers/*.server
%{_libdir}/seahorse/seahorse-applet
%{_datadir}/omf/seahorse-applet
%if 0

%files epiphany
%defattr (-, root, root)
%dir %{_libdir}/epiphany/%_epiphany_major_version
%dir %{_libdir}/epiphany/%_epiphany_major_version/extensions
%{_libdir}/epiphany/%_epiphany_major_version/extensions/*.so
%{_libdir}/epiphany/%_epiphany_major_version/extensions/seahorse.ephy-extension
%endif

%files gedit -f %{name}-gedit.schemas_list
%defattr (-, root, root)
%{_libdir}/gedit-2/plugins/*.so
%{_libdir}/gedit-2/plugins/seahorse-pgp.gedit-plugin

%files nautilus
%defattr (-, root, root)
%{_libdir}/nautilus/extensions-2.0/*.so

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by