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