9a7e93c
Name:		geary
d7871f9
Version:	0.3.0
d7871f9
Release:	1%{?dist}
9a7e93c
Summary:	A lightweight email program designed around conversations
9a7e93c
License:	LGPLv2+
9a7e93c
URL:		http://yorba.org/geary/
9a7e93c
Source0:	http://yorba.org/download/geary/stable/%{name}-%{version}.tar.xz
d7871f9
Patch0:		geary-0.3.0-desktop.patch
9a7e93c
9a7e93c
BuildRequires:	vala >= 0.17.4
9a7e93c
BuildRequires:	cmake
d7871f9
BuildRequires:	desktop-file-utils
d7871f9
BuildRequires:	gettext
d7871f9
BuildRequires:	intltool
9a7e93c
BuildRequires:	pkgconfig(gthread-2.0)
9a7e93c
BuildRequires:	pkgconfig(glib-2.0) >= 2.30.0
9a7e93c
BuildRequires:	pkgconfig(gio-2.0) >= 2.28.0
d7871f9
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.4.0
9a7e93c
BuildRequires:	pkgconfig(gee-1.0) >= 0.6.0
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
9a7e93c
BuildRequires:	pkgconfig(gnome-keyring-1) >= 3.2.2
9a7e93c
BuildRequires:	pkgconfig(webkitgtk-3.0) >= 1.8.0
9a7e93c
Requires:	hicolor-icon-theme
9a7e93c
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
d7871f9
%patch0 -p1
9a7e93c
9a7e93c
9a7e93c
%build
9a7e93c
%cmake -DVALA_EXECUTABLE:FILEPATH=%{_bindir}/valac-0.18 \
9a7e93c
       -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
9a7e93c
%{_datadir}/glib-2.0/schemas/org.yorba.geary.gschema.xml
9a4b2e1
%{_datadir}/icons/hicolor/*/apps/geary.*
9a7e93c
9a7e93c
9a7e93c
%changelog
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.