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