seahorse/seahorse.spec

118 lines
3.3 KiB
RPMSpec

#
# spec file for package seahorse
#
# 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
License: GPLv2+
Group: Productivity/Security
Version: 3.1.4
Release: 1
Summary: GNOME interface for gnupg
Url: http://seahorse.sourceforge.net/
Source: http://download.gnome.org/sources/seahorse/3.1/%{name}-%{version}.tar.bz2
BuildRequires: fdupes
BuildRequires: gnome-doc-utils-devel
BuildRequires: gpg2
BuildRequires: gpgme-devel
BuildRequires: intltool
BuildRequires: openldap2-devel
BuildRequires: openssh
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(avahi-client)
BuildRequires: pkgconfig(avahi-glib)
BuildRequires: pkgconfig(gck-1)
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(gcr-3)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gnome-keyring-1)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libsoup-2.4)
Recommends: %{name}-lang
Obsoletes: %{name}-devel < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq
%description
Seahorse is a GNOME interface for gnupg. It uses gpgme as the backend.
%lang_package
%prep
%setup -q
translation-update-upstream
%build
%configure \
--disable-scrollkeeper \
--disable-schemas-install
make %{?jobs:-j%jobs} V=1
%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
%{__rm} -f %{buildroot}%{_libdir}/*.*a
# there's no public libseahorse library, so we don't need the doc (bgo#655275)
rm -r %{buildroot}%{_datadir}/gtk-doc/html/libseahorse/
%suse_update_desktop_file -G "Passwords and Encryption Keys" -N "Seahorse" %{name}
%find_lang %{name} %{?no_lang_C}
%find_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
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.schemas_list
%defattr(-,root,root)
%doc AUTHORS ChangeLog ChangeLog.pre-auto 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
%{_libdir}/seahorse/
%{_datadir}/applications/seahorse.desktop
%{_datadir}/icons/hicolor/*/*/seahorse.png
%{_datadir}/icons/hicolor/*/*/seahorse-preferences.png
%{_datadir}/pixmaps/seahorse/
%{_datadir}/seahorse/
%{_mandir}/man1/seahorse.1.*
%files lang -f %{name}.lang
%changelog