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