File geary.spec of Package geary

#
# spec file for package geary
#
# Copyright (c) 2016 SUSE LINUX 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.11.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://download.gnome.org/sources/geary/0.11/%{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  update-desktop-files
BuildRequires:  xml2po
BuildRequires:  pkgconfig(gcr-3) >= 3.10.1
BuildRequires:  pkgconfig(gee-0.8) >= 0.8.5
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(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(libsecret-1) >= 0.11
BuildRequires:  pkgconfig(sqlite3) >= 3.7.4
BuildRequires:  pkgconfig(unique-3.0) >= 3.0.0
BuildRequires:  pkgconfig(vapigen) >= 0.22.1
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

%build
%cmake -DVALA_EXECUTABLE:FILEPATH=%{_bindir}/valac%{?vala_version_suffix} \
       -DVAPIGEN:FILEPATH=%{_bindir}/vapigen%{?vala_version_suffix} \
       -DGSETTINGS_COMPILE=OFF \
       -DGSETTINGS_COMPILE_IN_PLACE=OFF \
       -DICON_UPDATE=OFF \
       -DDESKTOP_UPDATE=OFF
make %{?_smp_mflags}

%install
%cmake_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 NEWS THANKS AUTHORS
%dir %{_datadir}/gnome
%dir %{_datadir}/gnome/help
%dir %{_datadir}/gnome/help/%{name}
%doc %{_datadir}/gnome/help/%{name}/C/
%{_bindir}/%{name}
%{_bindir}/geary-attach
%{_datadir}/%{name}/
%dir %{_datadir}/appdata
%{_datadir}/appdata/geary.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/geary-autostart.desktop
%dir %{_datadir}/contractor/
%{_datadir}/contractor/geary-attach.contract
%{_datadir}/icons/hicolor/
%{_datadir}/glib-2.0/schemas/org.yorba.geary.gschema.xml

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by