]> git.pld-linux.org Git - packages/claws-mail.git/blob - claws-mail.spec
- rel. 3
[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  ssl             # build without SSL 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.5.0
14 Release:        3
15 License:        GPL v3
16 Group:          X11/Applications/Mail
17 Source0:        http://dl.sourceforge.net/sylpheed-claws/%{name}-%{version}.tar.bz2
18 # Source0-md5:  597a9a0b9d113325de6fd01500c0af98
19 Source1:        %{name}.desktop
20 Patch0:         %{name}-gtk_headers_fix.patch
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.12.8
32 BuildRequires:  libetpan-devel >= 0.54
33 BuildRequires:  libltdl-devel
34 BuildRequires:  libtool
35 %{?with_ldap:BuildRequires:     openldap-devel >= 2.3.0}
36 %{?with_ssl:BuildRequires:      openssl-devel >= 0.9.7d}
37 %{?with_jpilot:BuildRequires:   pilot-link-devel}
38 BuildRequires:  pkgconfig
39 BuildRequires:  rpmbuild(macros) >= 1.311
40 BuildRequires:  startup-notification-devel >= 0.5
41 Requires(post,postun):  gtk+2
42 Requires(post,postun):  hicolor-icon-theme
43 Requires:       gtk+2 >= 2:2.12.8
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:      claws-mail-plugin-pdf_viewer
49 Obsoletes:      sylpheed-claws
50 Obsoletes:      sylpheed-claws-plugin-clamav
51 Obsoletes:      sylpheed-gtk2
52 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53
54 %description
55 This program is an X based fast e-mail client which has features same
56 as orginal Sylpheed but with new/improved features. Some of new stuff
57 is really cool and useable.
58
59 %description -l pl.UTF-8
60 Szybki klient poczty o możliwościach takich jak oryginalny Sylpheed
61 ale z nowymi/poprawionymi funkcjami. Niektóre dodatki są naprawdę
62 świetne i użyteczne.
63
64 %package devel
65 Summary:        Headers from Claws-Mail
66 Summary(pl.UTF-8):      Pliki nagłówkowe programu Claws-Mail
67 Group:          X11/Development/Libraries
68 Requires:       %{name} = %{version}-%{release}
69 Requires:       gpgme-devel >= 1:0.4.5
70 Requires:       libetpan-devel >= 0.54
71 Requires:       openssl-devel >= 0.9.7d
72 Provides:       sylpheed-claws-devel
73 Obsoletes:      sylpheed-claws-devel
74
75 %description devel
76 Claws-Mail development package.
77
78 %description devel -l pl.UTF-8
79 Pliki nagłówkowe programu Claws-Mail.
80
81 %package plugins
82 Summary:        Special plugins for Claws-Mail (metapackage)
83 Summary(pl.UTF-8):      Dodatkowe wtyczki dla Claws-Mail (metapakiet)
84 Group:          X11/Applications/Mail
85 Requires:       %{name} = %{version}-%{release}
86 Requires:       %{name}-plugin-bogofilter = %{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/Mail
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-dillo
126 Summary:        dillo plugin for Claws-Mail
127 Summary(pl.UTF-8):      Wtyczka dillo dla Claws-Mail
128 Group:          X11/Applications/Mail
129 Requires:       %{name} = %{version}-%{release}
130 Requires:       dillo
131 Provides:       sylpheed-claws-plugin-dillo
132 Obsoletes:      sylpheed-claws-plugin-dillo
133 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
134
135 %description plugin-dillo
136 This plugin enables the viewing of html messages using the Dillo web
137 browser.
138
139 %description plugin-dillo -l pl.UTF-8
140 Wtyczka pozwalająca na przeglądanie listów pisanych w HTML przy pomocy
141 przeglądarki Dillo.
142
143 %package plugin-pgpcore
144 Summary:        PGP/Core plugin for Claws-Mail
145 Summary(pl.UTF-8):      Wtyczka PGP/Core dla Claws-Mail
146 Group:          X11/Applications/Mail
147 Requires:       %{name} = %{version}-%{release}
148 Provides:       sylpheed-claws-plugin-pgpcore
149 Obsoletes:      sylpheed-claws-plugin-pgpcore
150 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
151
152 %description plugin-pgpcore
153 This plugin handles core PGP functions.
154
155 %description plugin-pgpcore -l pl.UTF-8
156 Wtyczka obsługująca podstawowe funkcje PGP.
157
158 %package plugin-pgpinline
159 Summary:        PGP/Inline plugin for Claws-Mail
160 Summary(pl.UTF-8):      Wtyczka PGP/Inline dla Claws-Mail
161 Group:          X11/Applications/Mail
162 Requires:       %{name}-plugin-pgpcore = %{version}-%{release}
163 Provides:       sylpheed-claws-plugin-pgpinline
164 Obsoletes:      sylpheed-claws-plugin-pgpinline
165 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
166
167 %description plugin-pgpinline
168 This plugin handles PGP/Inline signed and/or encrypted mails. It can
169 decrypt mails, verify signatures or sign and encrypt your own mails.
170
171 %description plugin-pgpinline -l pl.UTF-8
172 Wtyczka obsługująca listy podpisane lub szyfrowane PGP/Inline. Potrafi
173 rozszyfrowywać, sprawdzać podpisy a także szyfrować i podpisywać
174 własne listy.
175
176 %package plugin-pgpmime
177 Summary:        PGP/MIME plugin for Claws-Mail
178 Summary(pl.UTF-8):      Wtyczka PGP/MIME dla Claws-Mail
179 Group:          X11/Applications/Mail
180 Requires:       %{name}-plugin-pgpcore = %{version}-%{release}
181 Provides:       sylpheed-claws-plugin-pgpmime
182 Obsoletes:      sylpheed-claws-plugin-pgpmime
183 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
184
185 %description plugin-pgpmime
186 This plugin handles PGP/MIME signed and/or encrypted mails. It can
187 decrypt mails, verify signatures or sign and encrypt your own mails.
188
189 %description plugin-pgpmime -l pl.UTF-8
190 Wtyczka obsługująca listy podpisane lub szyfrowane PGP/MIME. Potrafi
191 rozszyfrowywać, sprawdzać podpisy a także szyfrować i podpisywać
192 własne listy.
193
194 %package plugin-spamassassin
195 Summary:        spamassassin plugin for Claws-Mail
196 Summary(pl.UTF-8):      Wtyczka spamassassin dla Claws-Mail
197 Group:          X11/Applications/Mail
198 Requires:       %{name} = %{version}-%{release}
199 Provides:       sylpheed-claws-plugin-spamassassin
200 Obsoletes:      sylpheed-claws-plugin-spamassassin
201 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
202
203 %description plugin-spamassassin
204 This plugin enables the scanning of incoming mail received from a POP,
205 IMAP, or LOCAL account using SpamAssassin. It can optionally delete
206 mail identified as spam or save it to a designated folder, and also
207 can be used to train a local Spamassassin or a remote one.
208
209 %description plugin-spamassassin -l pl.UTF-8
210 Wtyczka pozwalająca na skanowanie SpamAssassinem poczty przychodzącej
211 jak i już znajdującej się w lokalnych skrzynkach. Opcjonalnie może
212 usuwać listy oznaczone jako spam lub zapisywać je w dedykowanym
213 folderze. Może też byż używana do "uczenia" lokalnego lub zdalnego
214 demona SpamAssassin.
215
216 %package plugin-trayicon
217 Summary:        trayicon plugin for Claws-Mail
218 Summary(pl.UTF-8):      Wtyczka trayicon dla Claws-Mail
219 Group:          X11/Applications/Mail
220 Requires:       %{name} = %{version}-%{release}
221 Provides:       sylpheed-claws-plugin-trayicon
222 Obsoletes:      sylpheed-claws-plugin-trayicon
223 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
224
225 %description plugin-trayicon
226 This plugin places an icon in the system tray that indicates whether
227 you have any new mail. A tooltip also shows the current new, unread
228 and total number of messages, and a contextual menu allows the most
229 common operations.
230
231 %description plugin-trayicon -l pl.UTF-8
232 Wtyczka umieszczająca w tacce systemowej ikonę informującą o nadejściu
233 nowej poczty. Ikona wyświetla dane na temat wiadomości (ilość nowych,
234 nieprzeczytanych i wszystkich) a jej menu pozwala wykonywać
235 najpopularniejsze operacje.
236
237 %prep
238 %setup -q
239 %patch0 -p1
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_compface:en}%{!?with_compface:dis}able-compface \
252         --%{?with_gpg:en}%{!?with_gpg:dis}able-pgpcore-plugin \
253         --%{?with_gpg:en}%{!?with_gpg:dis}able-pgpmime-plugin \
254         --%{?with_gpg:en}%{!?with_gpg:dis}able-pgpinline-plugin \
255         --%{?with_ipv6:en}%{!?with_ipv6:dis}able-ipv6 \
256         --%{?with_jpilot:en}%{!?with_jpilot:dis}able-jpilot \
257         --%{?with_ldap:en}%{!?with_ldap:dis}able-ldap \
258         --%{?with_ssl:en}%{!?with_ssl:dis}able-openssl \
259         --enable-aspell \
260         --enable-bogofilter-plugin \
261         --enable-dillo-viewer-plugin \
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.07095 seconds and 4 git commands to generate.