]>
Commit | Line | Data |
---|---|---|
43dc8dde | 1 | %define evo_ver 3.8 |
ca5dd52b | 2 | %define rname mail-notification |
2c771f4d | 3 | Summary: GNOME notification area mail monitor |
298cf109 | 4 | Summary(pl.UTF-8): Monitor poczty widoczny w obszarze powiadamiania GNOME |
3947813d | 5 | Name: gnome-mail-notification |
49e85167 | 6 | Version: 5.4 |
43dc8dde | 7 | Release: 17 |
3a4a569a | 8 | License: GPL v3+ |
2c771f4d | 9 | Group: X11/Applications |
6324eeb8 | 10 | Source0: https://github.com/epienbroek/mail-notification/tarball/master/%{rname}-%{version}.tar.gz |
43dc8dde JR |
11 | # Source0-md5: 1c4aea14dd2f9b89b659eaf39cde05f4 |
12 | Patch0: mail-notification-jb-gcc-format.patch | |
3947813d | 13 | URL: http://www.nongnu.org/mailnotify/ |
878c33be MB |
14 | BuildRequires: GConf2-devel >= 2.22.0 |
15 | BuildRequires: autoconf >= 2.59 | |
16 | BuildRequires: automake | |
c9641081 | 17 | BuildRequires: cyrus-sasl-devel >= 2.0 |
3a4a569a | 18 | BuildRequires: evolution-devel >= 3.0.0 |
878c33be | 19 | BuildRequires: gettext-devel |
302a71f0 | 20 | BuildRequires: gmime-devel >= 2.1.19 |
7cbcbd84 | 21 | BuildRequires: gmime22-devel |
c457780c | 22 | BuildRequires: libgnome-keyring-devel >= 3.0.0 |
878c33be | 23 | BuildRequires: gnome-vfs2-devel >= 2.22.0 |
3a4a569a | 24 | BuildRequires: gtk+3-devel >= 3.0.0 |
878c33be MB |
25 | BuildRequires: intltool >= 0.36.2 |
26 | BuildRequires: libbonobo-devel >= 2.22.0 | |
27 | BuildRequires: libglade2-devel >= 1:2.6.2 | |
28 | BuildRequires: libgnomeui-devel >= 2.22.01 | |
29 | BuildRequires: libnotify-devel >= 0.4.1 | |
30 | BuildRequires: libtool | |
31 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
881fd5fa | 32 | BuildRequires: nautilus-devel >= 2.30 |
a1e7dbf1 | 33 | BuildRequires: openssl-devel |
ca5dd52b | 34 | BuildRequires: pkgconfig |
878c33be MB |
35 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
36 | BuildRequires: rpmbuild(macros) >= 1.311 | |
f10774d5 | 37 | BuildRequires: scrollkeeper |
878c33be | 38 | BuildRequires: sed >= 4.0 |
64767dcb | 39 | Requires(post,postun): gtk-update-icon-cache |
878c33be | 40 | Requires(post,postun): hicolor-icon-theme |
85e87538 | 41 | Requires(post,postun): scrollkeeper |
878c33be | 42 | Requires(post,preun): GConf2 |
302a71f0 | 43 | Requires: gmime >= 2.1.19 |
878c33be | 44 | Requires: libgnomeui >= 2.22.01 |
6c3ef107 | 45 | # sr@Latn vs. sr@latin |
46 | Conflicts: glibc-misc < 6:2.7 | |
2c771f4d | 47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
48 | ||
2c771f4d | 49 | %description |
72e5959a | 50 | Mail Notification is an icon for the GNOME Notification Area that |
878c33be MB |
51 | informs users if they have new mail. It handles multiple folders and |
52 | multiple folder formats. | |
72e5959a | 53 | |
b70bc070 JR |
54 | %description -l pl.UTF-8 |
55 | Mail Notification to ikona dla obszaru powiadamiania GNOME informująca | |
56 | użytkowników, czy mają nową pocztę. Obsługuje wiele folderów oraz | |
57 | wiele formatów folderów. | |
2c771f4d | 58 | |
abac35ed | 59 | %package -n evolution-plugin-mail-notification |
60 | Summary: Mail Notification plugin for Evolution | |
298cf109 | 61 | Summary(pl.UTF-8): Wtyczka Mail Notification dla Evolution |
abac35ed | 62 | Group: X11/Applications |
63 | Requires: %{name} = %{version}-%{release} | |
3a4a569a | 64 | Requires: evolution >= 3.0.0 |
abac35ed | 65 | |
66 | %description -n evolution-plugin-mail-notification | |
67 | Evolution mailbox support for Mail Notification. | |
68 | ||
b70bc070 | 69 | %description -n evolution-plugin-mail-notification -l pl.UTF-8 |
abac35ed | 70 | Wsparcie dla skrzynek pocztowych Evolution w Mail Notification. |
71 | ||
2c771f4d | 72 | %prep |
43dc8dde JR |
73 | %setup -q -n epienbroek-%{rname}-45d11d2 |
74 | %patch0 -p1 | |
2c771f4d | 75 | |
76 | %build | |
4b4cb7e4 | 77 | ./jb configure \ |
766a7242 JR |
78 | libs="-lX11" \ |
79 | destdir=$RPM_BUILD_ROOT \ | |
80 | sysconfdir=%{_sysconfdir} \ | |
81 | localstatedir=%{_var} \ | |
82 | install-gconf-schemas=no | |
6324eeb8 | 83 | |
7cbcbd84 | 84 | ./jb build |
2c771f4d | 85 | |
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
e6eea3d1 JR |
89 | ./jb install |
90 | ||
66b235f2 | 91 | # install also GtkBuilder files |
6324eeb8 JR |
92 | #cp -p ui/mailbox-properties-dialog.ui $RPM_BUILD_ROOT%{_datadir}/mail-notification |
93 | #cp -p ui/properties-dialog.ui $RPM_BUILD_ROOT%{_datadir}/mail-notification | |
abac35ed | 94 | |
878c33be | 95 | %find_lang %{rname} --all-name --with-gnome --with-omf |
72e5959a | 96 | |
2c771f4d | 97 | %clean |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
ca5dd52b | 100 | %post |
b23d6717 | 101 | %scrollkeeper_update_post |
102 | %gconf_schema_install mail-notification.schemas | |
878c33be | 103 | %update_icon_cache hicolor |
85e87538 | 104 | |
105 | %preun | |
b23d6717 | 106 | %gconf_schema_uninstall mail-notification.schemas |
ca5dd52b | 107 | |
1a0e9a2c | 108 | %postun |
b23d6717 | 109 | %scrollkeeper_update_postun |
878c33be | 110 | %update_icon_cache hicolor |
1a0e9a2c | 111 | |
ca5dd52b | 112 | %files -f %{rname}.lang |
2c771f4d | 113 | %defattr(644,root,root,755) |
1a0e9a2c | 114 | %doc NEWS README TODO |
72e5959a | 115 | %attr(755,root,root) %{_bindir}/mail-notification |
878c33be MB |
116 | %{_datadir}/mail-notification |
117 | %{_sysconfdir}/xdg/autostart/mail-notification.desktop | |
118 | %{_desktopdir}/mail-notification-properties.desktop | |
878c33be MB |
119 | %{_iconsdir}/hicolor/*/*/*.png |
120 | %{_iconsdir}/hicolor/*/*/*.svg | |
b010df0c | 121 | %{_sysconfdir}/gconf/schemas/mail-notification.schemas |
abac35ed | 122 | |
123 | %files -n evolution-plugin-mail-notification | |
124 | %defattr(644,root,root,755) | |
3947813d JB |
125 | %attr(755,root,root) %{_libdir}/evolution/%{evo_ver}/plugins/liborg-jylefort-mail-notification.so |
126 | %{_libdir}/evolution/%{evo_ver}/plugins/org-jylefort-mail-notification.eplug |