File seahorse-plugins.spec of Package seahorse-plugins

#
# spec file for package seahorse-plugins (Version 2.24.1)
#
# Copyright (c) 2008 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.24.1
Release:        1
# For directory ownership:
BuildRequires:  epiphany
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:  nautilus-devel
BuildRequires:  seahorse-devel
BuildRequires:  shared-mime-info
BuildRequires:  update-desktop-files
# for the epiphany plugin:
%define xulrunner_version 190
BuildRequires:  mozilla-xulrunner%{xulrunner_version}-devel
BuildRequires:  gcc-c++
License:        GNU Free Documentation License, Version 1.1 (GFDL 1.1); GPL v2 or later
Group:          Productivity/Security
AutoReqProv:    on
PreReq:         gconf2
Requires:       %{name}-lang = %{version}
Summary:        Plugins for the seahorse cryptography interface
Source:         %{name}-%{version}.tar.bz2
Url:            http://www.gnome.org
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.



Authors:
--------
    Jacob Perkins <jap1@users.sourceforge.net>
    Jose Carlos Garcia Sogo <jsogo@users.sourceforge.net>
    Jean Schurger <jk24@users.sourceforge.net>
    Stef Walter <stef@memberwebs.com>
    Adam Schreiber <sadam@clemson.edu>

%package applet
License:        GNU Free Documentation License, Version 1.1 (GFDL 1.1); GPL v2 or later
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.



Authors:
--------
    Jacob Perkins <jap1@users.sourceforge.net>
    Jose Carlos Garcia Sogo <jsogo@users.sourceforge.net>
    Jean Schurger <jk24@users.sourceforge.net>
    Stef Walter <stef@memberwebs.com>
    Adam Schreiber <sadam@clemson.edu>

%package epiphany
# When epiphany is updated, _epiphany_major_version will need to be too.
%define _epiphany_major_version 2.24
License:        GNU Free Documentation License, Version 1.1 (GFDL 1.1); GPL v2 or later
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.



Authors:
--------
    Jacob Perkins <jap1@users.sourceforge.net>
    Jose Carlos Garcia Sogo <jsogo@users.sourceforge.net>
    Jean Schurger <jk24@users.sourceforge.net>
    Stef Walter <stef@memberwebs.com>
    Adam Schreiber <sadam@clemson.edu>

%package gedit
License:        GNU Free Documentation License, Version 1.1 (GFDL 1.1); GPL v2 or later
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.



Authors:
--------
    Jacob Perkins <jap1@users.sourceforge.net>
    Jose Carlos Garcia Sogo <jsogo@users.sourceforge.net>
    Jean Schurger <jk24@users.sourceforge.net>
    Stef Walter <stef@memberwebs.com>
    Adam Schreiber <sadam@clemson.edu>

%package nautilus
License:        GNU Free Documentation License, Version 1.1 (GFDL 1.1); GPL v2 or later
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.



Authors:
--------
    Jacob Perkins <jap1@users.sourceforge.net>
    Jose Carlos Garcia Sogo <jsogo@users.sourceforge.net>
    Jean Schurger <jk24@users.sourceforge.net>
    Stef Walter <stef@memberwebs.com>
    Adam Schreiber <sadam@clemson.edu>

%lang_package
%prep
%setup

%build
# ## %  { ?  suse_update_config:% { suse_update_config -f}}
# ## autoreconf -f -i
# ## export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -DLDAP_DEPRECATED -DWITH_SSH"
%configure \
    --disable-update-mime-database \
    --disable-scrollkeeper
make

%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 
%makeinstall
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL 
rm $RPM_BUILD_ROOT/%{_libdir}/epiphany/%_epiphany_major_version/extensions/*.*a
rm $RPM_BUILD_ROOT/%{_libdir}/gedit-2/plugins/*.*a
rm $RPM_BUILD_ROOT/%{_libdir}/nautilus/extensions-2.0/*.*a
( cd ${RPM_BUILD_ROOT}/%{_datadir}/mime/ && rm -rf XMLnamespaces globs mime application magic )
%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}
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
%fdupes $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre
%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%post
/sbin/ldconfig
if test -x usr/bin/update-mime-database ; then
  usr/bin/update-mime-database %{_prefix}/share/mime > /dev/null
fi

%postun
/sbin/ldconfig
if test -x usr/bin/update-mime-database ; then
  usr/bin/update-mime-database %{_prefix}/share/mime > /dev/null
fi

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lst
%defattr(-,root,root)
%doc AUTHORS ChangeLog NEWS README
%{_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
%{_datadir}/omf/seahorse-applet
%{_libdir}/bonobo/servers/*.server
%{_libdir}/seahorse/seahorse-applet

%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

%files gedit
%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
* Mon Oct 20 2008 mboman@suse.de
- Update to version 2.24.1:
  + Fix glade install directory.
* Thu Oct 16 2008 vuntz@novell.com
- Fix build: epiphany version is 2.24 and not 2.23.
* Wed Sep 24 2008 maw@suse.de
- Initial package of seahorse-plugins, version 2.24.0, containing
  functionality previously provided by the various
  seahorse-*-plugin packages.