]>
Commit | Line | Data |
---|---|---|
5a548b14 ER |
1 | Summary: A lightweight email program designed around conversations |
2 | Name: geary | |
68137426 | 3 | Version: 0.3.1 |
5a548b14 ER |
4 | Release: 1 |
5 | License: LGPL v2+ | |
68137426 | 6 | Group: X11/Applications/Mail |
5a548b14 | 7 | Source0: http://yorba.org/download/geary/stable/%{name}-%{version}.tar.xz |
68137426 | 8 | # Source0-md5: aeb7c65926cbe47d19851ecb72dbf6cc |
5a548b14 ER |
9 | URL: http://yorba.org/geary/ |
10 | BuildRequires: cmake | |
11 | BuildRequires: desktop-file-utils | |
12 | BuildRequires: gettext | |
13 | BuildRequires: glib2-devel >= 1:2.30.0 | |
14 | BuildRequires: gmime-devel >= 2.6.0 | |
15 | BuildRequires: gtk+3-devel >= 3.2.0 | |
16 | BuildRequires: gtk-webkit3-devel >= 1.8.0 | |
17 | BuildRequires: intltool | |
18 | BuildRequires: libcanberra-devel >= 0.28 | |
19 | BuildRequires: libgee0.6-devel >= 0.6.0 | |
20 | BuildRequires: libgnome-keyring-devel >= 3.2.2 | |
21 | BuildRequires: libnotify-devel >= 0.7.5 | |
22 | BuildRequires: libunique3-devel >= 3.0.0 | |
23 | BuildRequires: sqlite3-devel >= 3.7.4 | |
24 | BuildRequires: vala >= 0.17.4 | |
2ea0025c | 25 | BuildRequires: vala-libcanberra |
5a548b14 ER |
26 | Requires: desktop-file-utils |
27 | Requires: glib2 >= 1:2.26.0 | |
28 | Requires: gtk-update-icon-cache | |
29 | Requires: hicolor-icon-theme | |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
33 | Geary is a new email reader for GNOME designed to let you read your | |
34 | email quickly and effortlessly. Its interface is based on | |
35 | conversations, so you can easily read an entire discussion without | |
36 | having to click from message to message. Geary is still in early | |
37 | development and has limited features today, but we're planning to add | |
38 | drag-and-drop attachments, lightning-fast searching, multiple account | |
39 | support and much more. Eventually we'd like Geary to have an | |
40 | extensible plugin architecture so that developers will be able to add | |
41 | all kinds of nifty features in a modular way. | |
42 | ||
43 | %prep | |
44 | %setup -q | |
45 | ||
46 | %build | |
47 | %cmake \ | |
48 | -DGSETTINGS_COMPILE=OFF \ | |
49 | -DGSETTINGS_COMPILE_IN_PLACE=OFF \ | |
50 | -DICON_UPDATE=OFF \ | |
51 | -DDESKTOP_UPDATE=OFF | |
52 | ||
53 | %{__make} | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | %{__make} install \ | |
58 | DESTDIR=$RPM_BUILD_ROOT | |
59 | ||
60 | # see http://redmine.yorba.org/issues/5692 | |
61 | find $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas -type f -a \( \ | |
62 | -name org.yorba.geary.gschema.xml -o -delete \) | |
63 | ||
64 | desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/geary.desktop | |
65 | ||
9a86bd6f ER |
66 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ca_ES |
67 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/el_GR | |
68 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES | |
68137426 ER |
69 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/hi_IN |
70 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/hu_HU | |
71 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ja_JP | |
9a86bd6f ER |
72 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/km_KH |
73 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/nl_NL | |
74 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ro_RO | |
9a86bd6f | 75 | |
5a548b14 ER |
76 | %find_lang %{name} --with-gnome |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post | |
82 | %update_desktop_database | |
83 | %update_icon_cache hicolor | |
84 | %glib_compile_schemas | |
85 | ||
86 | %postun | |
87 | %update_desktop_database | |
88 | %update_icon_cache hicolor | |
89 | %glib_compile_schemas | |
90 | ||
91 | %files -f %{name}.lang | |
92 | %defattr(644,root,root,755) | |
93 | %doc AUTHORS COPYING NEWS MAINTAINERS README THANKS | |
94 | %attr(755,root,root) %{_bindir}/geary | |
95 | %{_datadir}/geary | |
96 | %{_desktopdir}/geary.desktop | |
97 | %{_datadir}/glib-2.0/schemas/org.yorba.geary.gschema.xml | |
98 | %{_iconsdir}/hicolor/*/apps/geary.* | |
68137426 | 99 |