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