9a7e93c
Name:		geary
be40a93
Version:	0.6.5
403e019
Release:	1%{?dist}
9a7e93c
Summary:	A lightweight email program designed around conversations
9a7e93c
License:	LGPLv2+
9a7e93c
URL:		http://yorba.org/geary/
9f14412
Source0:	https://download.gnome.org/sources/geary/0.6/%{name}-%{version}.tar.xz
9f14412
Patch0:		geary-0.5.3-vapigen.patch
9f14412
BuildRequires:	vala >= 0.22.1
9f14412
BuildRequires:	vala-tools >= 0.22.1
9a7e93c
BuildRequires:	cmake
d7871f9
BuildRequires:	desktop-file-utils
d7871f9
BuildRequires:	gettext
d7871f9
BuildRequires:	intltool
93baa95
BuildRequires:	gnome-doc-utils
9a7e93c
BuildRequires:	pkgconfig(gthread-2.0)
011eafe
BuildRequires:	pkgconfig(glib-2.0) >= 2.32.0
9a7e93c
BuildRequires:	pkgconfig(gio-2.0) >= 2.28.0
011eafe
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.6.0
011eafe
BuildRequires:	pkgconfig(gee-0.8) >= 0.8.5
9a7e93c
BuildRequires:	pkgconfig(unique-3.0) >= 3.0.0
9a7e93c
BuildRequires:	pkgconfig(libnotify) >= 0.7.5
9a7e93c
BuildRequires:	pkgconfig(libcanberra) >= 0.28
9a7e93c
BuildRequires:	pkgconfig(sqlite3) >= 3.7.4
9a7e93c
BuildRequires:	pkgconfig(gmime-2.6) >= 2.6.0
011eafe
BuildRequires:	pkgconfig(libsecret-1) >= 0.11
acefd39
BuildRequires:	pkgconfig(gcr-3)
011eafe
BuildRequires:	pkgconfig(webkitgtk-3.0) >= 1.10.0
011eafe
BuildRequires:	pkgconfig(libxml-2.0) >= 2.7.8
10b68f7
BuildRequires:	pkgconfig(gobject-introspection-1.0)
9a7e93c
Requires:	hicolor-icon-theme
9a7e93c
c713b32
%if 0%{?fedora} < 20
c713b32
%global vala_version_suffix -0.22
c713b32
%endif
c713b32
9a7e93c
9a7e93c
%description
9a7e93c
Geary is a new email reader for GNOME designed to let you read your
9a7e93c
email quickly and effortlessly. Its interface is based on
9a7e93c
conversations, so you can easily read an entire discussion without
9a7e93c
having to click from message to message. Geary is still in early
9a7e93c
development and has limited features today, but we're planning to add
9a7e93c
drag-and-drop attachments, lightning-fast searching, multiple account
9a7e93c
support and much more. Eventually we'd like Geary to have an
9a7e93c
extensible plugin architecture so that developers will be able to add
9a7e93c
all kinds of nifty features in a modular way.
9a7e93c
9a7e93c
9a7e93c
%prep
d7871f9
%setup -q
d44ee5b
%patch0 -p1
9a7e93c
9a7e93c
9a7e93c
%build
c713b32
%cmake -DVALA_EXECUTABLE:FILEPATH=%{_bindir}/valac%{?vala_version_suffix} \
c713b32
       -DVAPIGEN:FILEPATH=%{_bindir}/vapigen%{?vala_version_suffix} \
9f14412
       -DGSETTINGS_COMPILE=OFF \
9a7e93c
       -DGSETTINGS_COMPILE_IN_PLACE=OFF \
9a7e93c
       -DICON_UPDATE=OFF \
9a7e93c
       -DDESKTOP_UPDATE=OFF
9a7e93c
make %{?_smp_mflags}
9a7e93c
9a7e93c
9a7e93c
%install
9a7e93c
make install DESTDIR=%{buildroot}
9a7e93c
9a7e93c
desktop-file-validate %{buildroot}%{_datadir}/applications/geary.desktop
9a7e93c
9a7e93c
%find_lang %{name} --with-gnome
9a7e93c
9a7e93c
9a7e93c
%post
9a7e93c
update-desktop-database &>/dev/null || :
9a7e93c
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
9a7e93c
9a7e93c
9a7e93c
%postun
9a7e93c
update-desktop-database &> /dev/null || :
9a7e93c
if [ $1 -eq 0 ] ; then
9a7e93c
  touch --no-create %{_datadir}/icons/hicolor &>/dev/null
9a7e93c
  gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &>/dev/null || :
9a7e93c
  glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
