File geary.spec of Package geary

#
# spec file for package geary
#
# Copyright (c) 2013 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:           geary
Version:        0.3.1
Release:        0
Summary:        A lightweight email reader for the GNOME desktop
License:        LGPL-2.0+
Group:          Productivity/Networking/Email/Clients
Url:            http://yorba.org/geary
Source:         http://yorba.org/download/geary/stable/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM geary-webkitgtk-2.1.patch dimstar@opensuse.org -- Fix build with webkitgtk 2.1
Patch0:         geary-webkitgtk-2.1.patch
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gee-1.0) >= 0.6.0
BuildRequires:  pkgconfig(gio-2.0) >= 2.28.0
BuildRequires:  pkgconfig(glib-2.0) >= 2.32.0
BuildRequires:  pkgconfig(gmime-2.6) >= 2.6.0
BuildRequires:  pkgconfig(gnome-keyring-1) >= 3.2.2
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  pkgconfig(gthread-2.0)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.4.0
BuildRequires:  pkgconfig(libcanberra) >= 0.28
BuildRequires:  pkgconfig(libnotify) >= 0.7.5
BuildRequires:  pkgconfig(sqlite3) >= 3.7.4
BuildRequires:  pkgconfig(unique-3.0) >= 3.0.0
BuildRequires:  pkgconfig(vapigen) >= 0.17.4
BuildRequires:  pkgconfig(webkitgtk-3.0) >= 1.8.0
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires

%description
Geary is a new email reader for GNOME designed to let you read your email quickly and effortlessly.

Its interface is based on conversations, so you can easily read an entire discussion without having
to click from message to message.

%lang_package
%prep
%setup -q
%patch0 -p1
sed -i "/fatal-warnings/d" src/CMakeLists.txt

%build
# custom configure script, thus not using the macro.
./configure --prefix=%{_prefix}
make %{?_smp_mflags}

%install
%make_install
%suse_update_desktop_file %{name}
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}%{_datadir}

%post
%desktop_database_post
%icon_theme_cache_post
%glib2_gsettings_schema_post

%postun
%desktop_database_postun
%icon_theme_cache_postun
%glib2_gsettings_schema_postun

%files
%defattr(-,root,root)
%doc README COPYING MAINTAINERS NEWS THANKS AUTHORS
%dir %{_datadir}/gnome
%dir %{_datadir}/gnome/help
%dir %{_datadir}/gnome/help/%{name}
%doc %{_datadir}/gnome/help/%{name}/C/
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/glib-2.0/schemas/org.yorba.geary.gschema.xml

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by