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