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