9a7e93c
fi
9a7e93c
9a7e93c
9a7e93c
%posttrans
9a7e93c
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &>/dev/null || :
9a7e93c
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
9a7e93c
9a7e93c
9a7e93c
%files -f %{name}.lang
9a7e93c
%doc AUTHORS COPYING NEWS MAINTAINERS README THANKS
9a7e93c
%{_bindir}/geary
9a7e93c
%{_datadir}/geary
9a7e93c
%{_datadir}/applications/geary.desktop
011eafe
%{_datadir}/appdata/geary.appdata.xml
9a7e93c
%{_datadir}/glib-2.0/schemas/org.yorba.geary.gschema.xml
9a4b2e1
%{_datadir}/icons/hicolor/*/apps/geary.*
9a7e93c
9a7e93c
9a7e93c
%changelog
be40a93
* Sun Nov 23 2014 Thomas Moschny <thomas.moschny@gmx.de> - 0.6.5-1
be40a93
- Update to 0.6.5.
be40a93
acefd39
* Wed Sep  3 2014 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.6.3-1
acefd39
- Update to 0.6.3 (fxes CVE-2014-5444)
acefd39
- Drop patch applied upstream
acefd39
403e019
* Fri Aug 22 2014 Thomas Moschny <thomas.moschny@gmx.de> - 0.6.2-1
403e019
- Update to 0.6.2.
403e019
- Drop patch applied upstream.
403e019
d2e12e4
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-3
d2e12e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
d2e12e4
d1859b8
* Fri Jul 25 2014 Thomas Moschny <thomas.moschny@gmx.de> - 0.6.1-2
d1859b8
- Add patch to fix timezone in date header (rhbz#1121306).
9b9b319
- Add patch to build with vala 0.25.1.
d1859b8
cb90066
* Fri Jul  4 2014 Thomas Moschny <thomas.moschny@gmx.de> - 0.6.1-1
cb90066
- Update to 0.6.1.
cb90066
3784753
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-2
3784753
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3784753
9f14412
* Thu Mar 20 2014 Thomas Moschny <thomas.moschny@gmx.de> - 0.6.0-1
9f14412
- Update to 0.6.0.
9f14412
d44ee5b
* Tue Feb 18 2014 Thomas Moschny <thomas.moschny@gmx.de> - 0.4.3-1
d44ee5b
- Update to 0.4.3.
d44ee5b
- Cherry-pick patch to compile with WebKitGTK 2.3.x.
d44ee5b
- Update source URL.
d44ee5b
2f48d84
* Sat Nov 23 2013 Thomas Moschny <thomas.moschny@gmx.de> - 0.4.2-1
2f48d84
- Update to 0.4.2.
2f48d84
- Drop patch applied upstream.
2f48d84
92a1b75
* Sat Nov 16 2013 Thomas Moschny <thomas.moschny@gmx.de> - 0.4.1-1
92a1b75
- Update to 0.4.1.
92a1b75
011eafe
* Wed Oct  9 2013 Thomas Moschny <thomas.moschny@gmx.de> - 0.4.0-1
011eafe
- Update to 0.4.0.
011eafe
- Drop patch applied upstream.
011eafe
- Update build requirements.
011eafe
- Include appdata file.
011eafe
4ab67c2
* Sat Aug 17 2013 Thomas Moschny <thomas.moschny@gmx.de> - 0.3.1-3
4ab67c2
- Fix FTBFS with WebKitGTK+ 2.1 (rhbz#992326).
4ab67c2
e4b238d
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-2
e4b238d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e4b238d
cc4dec0
* Wed Apr 10 2013 Thomas Moschny <thomas.moschny@gmx.de> - 0.3.1-1
cc4dec0
- Update to 0.3.1.
cc4dec0
d7871f9
* Wed Mar 20 2013 Thomas Moschny <thomas.moschny@gmx.de> - 0.3.0-1
d7871f9
- Update to 0.3.0.
d7871f9
5bacc60
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-2
5bacc60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5bacc60
2a140a0
* Fri Oct 19 2012 Thomas Moschny <thomas.moschny@gmx.de> - 0.2.2-1
2a140a0
- Update to 0.2.2.
2a140a0
3f435d4
* Wed Oct 10 2012 Thomas Moschny <thomas.moschny@gmx.de> - 0.2.1-1
2a70a74
- Update to 0.2.1.
3f435d4
- Add missing BR on intltool.
2a70a74
1df1c8c
* Thu Oct  4 2012 Thomas Moschny <thomas.moschny@gmx.de> - 0.2.0-1
1df1c8c
- Update to 0.2.0.
1df1c8c
9a4b2e1
* Sun Sep 16 2012 Thomas Moschny <thomas.moschny@gmx.de> - 0.1.90-1.git9867509
9a4b2e1
- Update to current head.
9a4b2e1
- Fix icon items in %%files.
9a4b2e1
bc7ca59
* Sat Sep  1 2012 Thomas Moschny <thomas.moschny@gmx.de> - 0.1.0-3.gitb6c50c2
bc7ca59
- Update to current head.
bc7ca59
9a7e93c
* Wed Aug 22 2012 Thomas Moschny <thomas.moschny@gmx.de> - 0.1.0-2.git5665a4f
9a7e93c
- Update to current head.
9a7e93c
- Remove wildcards from %%files section.
9a7e93c
- Do not pack other binaries than 'geary'.
9a7e93c
9a7e93c
* Sun Aug 19 2012 Thomas Moschny <thomas.moschny@gmx.de> - 0.1.0-1.git4ff24e0
9a7e93c
- New package.