]> git.pld-linux.org Git - packages/claws-mail.git/blob - claws-mail.spec
b71b52a042332326fe779728a3147df8ca93e253
[packages/claws-mail.git] / claws-mail.spec
1 # TODO
2 # - clamav 0.93 api fix
3 #
4 # Conditional build:
5 %bcond_without  clamav          # build without clamav plugin
6 %bcond_without  compface        # build without compface support
7 %bcond_without  gnomeprint      # build without gnomeprint support
8 %bcond_without  gpg             # build without GPG support
9 %bcond_without  ipv6            # build without IPv6 support
10 %bcond_without  jpilot          # build without JPilot support
11 %bcond_without  ldap            # build without LDAP support
12 %bcond_without  ssl             # build without SSL support
13 #
14 Summary:        A bleeding edge branch of Sylpheed, a GTK2 based, lightweight, and fast e-mail client
15 Summary(pl.UTF-8):      Rozwojowa wersja Sylpheed z dużą ilością zmian oraz ulepszeń
16 Name:           claws-mail
17 Version:        3.4.0
18 Release:        0.1
19 License:        GPL v3
20 Group:          X11/Applications/Networking
21 Source0:        http://dl.sourceforge.net/sylpheed-claws/%{name}-%{version}.tar.bz2
22 # Source0-md5:  ec5ee743baa198c7fd707b0461b6c68a
23 Source1:        %{name}.desktop
24 URL:            http://www.claws-mail.org/
25 BuildRequires:  aspell >= 2:0.50
26 BuildRequires:  aspell-devel >= 2:0.50
27 BuildRequires:  autoconf >= 2.60
28 BuildRequires:  automake
29 BuildRequires:  bzip2-devel
30 %{?with_clamav:BuildRequires:   clamav-devel}
31 %{?with_compface:BuildRequires: compface-devel}
32 BuildRequires:  gettext-devel
33 BuildRequires:  gmp-devel
34 %{?with_gpg:BuildRequires:      gpgme-devel >= 1:0.4.5}
35 BuildRequires:  gtk+2-devel >= 2:2.6.0
36 BuildRequires:  libetpan-devel >= 0.49
37 %{?with_gnomeprint:BuildRequires:       libgnomeprintui-devel}
38 BuildRequires:  libltdl-devel
39 BuildRequires:  libtool
40 %{?with_ldap:BuildRequires:     openldap-devel >= 2.4.6}
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:      claws-mail-plugin-etpan-privacy
50 Obsoletes:      claws-mail-plugin-maildir
51 Obsoletes:      sylpheed-claws
52 Obsoletes:      sylpheed-gtk2
53 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54
55 %description
56 This program is an X based fast e-mail client which has features same
57 as orginal Sylpheed but with new/improved features. Some of new stuff
58 is really cool and useable.
59
60 %description -l pl.UTF-8
61 Szybki klient poczty o możliwościach takich jak oryginalny Sylpheed
62 ale z nowymi/poprawionymi funkcjami. Niektóre dodatki są naprawdę
63 świetne i użyteczne.
64
65 %package devel
66 Summary:        Headers from Claws-Mail
67 Summary(pl.UTF-8):      Pliki nagłówkowe programu Claws-Mail
68 Group:          X11/Applications/Networking
69 Requires:       %{name} = %{version}-%{release}
70 Requires:       gpgme-devel >= 1:0.4.5
71 Requires:       libetpan-devel >= 0.49
72 Requires:       openssl-devel >= 0.9.7d
73 Provides:       sylpheed-claws-devel
74 Obsoletes:      sylpheed-claws-devel
75
76 %description devel
77 Claws-Mail development package.
78
79 %description devel -l pl.UTF-8
80 Pliki nagłówkowe programu Claws-Mail.
81
82 %package plugins
83 Summary:        Special plugins for Claws-Mail (metapackage)
84 Summary(pl.UTF-8):      Dodatkowe wtyczki dla Claws-Mail (metapakiet)
85 Group:          X11/Applications/Networking
86 Requires:       %{name} = %{version}-%{release}
87 Requires:       %{name}-plugin-bogofilter = %{version}-%{release}
88 %{?with_clamav:Requires:        %{name}-plugin-clamav = %{version}-%{release}}
89 Requires:       %{name}-plugin-dillo = %{version}-%{release}
90 %if %{with gpg}
91 Requires:       %{name}-plugin-pgpinline = %{version}-%{release}
92 Requires:       %{name}-plugin-pgpmime = %{version}-%{release}
93 %endif
94 Requires:       %{name}-plugin-spamassassin = %{version}-%{release}
95 Requires:       %{name}-plugin-trayicon = %{version}-%{release}
96 Provides:       sylpheed-claws-plugins = %{version}
97 Obsoletes:      sylpheed-claws-plugins
98
99 %description plugins
100 This is collection of some usefull plugins for Claws-Mail
101 (metapackage).
102
103 %description plugins -l pl.UTF-8
104 Jest to zbiór kilku dodatkowych wtyczek powiększających możliwości
105 Claws-Mail (metapakiet).
106
107 %package plugin-bogofilter
108 Summary:        Bogofilter plugin for Claws-Mail
109 Summary(pl.UTF-8):      Wtyczka bogofilter dla Claws-Mail
110 Group:          X11/Applications/Networking
111 Requires:       %{name} = %{version}-%{release}
112 Requires:       bogofilter
113 Provides:       sylpheed-claws-plugin-bogofilter
114 Obsoletes:      sylpheed-claws-plugin-bogofilter
115
116 %description plugin-bogofilter
117 This plugin enables the scanning of incoming mail received from a POP,
118 IMAP or LOCAL account using Bogofilter. It can optionally delete mail
119 identified as spam or save it to a designated folder.
120
121 %description plugin-bogofilter -l pl.UTF-8
122 Wtyczka pozwalająca na skanowanie bogofilterem poczty przychodzącej
123 jak i już znajdującej się w lokalnych skrzynkach. Opcjonalnie może
124 usuwać listy oznaczone jako spam lub zapisywać je w dedykowanym
125 folderze.
126
127 %package plugin-clamav
128 Summary:        clamav plugin for Claws-Mail
129 Summary(pl.UTF-8):      Wtyczka clamav dla Claws-Mail
130 Group:          X11/Applications/Networking
131 Requires:       %{name} = %{version}-%{release}
132 Provides:       sylpheed-claws-plugin-clamav
133 Obsoletes:      sylpheed-claws-plugin-clamav
134 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
135
136 %description plugin-clamav
137 This plugin enables the scanning of message attachments in mail
138 received from a POP, IMAP, or LOCAL account using Clam AntiVirus. It
139 can optionally delete the mail or save it to a designated folder.
140
141 %description plugin-clamav -l pl.UTF-8
142 Ta wtyczka pozwala na lokalne skanowanie załączników z poczty
143 otrzymanej przez POP, IMAP lub znajdującej się w lokalnych skrzynkach.
144 Opcjonalnie może usuwać lub zapisywać zainfekowane listy w
145 przeznaczonym do tego folderze.
146
147 %package plugin-dillo
148 Summary:        dillo plugin for Claws-Mail
149 Summary(pl.UTF-8):      Wtyczka dillo dla Claws-Mail
150 Group:          X11/Applications/Networking
151 Requires:       %{name} = %{version}-%{release}
152 Requires:       dillo
153 Provides:       sylpheed-claws-plugin-dillo
154 Obsoletes:      sylpheed-claws-plugin-dillo
155 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
156
157 %description plugin-dillo
158 This plugin enables the viewing of html messages using the Dillo web
159 browser.
160
161 %description plugin-dillo -l pl.UTF-8
162 Wtyczka pozwalająca na przeglądanie listów pisanych w HTML przy pomocy
163 przeglądarki Dillo.
164
165 %package plugin-pgpcore
166 Summary:        PGP/Core plugin for Claws-Mail
167 Summary(pl.UTF-8):      Wtyczka PGP/Core dla Claws-Mail
168 Group:          X11/Applications/Networking
169 Requires:       %{name} = %{version}-%{release}
170 Provides:       sylpheed-claws-plugin-pgpcore
171 Obsoletes:      sylpheed-claws-plugin-pgpcore
172 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
173
174 %description plugin-pgpcore
175 This plugin handles core PGP functions.
176
177 %description plugin-pgpcore -l pl.UTF-8
178 Wtyczka obsługująca podstawowe funkcje PGP.
179
180 %package plugin-pgpinline
181 Summary:        PGP/Inline plugin for Claws-Mail
182 Summary(pl.UTF-8):      Wtyczka PGP/Inline dla Claws-Mail
183 Group:          X11/Applications/Networking
184 Requires:       %{name}-plugin-pgpcore = %{version}-%{release}
185 Provides:       sylpheed-claws-plugin-pgpinline
186 Obsoletes:      sylpheed-claws-plugin-pgpinline
187 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
188
189 %description plugin-pgpinline
190 This plugin handles PGP/Inline signed and/or encrypted mails. It can
191 decrypt mails, verify signatures or sign and encrypt your own mails.
192
193 %description plugin-pgpinline -l pl.UTF-8
194 Wtyczka obsługująca listy podpisane lub szyfrowane PGP/Inline. Potrafi
195 rozszyfrowywać, sprawdzać podpisy a także szyfrować i podpisywać
196 własne listy.
197
198 %package plugin-pgpmime
199 Summary:        PGP/MIME plugin for Claws-Mail
200 Summary(pl.UTF-8):      Wtyczka PGP/MIME dla Claws-Mail
201 Group:          X11/Applications/Networking
202 Requires:       %{name}-plugin-pgpcore = %{version}-%{release}
203 Provides:       sylpheed-claws-plugin-pgpmime
204 Obsoletes:      sylpheed-claws-plugin-pgpmime
205 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
206
207 %description plugin-pgpmime
208 This plugin handles PGP/MIME signed and/or encrypted mails. It can
209 decrypt mails, verify signatures or sign and encrypt your own mails.
210
211 %description plugin-pgpmime -l pl.UTF-8
212 Wtyczka obsługująca listy podpisane lub szyfrowane PGP/MIME. Potrafi
213 rozszyfrowywać, sprawdzać podpisy a także szyfrować i podpisywać
214 własne listy.
215
216 %package plugin-spamassassin
217 Summary:        spamassassin plugin for Claws-Mail
218 Summary(pl.UTF-8):      Wtyczka spamassassin dla Claws-Mail
219 Group:          X11/Applications/Networking
220 Requires:       %{name} = %{version}-%{release}
221 Provides:       sylpheed-claws-plugin-spamassassin
222 Obsoletes:      sylpheed-claws-plugin-spamassassin
223 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
224
225 %description plugin-spamassassin
226 This plugin enables the scanning of incoming mail received from a POP,
227 IMAP, or LOCAL account using SpamAssassin. It can optionally delete
228 mail identified as spam or save it to a designated folder, and also
229 can be used to train a local Spamassassin or a remote one.
230
231 %description plugin-spamassassin -l pl.UTF-8
232 Wtyczka pozwalająca na skanowanie SpamAssassinem poczty przychodzącej
233 jak i już znajdującej się w lokalnych skrzynkach. Opcjonalnie może
234 usuwać listy oznaczone jako spam lub zapisywać je w dedykowanym
235 folderze. Może też byż używana do "uczenia" lokalnego lub zdalnego
236 demona SpamAssassin.
237
238 %package plugin-trayicon
239 Summary:        trayicon plugin for Claws-Mail
240 Summary(pl.UTF-8):      Wtyczka trayicon dla Claws-Mail
241 Group:          X11/Applications/Networking
242 Requires:       %{name} = %{version}-%{release}
243 Provides:       sylpheed-claws-plugin-trayicon
244 Obsoletes:      sylpheed-claws-plugin-trayicon
245 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
246
247 %description plugin-trayicon
248 This plugin places an icon in the system tray that indicates whether
249 you have any new mail. A tooltip also shows the current new, unread
250 and total number of messages, and a contextual menu allows the most
251 common operations.
252
253 %description plugin-trayicon -l pl.UTF-8
254 Wtyczka umieszczająca w tacce systemowej ikonę informującą o nadejściu
255 nowej poczty. Ikona wyświetla dane na temat wiadomości (ilość nowych,
256 nieprzeczytanych i wszystkich) a jej menu pozwala wykonywać
257 najpopularniejsze operacje.
258
259 %prep
260 %setup -q
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.050773 seconds and 3 git commands to generate.