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