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