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