File gnome-gmail.spec of Package gnome-gmail
#
# spec file for package gnome-gmail
#
# Copyright (c) 2012 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/
#
Name: gnome-gmail
Version: 1.8.2
Release: 0
Summary: Gmail as a gnome mail handler
License: GPL-2.0+
Group: Productivity/Networking/Email/Clients
Url: http://sourceforge.net/projects/%{name}
Source: http://downloads.sourceforge.net/project/gnome-gmail/Version_1.8.2/%{name}-%{version}.tar.gz
# For directory ownerships
BuildRequires: gnome-control-center
BuildRequires: intltool
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gconf-2.0)
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
# gconf-editor is launched for configuration
Requires: gconf-editor
Requires: gnome-control-center
%if 0%{?suse_version} <= 1130
Requires: gnome-python-desktop
%else
Requires: python-gnomekeyring
%endif
%if 0%{?suse_version} <= 1130
Requires: python-gnome
%else
Requires: python-gconf
%endif
Requires: python-gtk
Requires: python-xml
Requires: xdg-utils
%gconf_schemas_requires
%description
This package makes Gmail a choice in the Gnome control panel for the default
mail handler. It opens in the default web browser.
%lang_package
%prep
%setup -q
%build
%configure
%__make %{?_smp-mflags}
%install
%makeinstall
%suse_update_desktop_file %{name}
%suse_update_desktop_file %{buildroot}%{_datadir}/gnome/autostart/setOOmailer.desktop
%if !(0%{?favor_gtk2})
rm %{buildroot}%{_datadir}/gnome-control-center/default-apps/gnome-gmail.xml
%endif
%find_gconf_schemas
%find_lang %{name} %{?no_lang_C}
%clean
rm -Rf %{buildroot}
%pre -f %{name}.schemas_pre
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%if 0%{?suse_version} > 1130
%post
%desktop_database_post
%icon_theme_cache_post
%endif
%if 0%{?suse_version} > 1130
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files -f %{name}.schemas_list
%defattr(-,root,root)
%doc README COPYING
%{_bindir}/gnome-gmail
%{_bindir}/setOOmailer
%if 0%{?favor_gtk2}
%{_datadir}/gnome-control-center/default-apps/gnome-gmail.xml
%endif
%{_datadir}/gnome-gmail/
%{_datadir}/icons/hicolor/*/apps/gnome-gmail.png
%{_datadir}/applications/gnome-gmail.desktop
%{_datadir}/gnome/autostart/setOOmailer.desktop
%{_mandir}/man1/gnome-gmail.1%{?ext_man}
%{_mandir}/man1/setOOmailer.1%{?ext_man}
%dir %{_datadir}/gnome
%dir %{_datadir}/gnome/autostart
%files lang -f %{name}.lang
%changelog