]> git.pld-linux.org Git - packages/claws-mail.git/blob - claws-mail.spec
- id_ID -> id
[packages/claws-mail.git] / claws-mail.spec
1 #
2 # Conditional build:
3 %bcond_without  compface        # build without compface support
4 %bcond_without  gpg             # build without GPG support
5 %bcond_without  ipv6            # build without IPv6 support
6 %bcond_without  jpilot          # build without JPilot support
7 %bcond_without  ldap            # build without LDAP support
8 %bcond_without  tls             # build without gnuTLS support
9 #
10 Summary:        A bleeding edge branch of Sylpheed, a GTK2 based, lightweight, and fast e-mail client
11 Summary(pl.UTF-8):      Rozwojowa wersja Sylpheed z dużą ilością zmian oraz ulepszeń
12 Name:           claws-mail
13 Version:        3.8.0
14 Release:        2
15 License:        GPL v3+
16
17 Group:          X11/Applications/Mail
18 Source0:        http://downloads.sourceforge.net/sylpheed-claws/%{name}-%{version}.tar.bz2
19 # Source0-md5:  df9f1657d7f34959a2205344d952c2e3
20 Source1:        %{name}.desktop
21 URL:            http://www.claws-mail.org/
22 BuildRequires:  autoconf >= 2.60
23 BuildRequires:  automake
24 BuildRequires:  bzip2-devel
25 %{?with_compface:BuildRequires: compface-devel}
26 BuildRequires:  gettext-devel
27 BuildRequires:  gmp-devel
28 %{?with_tls:BuildRequires:      gnutls-devel >= 2.6.0}
29 %{?with_gpg:BuildRequires:      gpgme-devel >= 1:0.4.5}
30 BuildRequires:  gtk+2-devel >= 2:2.24.0
31 BuildRequires:  libetpan-devel >= 0.57
32 BuildRequires:  liblockfile-devel
33 BuildRequires:  libltdl-devel
34 BuildRequires:  libtool
35 %{?with_ldap:BuildRequires:     openldap-devel >= 2.3.0}
36 %if %{with jpilot}
37 BuildRequires:  bluez-libs-devel
38 BuildRequires:  pilot-link-devel
39 %endif
40 BuildRequires:  pkgconfig
41 BuildRequires:  rpmbuild(macros) >= 1.311
42 BuildRequires:  sed >= 4.0
43 BuildRequires:  startup-notification-devel >= 0.5
44 Requires(post,postun):  gtk-update-icon-cache
45 Requires(post,postun):  hicolor-icon-theme
46 Requires:       gtk+2 >= 2:2.24.0
47 Provides:       sylpheed-claws
48 Obsoletes:      claws-mail-plugin-clamav
49 Obsoletes:      claws-mail-plugin-etpan-privacy
50 Obsoletes:      claws-mail-plugin-maildir
51 Obsoletes:      claws-mail-plugin-pdf_viewer
52 Obsoletes:      sylpheed-claws
53 Obsoletes:      sylpheed-claws-plugin-clamav
54 Obsoletes:      sylpheed-gtk2
55 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56
57 %description
58 This program is an X based fast e-mail client which has features same
59 as orginal Sylpheed but with new/improved features. Some of new stuff
60 is really cool and useable.
61
62 %description -l pl.UTF-8
63 Szybki klient poczty o możliwościach takich jak oryginalny Sylpheed
64 ale z nowymi/poprawionymi funkcjami. Niektóre dodatki są naprawdę
65 świetne i użyteczne.
66
67 %package devel
68 Summary:        Headers from Claws-Mail
69 Summary(pl.UTF-8):      Pliki nagłówkowe programu Claws-Mail
70 Group:          X11/Development/Libraries
71 Requires:       %{name} = %{version}-%{release}
72 Requires:       gnutls-devel >= 2.6.0
73 Requires:       gpgme-devel >= 1:0.4.5
74 Requires:       libetpan-devel >= 0.54
75 Provides:       sylpheed-claws-devel
76 Obsoletes:      sylpheed-claws-devel
77
78 %description devel
79 Claws-Mail development package.
80
81 %description devel -l pl.UTF-8
82 Pliki nagłówkowe programu Claws-Mail.
83
84 %package plugins
85 Summary:        Special plugins for Claws-Mail (metapackage)
86 Summary(pl.UTF-8):      Dodatkowe wtyczki dla Claws-Mail (metapakiet)
87 Group:          X11/Applications/Mail
88 Requires:       %{name} = %{version}-%{release}
89 Requires:       %{name}-plugin-bogofilter = %{version}-%{release}
90 Requires:       %{name}-plugin-dillo = %{version}-%{release}
91 %if %{with gpg}
92 Requires:       %{name}-plugin-pgpinline = %{version}-%{release}
93 Requires:       %{name}-plugin-pgpmime = %{version}-%{release}
94 %endif
95 Requires:       %{name}-plugin-smime = %{version}-%{release}
96 Requires:       %{name}-plugin-spamassassin = %{version}-%{release}
97 Requires:       %{name}-plugin-trayicon = %{version}-%{release}
98 Provides:       sylpheed-claws-plugins = %{version}
99 Obsoletes:      sylpheed-claws-plugins
100
101 %description plugins
102 This is collection of some usefull plugins for Claws-Mail
103 (metapackage).
104
105 %description plugins -l pl.UTF-8
106 Jest to zbiór kilku dodatkowych wtyczek powiększających możliwości
107 Claws-Mail (metapakiet).
108
109 %package plugin-bogofilter
110 Summary:        Bogofilter plugin for Claws-Mail
111 Summary(pl.UTF-8):      Wtyczka bogofilter dla Claws-Mail
112 Group:          X11/Applications/Mail
113 Requires:       %{name} = %{version}-%{release}
114 Requires:       bogofilter
115 Provides:       sylpheed-claws-plugin-bogofilter
116 Obsoletes:      sylpheed-claws-plugin-bogofilter
117
118 %description plugin-bogofilter
119 This plugin enables the scanning of incoming mail received from a POP,
120 IMAP or LOCAL account using Bogofilter. It can optionally delete mail
121 identified as spam or save it to a designated folder.
122
123 %description plugin-bogofilter -l pl.UTF-8
124 Wtyczka pozwalająca na skanowanie bogofilterem poczty przychodzącej
125 jak i już znajdującej się w lokalnych skrzynkach. Opcjonalnie może
126 usuwać listy oznaczone jako spam lub zapisywać je w dedykowanym
127 folderze.
128
129 %package plugin-dillo
130 Summary:        dillo plugin for Claws-Mail
131 Summary(pl.UTF-8):      Wtyczka dillo dla Claws-Mail
132 Group:          X11/Applications/Mail
133 Requires:       %{name} = %{version}-%{release}
134 Requires:       dillo
135 Provides:       sylpheed-claws-plugin-dillo
136 Obsoletes:      sylpheed-claws-plugin-dillo
137 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
138
139 %description plugin-dillo
140 This plugin enables the viewing of html messages using the Dillo web
141 browser.
142
143 %description plugin-dillo -l pl.UTF-8
144 Wtyczka pozwalająca na przeglądanie listów pisanych w HTML przy pomocy
145 przeglądarki Dillo.
146
147 %package plugin-pgpcore
148 Summary:        PGP/Core plugin for Claws-Mail
149 Summary(pl.UTF-8):      Wtyczka PGP/Core dla Claws-Mail
150 Group:          X11/Applications/Mail
151 Requires:       %{name} = %{version}-%{release}
152 Provides:       sylpheed-claws-plugin-pgpcore
153 Obsoletes:      sylpheed-claws-plugin-pgpcore
154 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
155
156 %description plugin-pgpcore
157 This plugin handles core PGP functions.
158
159 %description plugin-pgpcore -l pl.UTF-8
160 Wtyczka obsługująca podstawowe funkcje PGP.
161
162 %package plugin-pgpinline
163 Summary:        PGP/Inline plugin for Claws-Mail
164 Summary(pl.UTF-8):      Wtyczka PGP/Inline dla Claws-Mail
165 Group:          X11/Applications/Mail
166 Requires:       %{name}-plugin-pgpcore = %{version}-%{release}
167 Provides:       sylpheed-claws-plugin-pgpinline
168 Obsoletes:      sylpheed-claws-plugin-pgpinline
169 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
170
171 %description plugin-pgpinline
172 This plugin handles PGP/Inline signed and/or encrypted mails. It can
173 decrypt mails, verify signatures or sign and encrypt your own mails.
174
175 %description plugin-pgpinline -l pl.UTF-8
176 Wtyczka obsługująca listy podpisane lub szyfrowane PGP/Inline. Potrafi
177 rozszyfrowywać, sprawdzać podpisy a także szyfrować i podpisywać
178 własne listy.
179
180 %package plugin-pgpmime
181 Summary:        PGP/MIME plugin for Claws-Mail
182 Summary(pl.UTF-8):      Wtyczka PGP/MIME dla Claws-Mail
183 Group:          X11/Applications/Mail
184 Requires:       %{name}-plugin-pgpcore = %{version}-%{release}
185 Provides:       sylpheed-claws-plugin-pgpmime
186 Obsoletes:      sylpheed-claws-plugin-pgpmime
187 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
188
189 %description plugin-pgpmime
190 This plugin handles PGP/MIME signed and/or encrypted mails. It can
191 decrypt mails, verify signatures or sign and encrypt your own mails.
192
193 %description plugin-pgpmime -l pl.UTF-8
194 Wtyczka obsługująca listy podpisane lub szyfrowane PGP/MIME. Potrafi
195 rozszyfrowywać, sprawdzać podpisy a także szyfrować i podpisywać
196 własne listy.
197
198 %package plugin-smime
199 Summary:        S/MIME plugin for Claws-Mail
200 Summary(pl.UTF-8):      Wtyczka S/MIME dla Claws-Mail
201 Group:          X11/Applications/Mail
202 Requires:       %{name} = %{version}-%{release}
203 Requires:       %{name}-plugin-pgpcore = %{version}-%{release}
204 Provides:       sylpheed-claws-plugin-smime
205 Obsoletes:      sylpheed-claws-plugin-smime
206
207 %description plugin-smime
208 This plugin handles S/MIME signed and/or encrypted mails. You can
209 decrypt mails, verify signatures or sign and encrypt your own mails.
210
211 %description plugin-smime -l pl.UTF-8
212 Wtyczka obsługująca listy podpisane lub szyfrowane S/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/Mail
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/Mail
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} po/stamp-po
263
264 # id_ID -> id and pt_PT -> pt hacks
265 mv -f po/{id_ID,id}.po
266 mv -f po/{pt_PT,pt}.po
267 %{__sed} -i -e 's,pt_PT,pt,g;s,id_ID,id,g' src/codeconv.c
268 %{__sed} -i -e 's,pt_PT,pt,g;s,id_ID,id,g' configure.ac
269
270 %build
271 %{__libtoolize}
272 %{__gettextize}
273 %{__aclocal} -I m4
274 %{__autoconf}
275 %{__autoheader}
276 %{__automake}
277 %configure \
278         --%{?with_compface:en}%{!?with_compface:dis}able-compface \
279         --%{?with_gpg:en}%{!?with_gpg:dis}able-pgpcore-plugin \
280         --%{?with_gpg:en}%{!?with_gpg:dis}able-pgpmime-plugin \
281         --%{?with_gpg:en}%{!?with_gpg:dis}able-pgpinline-plugin \
282         --%{?with_ipv6:en}%{!?with_ipv6:dis}able-ipv6 \
283         --%{?with_jpilot:en}%{!?with_jpilot:dis}able-jpilot \
284         --%{?with_ldap:en}%{!?with_ldap:dis}able-ldap \
285         --%{?with_tls:en}%{!?with_tls:dis}able-gnutls \
286         --enable-bogofilter-plugin \
287         --enable-dillo-viewer-plugin \
288         --enable-libetpan \
289         --enable-pthread \
290         --enable-spamassassin-plugin \
291         --enable-trayicon-plugin \
292         --disable-static
293
294 %{__make}
295
296 %install
297 rm -rf $RPM_BUILD_ROOT
298 install -d $RPM_BUILD_ROOT{%{_datadir}/%{name}/themes,%{_desktopdir},%{_pixmapsdir}}
299
300 %{__make} install \
301         DESTDIR=$RPM_BUILD_ROOT
302
303 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
304 install %{name}.png $RPM_BUILD_ROOT%{_pixmapsdir}
305
306 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*.{deps,la}
307 %{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}/RELEASE_NOTES
308 %{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}/manual/{de,en,es,fr,pl}/*.{pdf,ps,html,txt}
309
310 %find_lang %{name}
311
312 %clean
313 rm -rf $RPM_BUILD_ROOT
314
315 %post
316 %update_icon_cache hicolor
317
318 %postun
319 %update_icon_cache hicolor
320
321 %files -f %{name}.lang
322 %defattr(644,root,root,755)
323 %doc AUTHORS ChangeLog NEWS README* RELEASE_NOTES TODO
324 %{_mandir}/man1/%{name}.1*
325 %attr(755,root,root) %{_bindir}/*
326 %dir %{_datadir}/%{name}
327 %dir %{_docdir}/%{name}
328 %dir %{_datadir}/%{name}/themes
329 %dir %{_libdir}/%{name}
330 %dir %{_libdir}/%{name}/plugins
331 %{_desktopdir}/%{name}.desktop
332 %{_pixmapsdir}/%{name}.png
333 %{_iconsdir}/hicolor/48x48/apps/%{name}.png
334 %{_iconsdir}/hicolor/64x64/apps/%{name}.png
335 %{_iconsdir}/hicolor/128x128/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 %files plugin-dillo
350 %defattr(644,root,root,755)
351 %attr(755,root,root) %{_libdir}/%{name}/plugins/dillo_viewer.so
352
353 %if %{with gpg}
354 %files plugin-pgpcore
355 %defattr(644,root,root,755)
356 %attr(755,root,root) %{_libdir}/%{name}/plugins/pgpcore.so
357
358 %files plugin-pgpinline
359 %defattr(644,root,root,755)
360 %attr(755,root,root) %{_libdir}/%{name}/plugins/pgpinline.so
361
362 %files plugin-pgpmime
363 %defattr(644,root,root,755)
364 %attr(755,root,root) %{_libdir}/%{name}/plugins/pgpmime.so
365 %endif
366
367 %files plugin-smime
368 %defattr(644,root,root,755)
369 %attr(755,root,root) %{_libdir}/%{name}/plugins/smime.so
370
371 %files plugin-spamassassin
372 %defattr(644,root,root,755)
373 %attr(755,root,root) %{_libdir}/%{name}/plugins/spamassassin.so
374
375 %files plugin-trayicon
376 %defattr(644,root,root,755)
377 %attr(755,root,root) %{_libdir}/%{name}/plugins/trayicon.so
This page took 0.094214 seconds and 4 git commands to generate.