]>
Commit | Line | Data |
---|---|---|
cd056caa | 1 | # |
44be9ed4 | 2 | # TODO: |
cd056caa | 3 | # - CHECK all features of enigmail |
4 | # - separate spec for enigmail | |
44be9ed4 | 5 | # |
6 | # Conditional builds | |
7 | %bcond_without enigmail # don't build enigmail - GPG/PGP support | |
8 | %bcond_without gnomeui # disable gnomeui support | |
9 | %bcond_without gnomevfs # disable GNOME comp. (gconf+libgnome+gnomevfs) and gnomevfs ext. | |
10 | %bcond_without gnome # disable all GNOME components (gnome+gnomeui+gnomevfs) | |
11 | %bcond_without ldap # disable e-mail address lookups in LDAP directories | |
12 | # | |
13 | %if %{without gnome} | |
14 | %undefine with_gnomeui | |
15 | %undefine with_gnomevfs | |
16 | %endif | |
17 | %define enigmail_ver 0.95.6 | |
44be9ed4 | 18 | |
19 | Summary: Icedove - email client | |
20 | Summary(pl.UTF-8): Icedove - klient poczty | |
21 | Name: icedove | |
cd056caa | 22 | Version: 2.0.0.14 |
23 | Release: 2 | |
44be9ed4 | 24 | License: MPL 1.1 or GPL v2+ or LGPL v2.1+ |
25 | Group: Applications/Networking | |
26 | Source0: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/source/thunderbird-%{version}-source.tar.bz2 | |
27 | # Source0-md5: e304510d08f7e226bbfff8e7e549232f | |
28 | Source1: http://www.mozilla-enigmail.org/download/source/enigmail-%{enigmail_ver}.tar.gz | |
29 | # Source1-md5: cfbe6ff77f80a349b396829757ad952a | |
30 | Source2: %{name}-branding.tar.bz2 | |
31 | # Source2-md5: e775b8cb658de32f30b403bc9b7950bf | |
32 | Source3: %{name}-rm_nonfree.sh | |
33 | Source4: %{name}.desktop | |
34 | Source5: %{name}.sh | |
35 | Source6: %{name}-enigmail.manifest | |
36 | Patch0: %{name}-branding.patch | |
37 | Patch1: %{name}-lib_path.patch | |
38 | Patch2: %{name}-enigmail-shared.patch | |
39 | Patch3: %{name}-gcc.patch | |
40 | Patch4: %{name}-fonts.patch | |
41 | Patch5: %{name}-install.patch | |
42 | Patch6: %{name}-myspell.patch | |
43 | Patch7: %{name}-regionNames.patch | |
82476960 | 44 | Patch8: %{name}-prefs.patch |
44be9ed4 | 45 | URL: http://www.mozilla.org/projects/thunderbird/ |
46 | %{?with_gnomevfs:BuildRequires: GConf2-devel >= 1.2.1} | |
47 | BuildRequires: automake | |
48 | BuildRequires: freetype-devel >= 1:2.1.8 | |
49 | %{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.0} | |
50 | BuildRequires: gtk+2-devel >= 1:2.0.0 | |
51 | BuildRequires: libIDL-devel >= 0.8.0 | |
52 | %{?with_gnomevfs:BuildRequires: libgnome-devel >= 2.0} | |
53 | %{?with_gnomeui:BuildRequires: libgnomeui-devel >= 2.2.0} | |
54 | BuildRequires: libjpeg-devel >= 6b | |
55 | BuildRequires: libpng-devel >= 1.2.0 | |
56 | BuildRequires: libstdc++-devel | |
57 | BuildRequires: myspell-devel | |
58 | BuildRequires: nspr-devel >= 1:4.6.1 | |
59 | BuildRequires: nss-devel >= 1:3.11.3 | |
60 | BuildRequires: pango-devel >= 1:1.1.0 | |
61 | BuildRequires: sed >= 4.0 | |
62 | BuildRequires: xorg-lib-libXext-devel | |
63 | BuildRequires: xorg-lib-libXft-devel >= 2.1 | |
64 | BuildRequires: xorg-lib-libXinerama-devel | |
65 | BuildRequires: xorg-lib-libXp-devel | |
66 | BuildRequires: xorg-lib-libXt-devel | |
67 | Requires: myspell-common | |
68 | Requires: nspr >= 1:4.6.1 | |
69 | Requires: nss >= 1:3.11.3 | |
70 | Obsoletes: mozilla-thunderbird | |
71 | Obsoletes: mozilla-thunderbird-dictionary-en-US | |
72 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
73 | ||
74 | # iceweasel/icedove/iceape provide their own versions | |
75 | %define _noautoreqdep libgfxpsshar.so libgkgfx.so libgtkxtbin.so libjsj.so libxpcom_compat.so libxpcom_core.so libxpistub.so | |
76 | %define _noautoprovfiles %{_libdir}/%{name}/components | |
77 | # we don't want these to satisfy xulrunner-devel | |
78 | %define _noautoprov libgtkembedmoz.so libldap50.so libmozjs.so libprldap50.so libssldap50.so libxpcom.so libxul.so | |
79 | # and as we don't provide them, don't require either | |
80 | %define _noautoreq libgtkembedmoz.so libldap50.so libmozjs.so libprldap50.so libssldap50.so libxpcom.so libxul.so | |
81 | ||
82 | %description | |
83 | Icedove is an open-source,fast and portable email client. | |
84 | ||
85 | %description -l pl.UTF-8 | |
86 | Icedove jest open sourcowym, szybkim i przenośnym klientem poczty. | |
87 | ||
88 | %package addon-enigmail | |
89 | Summary: Extension for the authentication and encryption features provided by GnuPG | |
90 | Summary(pl.UTF-8): Rozszerzenie do uwierzytelniania i szyfrowania zapewnianego przez GnuPG | |
91 | License: MPL/LGPL | |
92 | Group: Applications/Networking | |
93 | URL: http://enigmail.mozdev.org/ | |
cd056caa | 94 | Requires: %{name} = %{version}-%{release} |
44be9ed4 | 95 | |
96 | %description addon-enigmail | |
c5e06599 | 97 | Enigmail is an extension to the Icedove mail client which allows users |
98 | to access the authentication and encryption features provided by | |
99 | GnuPG. | |
44be9ed4 | 100 | |
101 | Main Features: | |
102 | - Encrypt/sign mail when sending, decrypt/authenticate received mail | |
103 | - Support for inline-PGP (RFC 2440) and PGP/MIME (RFC 3156) | |
104 | - Per-Account based encryption and signing defaults | |
105 | - Per-Recipient rules for automated key selection, and | |
106 | enabling/disabling encryption and signing | |
107 | - OpenPGP key management interface | |
108 | ||
109 | %description addon-enigmail -l pl.UTF-8 | |
c5e06599 | 110 | Enigmail to rozszerzenie klienta pocztowego Icedove pozwalające |
111 | użytkownikom na dostęp do uwierzytelniania i szyfrowania | |
44be9ed4 | 112 | zapewnianego przez GnuPG. |
113 | ||
114 | Główne możliwości: | |
115 | - szyfrowanie/podpisywanie poczty przy wysyłaniu, | |
116 | odszyfrowywanie/uwierzytelnianie poczty odebranej | |
117 | - obsługa inline-PGP (RFC 2440) i PGP/MIME (RFC 3156) | |
118 | - ustawienia domyślne szyfrowania i podpisywania dla każdego konta | |
119 | - reguły automatycznego wyboru kluczy i włączenia szyfrowania oraz | |
120 | podpisywania dla każdego adresata | |
121 | - interfejs do zarządzania kluczami OpenPGP | |
122 | ||
123 | %prep | |
5c67740b | 124 | %setup -q -c -a2 |
44be9ed4 | 125 | cd mozilla |
126 | %{?with_enigmail:tar xvfz %{SOURCE1} -C mailnews/extensions} | |
127 | /bin/sh %{SOURCE3} | |
128 | %patch0 -p1 | |
129 | %patch1 -p1 | |
130 | %{?with_enigmail:%patch2 -p1} | |
131 | %patch3 -p1 | |
132 | %patch4 -p1 | |
133 | %patch5 -p1 | |
134 | %patch6 -p1 | |
135 | %patch7 -p1 | |
82476960 | 136 | %patch8 -p1 |
44be9ed4 | 137 | |
138 | :> config/gcc_hidden.h | |
139 | ||
140 | %build | |
141 | cd mozilla | |
142 | export CFLAGS="%{rpmcflags} `%{_bindir}/pkg-config mozilla-nspr --cflags-only-I`" | |
143 | export CXXFLAGS="%{rpmcflags} `%{_bindir}/pkg-config mozilla-nspr --cflags-only-I`" | |
144 | ||
145 | cp -f %{_datadir}/automake/config.* build/autoconf | |
146 | cp -f %{_datadir}/automake/config.* nsprpub/build/autoconf | |
147 | cp -f %{_datadir}/automake/config.* directory/c-sdk/config/autoconf | |
148 | ||
149 | cat << 'EOF' > .mozconfig | |
150 | . $topsrcdir/mail/config/mozconfig | |
151 | ||
152 | ac_add_options --prefix=%{_prefix} | |
153 | ac_add_options --exec-prefix=%{_exec_prefix} | |
154 | ac_add_options --bindir=%{_bindir} | |
155 | ac_add_options --sbindir=%{_sbindir} | |
156 | ac_add_options --sysconfdir=%{_sysconfdir} | |
157 | ac_add_options --datadir=%{_datadir} | |
158 | ac_add_options --includedir=%{_includedir} | |
159 | ac_add_options --libdir=%{_libdir} | |
160 | ac_add_options --libexecdir=%{_libexecdir} | |
161 | ac_add_options --localstatedir=%{_localstatedir} | |
162 | ac_add_options --sharedstatedir=%{_sharedstatedir} | |
163 | ac_add_options --mandir=%{_mandir} | |
164 | ac_add_options --infodir=%{_infodir} | |
165 | %if %{?debug:1}0 | |
166 | ac_add_options --enable-debug | |
167 | ac_add_options --enable-debug-modules | |
168 | %else | |
169 | ac_add_options --disable-debug | |
170 | ac_add_options --disable-debug-modules | |
171 | %endif | |
172 | %if %{with tests} | |
173 | ac_add_options --enable-tests | |
174 | %else | |
175 | ac_add_options --disable-tests | |
176 | %endif | |
177 | %if %{with gnomeui} | |
178 | ac_add_options --enable-gnomeui | |
179 | %else | |
180 | ac_add_options --disable-gnomeui | |
181 | %endif | |
182 | %if %{with gnomevfs} | |
183 | ac_add_options --enable-gnomevfs | |
184 | %else | |
185 | ac_add_options --disable-gnomevfs | |
186 | %endif | |
187 | %if %{with ldap} | |
188 | ac_add_options --enable-ldap | |
189 | %else | |
190 | ac_add_options --disable-ldap | |
191 | %endif | |
192 | ac_add_options --disable-installer | |
193 | ac_add_options --disable-jsd | |
194 | ac_add_options --disable-xprint | |
195 | ac_add_options --enable-canvas | |
196 | ac_add_options --enable-crypto | |
197 | ac_add_options --enable-default-toolkit="gtk2" | |
198 | ac_add_options --enable-extensions="pref,cookie,wallet,spellcheck" | |
199 | ac_add_options --enable-mathml | |
200 | ac_add_options --enable-optimize="%{rpmcflags}" | |
201 | ac_add_options --enable-pango | |
202 | ac_add_options --enable-reorder | |
203 | ac_add_options --disable-strip | |
204 | ac_add_options --disable-strip-libs | |
205 | ac_add_options --enable-system-cairo | |
206 | ac_add_options --enable-system-myspell | |
207 | ac_add_options --enable-svg | |
208 | ac_add_options --enable-xft | |
209 | ac_add_options --enable-xinerama | |
210 | ac_add_options --with-system-jpeg | |
211 | ac_add_options --with-system-nspr | |
212 | ac_add_options --with-system-nss | |
213 | ac_add_options --with-system-png | |
214 | ac_add_options --with-system-zlib | |
215 | ac_add_options --with-pthreads | |
216 | ac_add_options --enable-single-profile | |
217 | ac_add_options --disable-profilesharing | |
218 | ac_add_options --with-branding=icedove/branding | |
219 | ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name} | |
220 | EOF | |
221 | ||
222 | %{__make} -j1 -f client.mk build_all \ | |
223 | CC="%{__cc}" \ | |
224 | CXX="%{__cxx}" | |
225 | ||
226 | %if %{with enigmail} | |
227 | cd mailnews/extensions/enigmail | |
228 | ./makemake -r | |
229 | %{__make} | |
230 | %endif | |
231 | ||
232 | %install | |
233 | rm -rf $RPM_BUILD_ROOT | |
234 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_pixmapsdir},%{_desktopdir}} \ | |
235 | $RPM_BUILD_ROOT%{_datadir}/%{name} | |
236 | ||
237 | cd mozilla | |
238 | %{__make} -C xpinstall/packager stage-package \ | |
239 | DESTDIR=$RPM_BUILD_ROOT \ | |
240 | MOZ_PKG_APPDIR=%{_libdir}/%{name} \ | |
241 | PKG_SKIP_STRIP=1 | |
242 | ||
243 | # move arch independant ones to datadir | |
244 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/chrome | |
245 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults | |
246 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/greprefs $RPM_BUILD_ROOT%{_datadir}/%{name}/greprefs | |
247 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/icons $RPM_BUILD_ROOT%{_datadir}/%{name}/icons | |
248 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/init.d $RPM_BUILD_ROOT%{_datadir}/%{name}/init.d | |
249 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/isp $RPM_BUILD_ROOT%{_datadir}/%{name}/isp | |
250 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/res $RPM_BUILD_ROOT%{_datadir}/%{name}/res | |
251 | ln -s ../../share/%{name}/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome | |
252 | ln -s ../../share/%{name}/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults | |
253 | ln -s ../../share/%{name}/greprefs $RPM_BUILD_ROOT%{_libdir}/%{name}/greprefs | |
254 | ln -s ../../share/%{name}/icons $RPM_BUILD_ROOT%{_libdir}/%{name}/icons | |
255 | ln -s ../../share/%{name}/init.d $RPM_BUILD_ROOT%{_libdir}/%{name}/init.d | |
256 | ln -s ../../share/%{name}/isp $RPM_BUILD_ROOT%{_libdir}/%{name}/isp | |
257 | ln -s ../../share/%{name}/res $RPM_BUILD_ROOT%{_libdir}/%{name}/res | |
258 | ||
259 | rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries | |
260 | ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries | |
261 | ||
262 | %{__sed} -e 's,@LIBDIR@,%{_libdir},' %{SOURCE5} > $RPM_BUILD_ROOT%{_bindir}/icedove | |
263 | ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/thunderbird | |
264 | ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/mozilla-thunderbird | |
265 | ||
266 | install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop | |
267 | ||
268 | %if %{with enigmail} | |
269 | _enig_dir=$RPM_BUILD_ROOT%{_libdir}/%{name}/extensions/\{847b3a00-7ab1-11d4-8f02-006008948af5\} | |
270 | install -d $_enig_dir/chrome | |
271 | install -d $_enig_dir/components | |
272 | install -d $_enig_dir/defaults/preferences | |
273 | mv -f $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome/enigmail.jar $_enig_dir/chrome | |
274 | mv -f $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome/enigmail-skin-tbird.jar $_enig_dir/chrome | |
275 | mv -f $RPM_BUILD_ROOT%{_libdir}/%{name}/components/enig* $_enig_dir/components | |
276 | mv -f $RPM_BUILD_ROOT%{_libdir}/%{name}/components/libenigmime.so $_enig_dir/components | |
277 | mv -f $RPM_BUILD_ROOT%{_libdir}/%{name}/components/ipc.xpt $_enig_dir/components | |
278 | mv -f $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults/preferences/enigmail.js $_enig_dir/defaults/preferences | |
279 | cp -f mailnews/extensions/enigmail/package/install.rdf $_enig_dir | |
280 | rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults/preferences | |
281 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome/enigmail-en-US.jar | |
282 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome/enigmail-skin.jar | |
283 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome/enigmime.jar | |
284 | rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/components/enig* | |
285 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/components/libenigmime.so | |
286 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/components/ipc.xpt | |
287 | cp -f %{SOURCE6} $_enig_dir/chrome.manifest | |
288 | cp -f icedove/branding/content/icon64.png $RPM_BUILD_ROOT%{_pixmapsdir}/icedove.png | |
289 | %endif | |
290 | ||
291 | # win32 stuff | |
292 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/dirver | |
293 | ||
294 | %clean | |
295 | rm -rf $RPM_BUILD_ROOT | |
296 | ||
297 | %pretrans | |
298 | if [ -d %{_libdir}/%{name}/dictionaries ] && [ ! -L %{_libdir}/%{name}/dictionaries ]; then | |
299 | mv -v %{_libdir}/%{name}/dictionaries{,.rpmsave} | |
300 | fi | |
301 | for d in chrome defaults greprefs icons init.d isp res; do | |
302 | if [ -d %{_libdir}/%{name}/$d ] && [ ! -L %{_libdir}/%{name}/$d ]; then | |
303 | install -d %{_datadir}/%{name} | |
304 | mv %{_libdir}/%{name}/$d %{_datadir}/%{name}/$d | |
305 | fi | |
306 | done | |
307 | exit 0 | |
308 | ||
309 | %files | |
310 | %defattr(644,root,root,755) | |
311 | %attr(755,root,root) %{_bindir}/icedove | |
312 | %attr(755,root,root) %{_bindir}/mozilla-thunderbird | |
313 | %attr(755,root,root) %{_bindir}/thunderbird | |
314 | %dir %{_libdir}/%{name} | |
315 | %dir %{_libdir}/%{name}/components | |
316 | %attr(755,root,root) %{_libdir}/%{name}/components/*.so | |
317 | %{_libdir}/%{name}/components/*.js | |
318 | %{_libdir}/%{name}/components/*.xpt | |
319 | %attr(755,root,root) %{_libdir}/%{name}/*.so | |
320 | %attr(755,root,root) %{_libdir}/%{name}/*.sh | |
321 | %attr(755,root,root) %{_libdir}/%{name}/*-bin | |
322 | %attr(755,root,root) %{_libdir}/%{name}/mozilla-xremote-client | |
323 | %attr(755,root,root) %{_libdir}/%{name}/reg* | |
324 | %attr(755,root,root) %{_libdir}/%{name}/icedove | |
325 | %{_libdir}/%{name}/*.txt | |
326 | %attr(755,root,root) %{_libdir}/%{name}/x* | |
327 | ||
328 | # symlinks | |
329 | %{_libdir}/%{name}/chrome | |
330 | %{_libdir}/%{name}/defaults | |
331 | %{_libdir}/%{name}/dictionaries | |
332 | %{_libdir}/%{name}/greprefs | |
333 | %{_libdir}/%{name}/icons | |
334 | %{_libdir}/%{name}/init.d | |
335 | %{_libdir}/%{name}/isp | |
336 | %{_libdir}/%{name}/res | |
337 | ||
338 | %{_libdir}/%{name}/dependentlibs.list | |
339 | %{_libdir}/%{name}/updater | |
340 | %{_libdir}/%{name}/updater.ini | |
341 | %{_pixmapsdir}/*.png | |
342 | %{_desktopdir}/*.desktop | |
343 | ||
344 | %dir %{_datadir}/%{name} | |
345 | %{_datadir}/%{name}/chrome | |
346 | %{_datadir}/%{name}/defaults | |
347 | %{_datadir}/%{name}/greprefs | |
348 | %{_datadir}/%{name}/icons | |
349 | %{_datadir}/%{name}/init.d | |
350 | %{_datadir}/%{name}/isp | |
351 | %{_datadir}/%{name}/res | |
352 | ||
353 | %dir %{_libdir}/%{name}/extensions | |
354 | %{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd} | |
355 | ||
356 | %if %{with enigmail} | |
357 | %files addon-enigmail | |
358 | %defattr(644,root,root,755) | |
359 | %{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5} | |
360 | %endif |