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