]>
Commit | Line | Data |
---|---|---|
2ea78418 | 1 | # |
0d611c2a | 2 | # Conditional build: |
cd4bce63 | 3 | %bcond_without compface # build without compface support |
efcbcabb | 4 | %bcond_without gpg # build without GPG support |
cd4bce63 | 5 | %bcond_without ipv6 # build without IPv6 support |
d0d021dc | 6 | %bcond_without jpilot # build without JPilot support |
cd4bce63 | 7 | %bcond_without ldap # build without LDAP support |
9af53442 | 8 | %bcond_without tls # build without gnuTLS support |
2ea78418 | 9 | # |
efe080c2 | 10 | Summary: A bleeding edge branch of Sylpheed, a GTK2 based, lightweight, and fast e-mail client |
281af01d | 11 | Summary(pl.UTF-8): Rozwojowa wersja Sylpheed z dużą ilością zmian oraz ulepszeń |
7f0c3b3e | 12 | Name: claws-mail |
9bbf8a6a | 13 | Version: 3.7.10 |
00c21278 | 14 | Release: 2 |
9bbf8a6a | 15 | License: GPL v3+ |
ac3bbb47 | 16 | Group: X11/Applications/Mail |
e2134520 | 17 | Source0: http://downloads.sourceforge.net/sylpheed-claws/%{name}-%{version}.tar.bz2 |
9bbf8a6a | 18 | # Source0-md5: fcf58dcff52f0908ff3bc368d820408b |
f5cc606b | 19 | Source1: %{name}.desktop |
72ee768b | 20 | URL: http://www.claws-mail.org/ |
eeec3879 | 21 | BuildRequires: autoconf >= 2.60 |
0d611c2a | 22 | BuildRequires: automake |
bd6b0bc5 | 23 | BuildRequires: bzip2-devel |
48ca524d | 24 | %{?with_compface:BuildRequires: compface-devel} |
1d10180e | 25 | BuildRequires: gettext-devel |
ceeef691 | 26 | BuildRequires: gmp-devel |
b81c91b6 | 27 | %{?with_tls:BuildRequires: gnutls-devel >= 2.6.0} |
efe080c2 | 28 | %{?with_gpg:BuildRequires: gpgme-devel >= 1:0.4.5} |
66a37a7a | 29 | BuildRequires: gtk+2-devel >= 2:2.24.0 |
1f14e5a6 | 30 | BuildRequires: libetpan-devel >= 0.57 |
31 | BuildRequires: liblockfile-devel | |
1d10180e | 32 | BuildRequires: libltdl-devel |
0d611c2a | 33 | BuildRequires: libtool |
9c71148a | 34 | %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0} |
d0d021dc | 35 | %{?with_jpilot:BuildRequires: pilot-link-devel} |
bd6b0bc5 | 36 | BuildRequires: pkgconfig |
44d458d9 | 37 | BuildRequires: rpmbuild(macros) >= 1.311 |
9bbf8a6a | 38 | BuildRequires: sed >= 4.0 |
d0d021dc | 39 | BuildRequires: startup-notification-devel >= 0.5 |
e2134520 | 40 | Requires(post,postun): gtk-update-icon-cache |
44d458d9 | 41 | Requires(post,postun): hicolor-icon-theme |
66a37a7a | 42 | Requires: gtk+2 >= 2:2.24.0 |
1199c73d | 43 | Provides: sylpheed-claws |
5f09393e | 44 | Obsoletes: claws-mail-plugin-clamav |
9be288ee MB |
45 | Obsoletes: claws-mail-plugin-etpan-privacy |
46 | Obsoletes: claws-mail-plugin-maildir | |
f8816a1f | 47 | Obsoletes: claws-mail-plugin-pdf_viewer |
7f0c3b3e | 48 | Obsoletes: sylpheed-claws |
5f09393e | 49 | Obsoletes: sylpheed-claws-plugin-clamav |
761655de | 50 | Obsoletes: sylpheed-gtk2 |
0d611c2a | 51 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
52 | ||
0d611c2a | 53 | %description |
1f6e805c | 54 | This program is an X based fast e-mail client which has features same |
55 | as orginal Sylpheed but with new/improved features. Some of new stuff | |
56 | is really cool and useable. | |
5d4f1e09 | 57 | |
664cab97 JR |
58 | %description -l pl.UTF-8 |
59 | Szybki klient poczty o możliwościach takich jak oryginalny Sylpheed | |
60 | ale z nowymi/poprawionymi funkcjami. Niektóre dodatki są naprawdę | |
61 | świetne i użyteczne. | |
0d611c2a | 62 | |
b1b9f47a | 63 | %package devel |
7f0c3b3e | 64 | Summary: Headers from Claws-Mail |
281af01d | 65 | Summary(pl.UTF-8): Pliki nagłówkowe programu Claws-Mail |
ac3bbb47 | 66 | Group: X11/Development/Libraries |
ceea85d9 | 67 | Requires: %{name} = %{version}-%{release} |
b81c91b6 | 68 | Requires: gnutls-devel >= 2.6.0 |
43181944 | 69 | Requires: gpgme-devel >= 1:0.4.5 |
ff99b237 | 70 | Requires: libetpan-devel >= 0.54 |
1199c73d MB |
71 | Provides: sylpheed-claws-devel |
72 | Obsoletes: sylpheed-claws-devel | |
b1b9f47a | 73 | |
74 | %description devel | |
7f0c3b3e | 75 | Claws-Mail development package. |
b1b9f47a | 76 | |
664cab97 JR |
77 | %description devel -l pl.UTF-8 |
78 | Pliki nagłówkowe programu Claws-Mail. | |
b1b9f47a | 79 | |
d0d021dc | 80 | %package plugins |
7f0c3b3e | 81 | Summary: Special plugins for Claws-Mail (metapackage) |
281af01d | 82 | Summary(pl.UTF-8): Dodatkowe wtyczki dla Claws-Mail (metapakiet) |
ac3bbb47 | 83 | Group: X11/Applications/Mail |
d0d021dc | 84 | Requires: %{name} = %{version}-%{release} |
44d458d9 | 85 | Requires: %{name}-plugin-bogofilter = %{version}-%{release} |
dc3d0ddd | 86 | Requires: %{name}-plugin-dillo = %{version}-%{release} |
d0d021dc MB |
87 | %if %{with gpg} |
88 | Requires: %{name}-plugin-pgpinline = %{version}-%{release} | |
89 | Requires: %{name}-plugin-pgpmime = %{version}-%{release} | |
90 | %endif | |
1f14e5a6 | 91 | Requires: %{name}-plugin-smime = %{version}-%{release} |
dc3d0ddd MB |
92 | Requires: %{name}-plugin-spamassassin = %{version}-%{release} |
93 | Requires: %{name}-plugin-trayicon = %{version}-%{release} | |
a6cfdb5b | 94 | Provides: sylpheed-claws-plugins = %{version} |
1199c73d | 95 | Obsoletes: sylpheed-claws-plugins |
d0d021dc MB |
96 | |
97 | %description plugins | |
7f0c3b3e | 98 | This is collection of some usefull plugins for Claws-Mail |
d0d021dc MB |
99 | (metapackage). |
100 | ||
664cab97 JR |
101 | %description plugins -l pl.UTF-8 |
102 | Jest to zbiór kilku dodatkowych wtyczek powiększających możliwości | |
7f0c3b3e | 103 | Claws-Mail (metapakiet). |
d0d021dc | 104 | |
44d458d9 | 105 | %package plugin-bogofilter |
7f0c3b3e | 106 | Summary: Bogofilter plugin for Claws-Mail |
281af01d | 107 | Summary(pl.UTF-8): Wtyczka bogofilter dla Claws-Mail |
ac3bbb47 | 108 | Group: X11/Applications/Mail |
44d458d9 MB |
109 | Requires: %{name} = %{version}-%{release} |
110 | Requires: bogofilter | |
1199c73d MB |
111 | Provides: sylpheed-claws-plugin-bogofilter |
112 | Obsoletes: sylpheed-claws-plugin-bogofilter | |
44d458d9 MB |
113 | |
114 | %description plugin-bogofilter | |
115 | This plugin enables the scanning of incoming mail received from a POP, | |
116 | IMAP or LOCAL account using Bogofilter. It can optionally delete mail | |
117 | identified as spam or save it to a designated folder. | |
118 | ||
664cab97 JR |
119 | %description plugin-bogofilter -l pl.UTF-8 |
120 | Wtyczka pozwalająca na skanowanie bogofilterem poczty przychodzącej | |
121 | jak i już znajdującej się w lokalnych skrzynkach. Opcjonalnie może | |
122 | usuwać listy oznaczone jako spam lub zapisywać je w dedykowanym | |
44d458d9 MB |
123 | folderze. |
124 | ||
d0d021dc | 125 | %package plugin-dillo |
7f0c3b3e | 126 | Summary: dillo plugin for Claws-Mail |
281af01d | 127 | Summary(pl.UTF-8): Wtyczka dillo dla Claws-Mail |
ac3bbb47 | 128 | Group: X11/Applications/Mail |
d0d021dc MB |
129 | Requires: %{name} = %{version}-%{release} |
130 | Requires: dillo | |
1199c73d MB |
131 | Provides: sylpheed-claws-plugin-dillo |
132 | Obsoletes: sylpheed-claws-plugin-dillo | |
d0d021dc MB |
133 | Conflicts: sylpheed-claws-plugins <= 2.3.0-1 |
134 | ||
135 | %description plugin-dillo | |
136 | This plugin enables the viewing of html messages using the Dillo web | |
137 | browser. | |
138 | ||
664cab97 JR |
139 | %description plugin-dillo -l pl.UTF-8 |
140 | Wtyczka pozwalająca na przeglądanie listów pisanych w HTML przy pomocy | |
141 | przeglądarki Dillo. | |
9b63aae0 | 142 | |
d0d021dc | 143 | %package plugin-pgpcore |
7f0c3b3e | 144 | Summary: PGP/Core plugin for Claws-Mail |
281af01d | 145 | Summary(pl.UTF-8): Wtyczka PGP/Core dla Claws-Mail |
ac3bbb47 | 146 | Group: X11/Applications/Mail |
d0d021dc | 147 | Requires: %{name} = %{version}-%{release} |
1199c73d MB |
148 | Provides: sylpheed-claws-plugin-pgpcore |
149 | Obsoletes: sylpheed-claws-plugin-pgpcore | |
d0d021dc MB |
150 | Conflicts: sylpheed-claws-plugins <= 2.3.0-1 |
151 | ||
152 | %description plugin-pgpcore | |
153 | This plugin handles core PGP functions. | |
154 | ||
664cab97 JR |
155 | %description plugin-pgpcore -l pl.UTF-8 |
156 | Wtyczka obsługująca podstawowe funkcje PGP. | |
9b63aae0 | 157 | |
d0d021dc | 158 | %package plugin-pgpinline |
7f0c3b3e | 159 | Summary: PGP/Inline plugin for Claws-Mail |
281af01d | 160 | Summary(pl.UTF-8): Wtyczka PGP/Inline dla Claws-Mail |
ac3bbb47 | 161 | Group: X11/Applications/Mail |
d0d021dc | 162 | Requires: %{name}-plugin-pgpcore = %{version}-%{release} |
1199c73d MB |
163 | Provides: sylpheed-claws-plugin-pgpinline |
164 | Obsoletes: sylpheed-claws-plugin-pgpinline | |
d0d021dc MB |
165 | Conflicts: sylpheed-claws-plugins <= 2.3.0-1 |
166 | ||
167 | %description plugin-pgpinline | |
168 | This plugin handles PGP/Inline signed and/or encrypted mails. It can | |
169 | decrypt mails, verify signatures or sign and encrypt your own mails. | |
170 | ||
664cab97 JR |
171 | %description plugin-pgpinline -l pl.UTF-8 |
172 | Wtyczka obsługująca listy podpisane lub szyfrowane PGP/Inline. Potrafi | |
173 | rozszyfrowywać, sprawdzać podpisy a także szyfrować i podpisywać | |
174 | własne listy. | |
9b63aae0 | 175 | |
d0d021dc | 176 | %package plugin-pgpmime |
7f0c3b3e | 177 | Summary: PGP/MIME plugin for Claws-Mail |
281af01d | 178 | Summary(pl.UTF-8): Wtyczka PGP/MIME dla Claws-Mail |
ac3bbb47 | 179 | Group: X11/Applications/Mail |
d0d021dc | 180 | Requires: %{name}-plugin-pgpcore = %{version}-%{release} |
1199c73d MB |
181 | Provides: sylpheed-claws-plugin-pgpmime |
182 | Obsoletes: sylpheed-claws-plugin-pgpmime | |
d0d021dc MB |
183 | Conflicts: sylpheed-claws-plugins <= 2.3.0-1 |
184 | ||
185 | %description plugin-pgpmime | |
186 | This plugin handles PGP/MIME signed and/or encrypted mails. It can | |
187 | decrypt mails, verify signatures or sign and encrypt your own mails. | |
188 | ||
664cab97 JR |
189 | %description plugin-pgpmime -l pl.UTF-8 |
190 | Wtyczka obsługująca listy podpisane lub szyfrowane PGP/MIME. Potrafi | |
191 | rozszyfrowywać, sprawdzać podpisy a także szyfrować i podpisywać | |
192 | własne listy. | |
9b63aae0 | 193 | |
1f14e5a6 | 194 | %package plugin-smime |
195 | Summary: S/MIME plugin for Claws-Mail | |
196 | Summary(pl.UTF-8): Wtyczka S/MIME dla Claws-Mail | |
197 | Group: X11/Applications/Mail | |
198 | Requires: %{name} = %{version}-%{release} | |
33d76782 | 199 | Requires: %{name}-plugin-pgpcore = %{version}-%{release} |
1f14e5a6 | 200 | Provides: sylpheed-claws-plugin-smime |
201 | Obsoletes: sylpheed-claws-plugin-smime | |
1f14e5a6 | 202 | |
203 | %description plugin-smime | |
204 | This plugin handles S/MIME signed and/or encrypted mails. You can | |
205 | decrypt mails, verify signatures or sign and encrypt your own mails. | |
206 | ||
207 | %description plugin-smime -l pl.UTF-8 | |
208 | Wtyczka obsługująca listy podpisane lub szyfrowane S/MIME. Potrafi | |
209 | rozszyfrowywać, sprawdzać podpisy a także szyfrować i podpisywać | |
210 | własne listy. | |
211 | ||
d0d021dc | 212 | %package plugin-spamassassin |
7f0c3b3e | 213 | Summary: spamassassin plugin for Claws-Mail |
281af01d | 214 | Summary(pl.UTF-8): Wtyczka spamassassin dla Claws-Mail |
ac3bbb47 | 215 | Group: X11/Applications/Mail |
ceea85d9 | 216 | Requires: %{name} = %{version}-%{release} |
1199c73d MB |
217 | Provides: sylpheed-claws-plugin-spamassassin |
218 | Obsoletes: sylpheed-claws-plugin-spamassassin | |
d0d021dc | 219 | Conflicts: sylpheed-claws-plugins <= 2.3.0-1 |
40894f82 | 220 | |
d0d021dc MB |
221 | %description plugin-spamassassin |
222 | This plugin enables the scanning of incoming mail received from a POP, | |
223 | IMAP, or LOCAL account using SpamAssassin. It can optionally delete | |
224 | mail identified as spam or save it to a designated folder, and also | |
225 | can be used to train a local Spamassassin or a remote one. | |
40894f82 | 226 | |
664cab97 JR |
227 | %description plugin-spamassassin -l pl.UTF-8 |
228 | Wtyczka pozwalająca na skanowanie SpamAssassinem poczty przychodzącej | |
229 | jak i już znajdującej się w lokalnych skrzynkach. Opcjonalnie może | |
230 | usuwać listy oznaczone jako spam lub zapisywać je w dedykowanym | |
231 | folderze. Może też byż używana do "uczenia" lokalnego lub zdalnego | |
9b63aae0 | 232 | demona SpamAssassin. |
233 | ||
d0d021dc | 234 | %package plugin-trayicon |
7f0c3b3e | 235 | Summary: trayicon plugin for Claws-Mail |
281af01d | 236 | Summary(pl.UTF-8): Wtyczka trayicon dla Claws-Mail |
ac3bbb47 | 237 | Group: X11/Applications/Mail |
d0d021dc | 238 | Requires: %{name} = %{version}-%{release} |
1199c73d MB |
239 | Provides: sylpheed-claws-plugin-trayicon |
240 | Obsoletes: sylpheed-claws-plugin-trayicon | |
d0d021dc MB |
241 | Conflicts: sylpheed-claws-plugins <= 2.3.0-1 |
242 | ||
243 | %description plugin-trayicon | |
244 | This plugin places an icon in the system tray that indicates whether | |
245 | you have any new mail. A tooltip also shows the current new, unread | |
246 | and total number of messages, and a contextual menu allows the most | |
247 | common operations. | |
40894f82 | 248 | |
664cab97 JR |
249 | %description plugin-trayicon -l pl.UTF-8 |
250 | Wtyczka umieszczająca w tacce systemowej ikonę informującą o nadejściu | |
251 | nowej poczty. Ikona wyświetla dane na temat wiadomości (ilość nowych, | |
252 | nieprzeczytanych i wszystkich) a jej menu pozwala wykonywać | |
9b63aae0 | 253 | najpopularniejsze operacje. |
254 | ||
0d611c2a | 255 | %prep |
d0d021dc | 256 | %setup -q |
0d611c2a | 257 | |
9bbf8a6a | 258 | %{__rm} po/stamp-po |
ec05658d | 259 | |
ab88c80f | 260 | # pt_PT -> pt hack |
261 | mv -f po/{pt_PT,pt}.po | |
262 | %{__sed} -i -e 's,pt_PT,pt,g' src/codeconv.c | |
263 | %{__sed} -i -e 's,pt_PT,pt,g' configure | |
264 | %{__sed} -i -e 's,pt_PT,pt,g' configure.ac | |
265 | ||
0d611c2a | 266 | %build |
87a7cfab MB |
267 | %{__libtoolize} |
268 | %{__gettextize} | |
269 | %{__aclocal} -I m4 | |
270 | %{__autoconf} | |
271 | %{__autoheader} | |
272 | %{__automake} | |
0d611c2a | 273 | %configure \ |
48ca524d | 274 | --%{?with_compface:en}%{!?with_compface:dis}able-compface \ |
d0d021dc | 275 | --%{?with_gpg:en}%{!?with_gpg:dis}able-pgpcore-plugin \ |
48ca524d | 276 | --%{?with_gpg:en}%{!?with_gpg:dis}able-pgpmime-plugin \ |
d0d021dc | 277 | --%{?with_gpg:en}%{!?with_gpg:dis}able-pgpinline-plugin \ |
48ca524d | 278 | --%{?with_ipv6:en}%{!?with_ipv6:dis}able-ipv6 \ |
d0d021dc | 279 | --%{?with_jpilot:en}%{!?with_jpilot:dis}able-jpilot \ |
48ca524d | 280 | --%{?with_ldap:en}%{!?with_ldap:dis}able-ldap \ |
9af53442 | 281 | --%{?with_tls:en}%{!?with_tls:dis}able-gnutls \ |
ac3bbb47 | 282 | --enable-bogofilter-plugin \ |
dc3d0ddd | 283 | --enable-dillo-viewer-plugin \ |
dc3d0ddd | 284 | --enable-libetpan \ |
efcbcabb | 285 | --enable-pthread \ |
dc3d0ddd MB |
286 | --enable-spamassassin-plugin \ |
287 | --enable-trayicon-plugin \ | |
7f0c3b3e | 288 | --disable-static |
0d611c2a | 289 | |
290 | %{__make} | |
291 | ||
292 | %install | |
293 | rm -rf $RPM_BUILD_ROOT | |
d0d021dc | 294 | install -d $RPM_BUILD_ROOT{%{_datadir}/%{name}/themes,%{_desktopdir},%{_pixmapsdir}} |
0d611c2a | 295 | |
296 | %{__make} install \ | |
44d458d9 | 297 | DESTDIR=$RPM_BUILD_ROOT |
0d611c2a | 298 | |
d8880807 | 299 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
efe080c2 | 300 | install %{name}.png $RPM_BUILD_ROOT%{_pixmapsdir} |
946fa8a3 | 301 | |
9bbf8a6a | 302 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*.{deps,la} |
303 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}/RELEASE_NOTES | |
304 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}/manual/{de,en,es,fr,pl}/*.{pdf,ps,html,txt} | |
ec05658d | 305 | |
62767999 | 306 | %find_lang %{name} |
0d611c2a | 307 | |
308 | %clean | |
c9f56aa0 | 309 | rm -rf $RPM_BUILD_ROOT |
0d611c2a | 310 | |
44d458d9 MB |
311 | %post |
312 | %update_icon_cache hicolor | |
313 | ||
314 | %postun | |
315 | %update_icon_cache hicolor | |
316 | ||
62767999 | 317 | %files -f %{name}.lang |
0d611c2a | 318 | %defattr(644,root,root,755) |
16ac3bfb | 319 | %doc AUTHORS ChangeLog NEWS README* RELEASE_NOTES TODO |
65ff9ee2 | 320 | %{_mandir}/man1/%{name}.1* |
0d611c2a | 321 | %attr(755,root,root) %{_bindir}/* |
62767999 | 322 | %dir %{_datadir}/%{name} |
16ac3bfb | 323 | %dir %{_docdir}/%{name} |
d0d021dc | 324 | %dir %{_datadir}/%{name}/themes |
7ecfdd51 MB |
325 | %dir %{_libdir}/%{name} |
326 | %dir %{_libdir}/%{name}/plugins | |
d8880807 | 327 | %{_desktopdir}/%{name}.desktop |
efe080c2 | 328 | %{_pixmapsdir}/%{name}.png |
9b63aae0 | 329 | %{_iconsdir}/hicolor/48x48/apps/%{name}.png |
11e9d739 | 330 | %{_iconsdir}/hicolor/64x64/apps/%{name}.png |
331 | %{_iconsdir}/hicolor/128x128/apps/%{name}.png | |
b185452a | 332 | |
b1b9f47a | 333 | %files devel |
334 | %defattr(644,root,root,755) | |
62767999 | 335 | %{_includedir}/%{name} |
8875a1b2 | 336 | %{_pkgconfigdir}/*.pc |
40894f82 | 337 | |
d0d021dc MB |
338 | %files plugins |
339 | %defattr(644,root,root,755) | |
340 | ||
44d458d9 MB |
341 | %files plugin-bogofilter |
342 | %defattr(644,root,root,755) | |
343 | %attr(755,root,root) %{_libdir}/%{name}/plugins/bogofilter.so | |
344 | ||
d0d021dc MB |
345 | %files plugin-dillo |
346 | %defattr(644,root,root,755) | |
347 | %attr(755,root,root) %{_libdir}/%{name}/plugins/dillo_viewer.so | |
d0d021dc MB |
348 | |
349 | %if %{with gpg} | |
350 | %files plugin-pgpcore | |
351 | %defattr(644,root,root,755) | |
352 | %attr(755,root,root) %{_libdir}/%{name}/plugins/pgpcore.so | |
353 | ||
354 | %files plugin-pgpinline | |
355 | %defattr(644,root,root,755) | |
356 | %attr(755,root,root) %{_libdir}/%{name}/plugins/pgpinline.so | |
357 | ||
358 | %files plugin-pgpmime | |
359 | %defattr(644,root,root,755) | |
360 | %attr(755,root,root) %{_libdir}/%{name}/plugins/pgpmime.so | |
361 | %endif | |
362 | ||
1f14e5a6 | 363 | %files plugin-smime |
364 | %defattr(644,root,root,755) | |
365 | %attr(755,root,root) %{_libdir}/%{name}/plugins/smime.so | |
366 | ||
d0d021dc MB |
367 | %files plugin-spamassassin |
368 | %defattr(644,root,root,755) | |
369 | %attr(755,root,root) %{_libdir}/%{name}/plugins/spamassassin.so | |
d0d021dc | 370 | |
d0d021dc | 371 | %files plugin-trayicon |
40894f82 | 372 | %defattr(644,root,root,755) |
d0d021dc | 373 | %attr(755,root,root) %{_libdir}/%{name}/plugins/trayicon.so |