File seahorse-sharing.spec of Package seahorse-sharing
#
# spec file for package seahorse-sharing
#
# 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/
#
%define have_lang 0
Name: seahorse-sharing
License: GPLv2+
Group: Productivity/Security
Version: 3.2.1
Release: 1
Summary: Sharing of PGP public keys via DNS-SD and HKP
Url: http://projects.gnome.org/seahorse/
Source: http://download.gnome.org/sources/seahorse-sharing/3.2/%{name}-%{version}.tar.bz2
BuildRequires: gpg2
BuildRequires: gpgme-devel
BuildRequires: intltool
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(avahi-client)
BuildRequires: pkgconfig(avahi-glib) >= 0.6
BuildRequires: pkgconfig(gtk+-3.0) >= 3.0
BuildRequires: pkgconfig(libsoup-2.4)
%if %{have_lang}
Recommends: %{name}-lang
%endif
Enhances: seahorse
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package adds sharing of PGP public keys via DNS-SD and HKP.
%if %{have_lang}
%lang_package
%endif
%prep
%setup -q
%build
%configure
make %{?_smp_mflags} V=1
%install
%make_install
# Drop translations that don't use the right domain (reported upstream by mail)
rm %{buildroot}%{_datadir}/locale/*/LC_MESSAGES/seahorse.mo
%suse_update_desktop_file %{name}
%if %{have_lang}
%find_lang %{name} %{?no_lang_C}
%endif
%files
%defattr(-,root,root)
%doc AUTHORS COPYING MAINTAINERS NEWS README
%{_sysconfdir}/xdg/autostart/seahorse-sharing.desktop
%{_bindir}/seahorse-sharing
%{_mandir}/man1/seahorse-sharing.1%{?ext_man}
%dir %{_datadir}/pixmaps/seahorse/
%dir %{_datadir}/pixmaps/seahorse/*/
%{_datadir}/pixmaps/seahorse/*/seahorse-share-keys.*
%if %{have_lang}
%files lang -f %{name}.lang
%endif
%changelog