]> git.pld-linux.org Git - packages/claws-mail.git/blob - claws-mail.spec
15bfe248979bce5422aa32fba3b08200f8ed3390
[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  dillo           # build without dillo plugin (html browser)
6 %bcond_without  gnomeprint      # build without gnomeprint support
7 %bcond_without  gpg             # build without GPG support
8 %bcond_without  ipv6            # build without IPv6 support
9 %bcond_without  jpilot          # build without JPilot support
10 %bcond_without  ldap            # build without LDAP support
11 %bcond_without  spamassassin    # build without spamassassin plugin
12 %bcond_without  ssl             # build without SSL support
13 %bcond_without  trayicon        # build without trayicon plugin
14 #
15 Summary:        A bleeding edge branch of Sylpheed, a GTK2 based, lightweight, and fast e-mail client
16 Summary(pl):    Rozwojowa wersja Sylpheed z du¿± ilo¶ci± zmian oraz ulepszeñ
17 Name:           sylpheed-claws
18 Version:        2.4.0
19 Release:        1
20 License:        GPL v2
21 Group:          X11/Applications/Networking
22 Source0:        http://dl.sourceforge.net/sylpheed-claws/%{name}-%{version}.tar.bz2
23 # Source0-md5:  8e8e2b847d6466b1384e3a5a15b9f2e7
24 Source1:        %{name}.desktop
25 URL:            http://www.sylpheed-claws.net/
26 BuildRequires:  aspell-devel >= 2:0.50
27 BuildRequires:  autoconf >= 2.50
28 BuildRequires:  automake
29 BuildRequires:  bzip2-devel
30 %{?with_clamav:BuildRequires:   clamav-devel}
31 %{?with_compface:BuildRequires: compface-devel}
32 BuildRequires:  gdk-pixbuf-devel >= 0.8
33 BuildRequires:  gettext-devel
34 BuildRequires:  gmp-devel
35 %{?with_gpg:BuildRequires:      gpgme-devel >= 1:0.4.5}
36 BuildRequires:  gtk+2-devel >= 2:2.4.0
37 BuildRequires:  imlib-devel >= 1.9
38 BuildRequires:  libetpan-devel >= 0.45
39 %{?with_gnomeprint:BuildRequires:       libgnomeprintui-devel}
40 BuildRequires:  libltdl-devel
41 BuildRequires:  libtool
42 %{?with_ldap:BuildRequires:     openldap-devel >= 2.3.0}
43 %{?with_ssl:BuildRequires:      openssl-devel >= 0.9.7d}
44 %{?with_jpilot:BuildRequires:   pilot-link-devel}
45 BuildRequires:  pkgconfig
46 BuildRequires:  startup-notification-devel >= 0.5
47 Obsoletes:      sylpheed
48 Obsoletes:      sylpheed-gtk2
49 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51 %description
52 This program is an X based fast e-mail client which has features same
53 as orginal Sylpheed but with new/improved features. Some of new stuff
54 is really cool and useable.
55
56 %description -l pl
57 Szybki klient poczty o mo¿liwo¶ciach takich jak oryginalny Sylpheed
58 ale z nowymi/poprawionymi funkcjami. Niektóre dodatki s± naprawdê
59 ¶wietne i u¿yteczne.
60
61 %package devel
62 Summary:        Headers from Sylpheed-Claws
63 Summary(pl):    Pliki nag³ówkowe programu Sylpheed-Claws
64 Group:          X11/Applications/Networking
65 Requires:       %{name} = %{version}-%{release}
66 Requires:       gpgme-devel >= 1:0.4.5
67 Requires:       libetpan-devel >= 0.45
68 Requires:       openssl-devel >= 0.9.7d
69
70 %description devel
71 Sylpheed-Claws development package.
72
73 %description devel -l pl
74 Pliki nag³ówkowe programu Sylpheed-Claws.
75
76 %package plugins
77 Summary:        Special plugins for Sylpheed-Claws (metapackage)
78 Summary(pl):    Dodatkowe wtyczki dla Sylpheed-Claws (metapakiet)
79 Group:          X11/Applications/Networking
80 Requires:       %{name} = %{version}-%{release}
81 %{?with_clamav:Requires: %{name}-plugin-clamav = %{version}-%{release}}
82 %{?with_dillo:Requires: %{name}-plugin-dillo = %{version}-%{release}}
83 %if %{with gpg}
84 Requires:       %{name}-plugin-pgpinline = %{version}-%{release}
85 Requires:       %{name}-plugin-pgpmime = %{version}-%{release}
86 %endif
87 %{?with_spamassassin:Requires: %{name}-plugin-spamassassin = %{version}-%{release}}
88 %{?with_trayicon:Requires: %{name}-plugin-trayicon = %{version}-%{release}}
89
90 %description plugins
91 This is collection of some usefull plugins for Sylpheed-Claws
92 (metapackage).
93
94 %description plugins -l pl
95 Jest to zbiór kilku dodatkowych wtyczek powiêkszaj±cych mo¿liwo¶ci
96 Sylpheed-Claws (metapakiet).
97
98 %package plugin-clamav
99 Summary:        clamav plugin for Sylpheed-Claws
100 Summary(pl):    Wtyczka clamav dla Sylpheed-Claws
101 Group:          X11/Applications/Networking
102 Requires:       %{name} = %{version}-%{release}
103 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
104
105 %description plugin-clamav
106 This plugin enables the scanning of message attachments in mail
107 received from a POP, IMAP, or LOCAL account using Clam AntiVirus. It
108 can optionally delete the mail or save it to a designated folder.
109
110 %description plugin-clamav -l pl
111 Ta wtyczka pozwala na lokalne skanowanie za³±czników z poczty 
112 otrzymanej przez POP, IMAP lub znajduj±cej siê w lokalnych skrzynkach.
113 Opcjonalnie mo¿e usuwaæ lub zapisywaæ zainfekowane listy w przeznaczonym
114 do tego folderze.
115
116 %package plugin-dillo
117 Summary:        dillo plugin for Sylpheed-Claws
118 Summary(pl):    Wtyczka dillo dla Sylpheed-Claws
119 Group:          X11/Applications/Networking
120 Requires:       %{name} = %{version}-%{release}
121 Requires:       dillo
122 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
123
124 %description plugin-dillo
125 This plugin enables the viewing of html messages using the Dillo web
126 browser.
127
128 %description plugin-dillo -l pl
129 Wtyczka pozwalaj±ca na przegl±danie listów pisanych w HTML przy pomocy
130 przegl±darki Dillo.
131
132 %package plugin-pgpcore
133 Summary:        PGP/Core plugin for Sylpheed-Claws
134 Summary(pl):    Wtyczka PGP/Core dla Sylpheed-Claws
135 Group:          X11/Applications/Networking
136 Requires:       %{name} = %{version}-%{release}
137 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
138
139 %description plugin-pgpcore
140 This plugin handles core PGP functions.
141
142 %description plugin-pgpcore -l pl
143 Wtyczka obs³uguj±ca podstawowe funkcje PGP.
144
145 %package plugin-pgpinline
146 Summary:        PGP/Inline plugin for Sylpheed-Claws
147 Summary(pl):    Wtyczka PGP/Inline dla Sylpheed-Claws
148 Group:          X11/Applications/Networking
149 Requires:       %{name}-plugin-pgpcore = %{version}-%{release}
150 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
151
152 %description plugin-pgpinline
153 This plugin handles PGP/Inline signed and/or encrypted mails. It can
154 decrypt mails, verify signatures or sign and encrypt your own mails.
155
156 %description plugin-pgpinline -l pl
157 Wtyczka obs³uguj±ca listy podpisane lub szyfrowane PGP/Inline. Potrafi
158 rozszyfrowywaæ, sprawdzaæ podpisy a tak¿e szyfrowaæ i podpisywaæ 
159 w³asne listy.
160
161 %package plugin-pgpmime
162 Summary:        PGP/MIME plugin for Sylpheed-Claws
163 Summary(pl):    Wtyczka PGP/MIME dla Sylpheed-Claws
164 Group:          X11/Applications/Networking
165 Requires:       %{name}-plugin-pgpcore = %{version}-%{release}
166 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
167
168 %description plugin-pgpmime
169 This plugin handles PGP/MIME signed and/or encrypted mails. It can
170 decrypt mails, verify signatures or sign and encrypt your own mails.
171
172 %description plugin-pgpmime -l pl
173 Wtyczka obs³uguj±ca listy podpisane lub szyfrowane PGP/MIME. Potrafi
174 rozszyfrowywaæ, sprawdzaæ podpisy a tak¿e szyfrowaæ i podpisywaæ
175 w³asne listy.
176
177 %package plugin-spamassassin
178 Summary:        spamassassin plugin for Sylpheed-Claws
179 Summary(pl):    Wtyczka spamassassin dla Sylpheed-Claws
180 Group:          X11/Applications/Networking
181 Requires:       %{name} = %{version}-%{release}
182 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
183
184 %description plugin-spamassassin
185 This plugin enables the scanning of incoming mail received from a POP,
186 IMAP, or LOCAL account using SpamAssassin. It can optionally delete
187 mail identified as spam or save it to a designated folder, and also
188 can be used to train a local Spamassassin or a remote one.
189
190 %description plugin-spamassassin -l pl
191 Wtyczka pozwalaj±ca na skanowanie SpamAssassinem poczty przychodz±cej 
192 jak i ju¿ znajduj±cej siê w lokalnych skrzynkach. Opcjonalnie mo¿e
193 usuwaæ listy oznaczone jako spam lub zapisywaæ je w dedykowanym 
194 folderze. Mo¿e te¿ by¿ u¿ywana do "uczenia" lokalnego lub zdalnego
195 demona SpamAssassin.
196
197 %package plugin-trayicon
198 Summary:        trayicon plugin for Sylpheed-Claws
199 Summary(pl):    Wtyczka trayicon dla Sylpheed-Claws
200 Group:          X11/Applications/Networking
201 Requires:       %{name} = %{version}-%{release}
202 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
203
204 %description plugin-trayicon
205 This plugin places an icon in the system tray that indicates whether
206 you have any new mail. A tooltip also shows the current new, unread
207 and total number of messages, and a contextual menu allows the most
208 common operations.
209
210 %description plugin-trayicon -l pl
211 Wtyczka umieszczaj±ca w tacce systemowej ikonê informuj±c± o nadej¶ciu
212 nowej poczty. Ikona wy¶wietla dane na temat wiadomo¶ci (ilo¶æ nowych,
213 nieprzeczytanych i wszystkich) a jej menu pozwala wykonywaæ 
214 najpopularniejsze operacje.
215
216 %prep
217 %setup -q
218
219 rm -f po/stamp-po
220
221 %build
222 %{__libtoolize}
223 %{__gettextize}
224 %{__aclocal} -I m4
225 %{__autoconf}
226 %{__autoheader}
227 %{__automake}
228 %configure \
229         --%{?with_clamav:en}%{!?with_clamav:dis}able-clamav-plugin \
230         --%{?with_compface:en}%{!?with_compface:dis}able-compface \
231         --%{?with_dillo:en}%{!?with_dillo:dis}able-dillo-viewer-plugin \
232         --%{?with_gnomeprint:en}%{!?with_gnomeprint:dis}able-gnomeprint \
233         --%{?with_gpg:en}%{!?with_gpg:dis}able-pgpcore-plugin \
234         --%{?with_gpg:en}%{!?with_gpg:dis}able-pgpmime-plugin \
235         --%{?with_gpg:en}%{!?with_gpg:dis}able-pgpinline-plugin \
236         --%{?with_ipv6:en}%{!?with_ipv6:dis}able-ipv6 \
237         --%{?with_jpilot:en}%{!?with_jpilot:dis}able-jpilot \
238         --%{?with_ldap:en}%{!?with_ldap:dis}able-ldap \
239         --%{?with_spamassassin:en}%{!?with_spamassassin:dis}able-spamassassin-plugin \
240         --%{?with_ssl:en}%{!?with_ssl:dis}able-openssl \
241         --%{?with_trayicon:en}%{!?with_trayicon:dis}able-trayicon-plugin \
242         --enable-aspell \
243         --enable-gdk-pixbuf \
244         --enable-pthread \
245         --disable-static \
246         --enable-libetpan \
247         --with-config-dir=.sylpheed
248
249 %{__make}
250
251 %install
252 rm -rf $RPM_BUILD_ROOT
253 install -d $RPM_BUILD_ROOT{%{_datadir}/%{name}/themes,%{_desktopdir},%{_pixmapsdir}}
254
255 %{__make} install \
256         DESTDIR=$RPM_BUILD_ROOT
257
258 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
259 install %{name}.png $RPM_BUILD_ROOT%{_pixmapsdir}
260
261 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*.{deps,la}
262
263 %find_lang %{name}
264
265 %clean
266 rm -rf $RPM_BUILD_ROOT
267
268 %files -f %{name}.lang
269 %defattr(644,root,root,755)
270 %doc AUTHORS ChangeLog NEWS README* TODO
271 %{_mandir}/man1/%{name}.1*
272 %attr(755,root,root) %{_bindir}/*
273 %dir %{_datadir}/%{name}
274 %dir %{_datadir}/%{name}/manual
275 %dir %{_datadir}/%{name}/themes
276 %dir %{_libdir}/%{name}
277 %dir %{_libdir}/%{name}/plugins
278 %{_datadir}/%{name}/manual/en
279 %lang(fr) %{_datadir}/%{name}/manual/fr
280 %lang(pl) %{_datadir}/%{name}/manual/pl
281 %{_desktopdir}/%{name}.desktop
282 %{_pixmapsdir}/%{name}.png
283 %{_iconsdir}/hicolor/48x48/apps/%{name}.png
284
285 %files devel
286 %defattr(644,root,root,755)
287 %{_includedir}/%{name}
288 %{_pkgconfigdir}/*.pc
289
290 %files plugins
291 %defattr(644,root,root,755)
292
293 %if %{with clamav}
294 %files plugin-clamav
295 %defattr(644,root,root,755)
296 %attr(755,root,root) %{_libdir}/%{name}/plugins/clamav_plugin.so
297 %endif
298
299 %if %{with dillo}
300 %files plugin-dillo
301 %defattr(644,root,root,755)
302 %attr(755,root,root) %{_libdir}/%{name}/plugins/dillo_viewer.so
303 %endif
304
305 %if %{with gpg}
306 %files plugin-pgpcore
307 %defattr(644,root,root,755)
308 %attr(755,root,root) %{_libdir}/%{name}/plugins/pgpcore.so
309
310 %files plugin-pgpinline
311 %defattr(644,root,root,755)
312 %attr(755,root,root) %{_libdir}/%{name}/plugins/pgpinline.so
313
314 %files plugin-pgpmime
315 %defattr(644,root,root,755)
316 %attr(755,root,root) %{_libdir}/%{name}/plugins/pgpmime.so
317 %endif
318
319 %if %{with spamassassin}
320 %files plugin-spamassassin
321 %defattr(644,root,root,755)
322 %attr(755,root,root) %{_libdir}/%{name}/plugins/spamassassin.so
323 %endif
324
325 %if %{with trayicon}
326 %files plugin-trayicon
327 %defattr(644,root,root,755)
328 %attr(755,root,root) %{_libdir}/%{name}/plugins/trayicon.so
329 %endif
This page took 0.074689 seconds and 2 git commands to generate.