]> git.pld-linux.org Git - packages/claws-mail.git/blob - claws-mail.spec
- themes subpackage moved to sylpheed-claws-themes.spec
[packages/claws-mail.git] / claws-mail.spec
1 # TODO:
2 # - pl description for new subpackages
3 #
4 # Conditional build:
5 %bcond_without  clamav          # build without clamav plugin
6 %bcond_without  compface        # build without compface support
7 %bcond_without  dillo           # build without dillo plugin (html browser)
8 %bcond_without  gnomeprint      # build without gnomeprint support
9 %bcond_without  gpg             # build without GPG support
10 %bcond_without  ipv6            # build without IPv6 support
11 %bcond_without  jpilot          # build without JPilot support
12 %bcond_without  ldap            # build without LDAP support
13 %bcond_without  spamassassin    # build without spamassassin plugin
14 %bcond_without  ssl             # build without SSL support
15 %bcond_without  trayicon        # build without trayicon plugin
16 #
17 Summary:        A bleeding edge branch of Sylpheed, a GTK2 based, lightweight, and fast e-mail client
18 Summary(pl):    Rozwojowa wersja Sylpheed z du¿± ilo¶ci± zmian oraz ulepszeñ
19 Name:           sylpheed-claws
20 Version:        2.3.0
21 Release:        1.5
22 License:        GPL v2
23 Group:          X11/Applications/Networking
24 Source0:        http://dl.sourceforge.net/sylpheed-claws/%{name}-%{version}.tar.bz2
25 # Source0-md5:  a59b1f1736e89918c648794c94120a8e
26 Source1:        %{name}.desktop
27 URL:            http://www.sylpheed-claws.net/
28 BuildRequires:  aspell-devel >= 2:0.50
29 BuildRequires:  autoconf >= 2.50
30 BuildRequires:  automake
31 BuildRequires:  bzip2-devel
32 %{?with_clamav:BuildRequires:   clamav-devel}
33 %{?with_compface:BuildRequires: compface-devel}
34 BuildRequires:  gdk-pixbuf-devel >= 0.8
35 BuildRequires:  gettext-devel
36 BuildRequires:  gmp-devel
37 %{?with_gpg:BuildRequires:      gpgme-devel >= 1:0.4.5}
38 BuildRequires:  gtk+2-devel >= 2:2.4.0
39 BuildRequires:  imlib-devel >= 1.9
40 BuildRequires:  libetpan-devel >= 0.45
41 %{?with_gnomeprint:BuildRequires:       libgnomeprintui-devel}
42 BuildRequires:  libltdl-devel
43 BuildRequires:  libtool
44 %{?with_ldap:BuildRequires:     openldap-devel >= 2.3.0}
45 %{?with_ssl:BuildRequires:      openssl-devel >= 0.9.7d}
46 %{?with_jpilot:BuildRequires:   pilot-link-devel}
47 BuildRequires:  pkgconfig
48 BuildRequires:  startup-notification-devel >= 0.5
49 Obsoletes:      sylpheed
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
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 Sylpheed-Claws
65 Summary(pl):    Pliki nag³ówkowe programu Sylpheed-Claws
66 Group:          X11/Applications/Networking
67 Requires:       %{name} = %{version}-%{release}
68 Requires:       gpgme-devel >= 1:0.4.5
69 Requires:       libetpan-devel >= 0.45
70 Requires:       openssl-devel >= 0.9.7d
71
72 %description devel
73 Sylpheed-Claws development package.
74
75 %description devel -l pl
76 Pliki nag³ówkowe programu Sylpheed-Claws.
77
78 %package plugins
79 Summary:        Special plugins for Sylpheed-Claws (metapackage)
80 Summary(pl):    Dodatkowe pluginy dla Sylpheed-Claws (metapakiet)
81 Group:          X11/Applications/Networking
82 Requires:       %{name} = %{version}-%{release}
83 %{?with_clamav:Requires: %{name}-plugin-clamav = %{version}-%{release}}
84 %{?with_dillo:Requires: %{name}-plugin-dillo = %{version}-%{release}}
85 %if %{with gpg}
86 Requires:       %{name}-plugin-pgpinline = %{version}-%{release}
87 Requires:       %{name}-plugin-pgpmime = %{version}-%{release}
88 %endif
89 %{?with_spamassassin:Requires: %{name}-plugin-spamassassin = %{version}-%{release}}
90 %{?with_trayicon:Requires: %{name}-plugin-trayicon = %{version}-%{release}}
91
92 %description plugins
93 This is collection of some usefull plugins for Sylpheed-Claws
94 (metapackage).
95
96 %description plugins -l pl
97 Jest to zbiór kilku dodatkowych pluginów powiêkszaj±cych mo¿liwo¶ci
98 Sylpheed-Claws (metapakiet).
99
100 %package plugin-clamav
101 Summary:        clamav plugin for Sylpheed-Claws
102 Summary(pl):    Wtyczka clamav dla Sylpheed-Claws
103 Group:          X11/Applications/Networking
104 Requires:       %{name} = %{version}-%{release}
105 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
106
107 %description plugin-clamav
108 This plugin enables the scanning of message attachments in mail
109 received from a POP, IMAP, or LOCAL account using Clam AntiVirus. It
110 can optionally delete the mail or save it to a designated folder.
111
112 %package plugin-dillo
113 Summary:        dillo plugin for Sylpheed-Claws
114 Summary(pl):    Wtyczka dillo dla Sylpheed-Claws
115 Group:          X11/Applications/Networking
116 Requires:       %{name} = %{version}-%{release}
117 Requires:       dillo
118 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
119
120 %description plugin-dillo
121 This plugin enables the viewing of html messages using the Dillo web
122 browser.
123
124 %package plugin-pgpcore
125 Summary:        PGP/Core plugin for Sylpheed-Claws
126 Summary(pl):    Wtyczka PGP/Core dla Sylpheed-Claws
127 Group:          X11/Applications/Networking
128 Requires:       %{name} = %{version}-%{release}
129 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
130
131 %description plugin-pgpcore
132 This plugin handles core PGP functions.
133
134 %package plugin-pgpinline
135 Summary:        PGP/Inline plugin for Sylpheed-Claws
136 Summary(pl):    Wtyczka PGP/Inline dla Sylpheed-Claws
137 Group:          X11/Applications/Networking
138 Requires:       %{name}-plugin-pgpcore = %{version}-%{release}
139 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
140
141 %description plugin-pgpinline
142 This plugin handles PGP/Inline signed and/or encrypted mails. It can
143 decrypt mails, verify signatures or sign and encrypt your own mails.
144
145 %package plugin-pgpmime
146 Summary:        PGP/MIME plugin for Sylpheed-Claws
147 Summary(pl):    Wtyczka PGP/MIME 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-pgpmime
153 This plugin handles PGP/MIME signed and/or encrypted mails. It can
154 decrypt mails, verify signatures or sign and encrypt your own mails.
155
156 %package plugin-spamassassin
157 Summary:        spamassassin plugin for Sylpheed-Claws
158 Summary(pl):    Wtyczka spamassassin dla Sylpheed-Claws
159 Group:          X11/Applications/Networking
160 Requires:       %{name} = %{version}-%{release}
161 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
162
163 %description plugin-spamassassin
164 This plugin enables the scanning of incoming mail received from a POP,
165 IMAP, or LOCAL account using SpamAssassin. It can optionally delete
166 mail identified as spam or save it to a designated folder, and also
167 can be used to train a local Spamassassin or a remote one.
168
169 %package plugin-trayicon
170 Summary:        trayicon plugin for Sylpheed-Claws
171 Summary(pl):    Wtyczka trayicon dla Sylpheed-Claws
172 Group:          X11/Applications/Networking
173 Requires:       %{name} = %{version}-%{release}
174 Conflicts:      sylpheed-claws-plugins <= 2.3.0-1
175
176 %description plugin-trayicon
177 This plugin places an icon in the system tray that indicates whether
178 you have any new mail. A tooltip also shows the current new, unread
179 and total number of messages, and a contextual menu allows the most
180 common operations.
181
182 %prep
183 %setup -q
184
185 rm -f po/stamp-po
186
187 %build
188 #%%{__libtoolize}
189 #%%{__gettextize}
190 #%%{__aclocal} -I m4
191 #%%{__autoconf}
192 #%%{__autoheader}
193 #%%{__automake}
194 %configure \
195         --%{?with_clamav:en}%{!?with_clamav:dis}able-clamav-plugin \
196         --%{?with_compface:en}%{!?with_compface:dis}able-compface \
197         --%{?with_dillo:en}%{!?with_dillo:dis}able-dillo-viewer-plugin \
198         --%{?with_gnomeprint:en}%{!?with_gnomeprint:dis}able-gnomeprint \
199         --%{?with_gpg:en}%{!?with_gpg:dis}able-pgpcore-plugin \
200         --%{?with_gpg:en}%{!?with_gpg:dis}able-pgpmime-plugin \
201         --%{?with_gpg:en}%{!?with_gpg:dis}able-pgpinline-plugin \
202         --%{?with_ipv6:en}%{!?with_ipv6:dis}able-ipv6 \
203         --%{?with_jpilot:en}%{!?with_jpilot:dis}able-jpilot \
204         --%{?with_ldap:en}%{!?with_ldap:dis}able-ldap \
205         --%{?with_spamassassin:en}%{!?with_spamassassin:dis}able-spamassassin-plugin \
206         --%{?with_ssl:en}%{!?with_ssl:dis}able-openssl \
207         --%{?with_trayicon:en}%{!?with_trayicon:dis}able-trayicon-plugin \
208         --enable-aspell \
209         --enable-gdk-pixbuf \
210         --enable-pthread \
211         --disable-static \
212         --enable-libetpan \
213         --with-config-dir=.sylpheed
214
215 %{__make}
216
217 %install
218 rm -rf $RPM_BUILD_ROOT
219 install -d $RPM_BUILD_ROOT{%{_datadir}/%{name}/themes,%{_desktopdir},%{_pixmapsdir}}
220
221 %{__make} install \
222         DESTDIR=$RPM_BUILD_ROOT
223
224 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
225 install %{name}.png $RPM_BUILD_ROOT%{_pixmapsdir}
226
227 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*.{deps,la}
228
229 %find_lang %{name}
230
231 %clean
232 rm -rf $RPM_BUILD_ROOT
233
234 %files -f %{name}.lang
235 %defattr(644,root,root,755)
236 %doc AUTHORS ChangeLog NEWS README* TODO
237 %{_mandir}/man1/%{name}.1*
238 %attr(755,root,root) %{_bindir}/*
239 %dir %{_datadir}/%{name}
240 %dir %{_datadir}/%{name}/manual
241 %dir %{_datadir}/%{name}/themes
242 %dir %{_libdir}/%{name}
243 %dir %{_libdir}/%{name}/plugins
244 %{_datadir}/%{name}/manual/en
245 %lang(fr) %{_datadir}/%{name}/manual/fr
246 %lang(pl) %{_datadir}/%{name}/manual/pl
247 %{_desktopdir}/%{name}.desktop
248 %{_pixmapsdir}/%{name}.png
249
250 %files devel
251 %defattr(644,root,root,755)
252 %{_includedir}/%{name}
253 %{_pkgconfigdir}/*.pc
254
255 %files plugins
256 %defattr(644,root,root,755)
257
258 %if %{with clamav}
259 %files plugin-clamav
260 %defattr(644,root,root,755)
261 %attr(755,root,root) %{_libdir}/%{name}/plugins/clamav_plugin.so
262 %endif
263
264 %if %{with dillo}
265 %files plugin-dillo
266 %defattr(644,root,root,755)
267 %attr(755,root,root) %{_libdir}/%{name}/plugins/dillo_viewer.so
268 %endif
269
270 %if %{with gpg}
271 %files plugin-pgpcore
272 %defattr(644,root,root,755)
273 %attr(755,root,root) %{_libdir}/%{name}/plugins/pgpcore.so
274
275 %files plugin-pgpinline
276 %defattr(644,root,root,755)
277 %attr(755,root,root) %{_libdir}/%{name}/plugins/pgpinline.so
278
279 %files plugin-pgpmime
280 %defattr(644,root,root,755)
281 %attr(755,root,root) %{_libdir}/%{name}/plugins/pgpmime.so
282 %endif
283
284 %if %{with spamassassin}
285 %files plugin-spamassassin
286 %defattr(644,root,root,755)
287 %attr(755,root,root) %{_libdir}/%{name}/plugins/spamassassin.so
288 %endif
289
290 %if %{with trayicon}
291 %files plugin-trayicon
292 %defattr(644,root,root,755)
293 %attr(755,root,root) %{_libdir}/%{name}/plugins/trayicon.so
294 %endif
This page took 0.144638 seconds and 4 git commands to generate.