]> git.pld-linux.org Git - packages/thunderbird.git/blame - icedove.spec
- rel 3
[packages/thunderbird.git] / icedove.spec
CommitLineData
c4ddd260 1# TODO:
c4ddd260 2# - separate spec for enigmail
283702b9 3# - build with system mozldap
c4ddd260 4#
44be9ed4 5# Conditional builds
6%bcond_without enigmail # don't build enigmail - GPG/PGP support
7%bcond_without gnomeui # disable gnomeui support
6458b220 8%bcond_without gnome # alias for gnomeui
44be9ed4 9%bcond_without ldap # disable e-mail address lookups in LDAP directories
e820c55e 10%bcond_without lightning # disable Sunbird/Lightning calendar
fac7e24d 11%bcond_with xulrunner # system xulrunner
765a3a27 12%bcond_with crashreporter # report crashes to crash-stats.mozilla.com
88149483 13
44be9ed4 14%if %{without gnome}
15%undefine with_gnomeui
44be9ed4 16%endif
88149483 17
f4114a7f 18%if 0%{?_enable_debug_packages} != 1
765a3a27
ER
19%undefine crashreporter
20%endif
21
37973fb0 22%define enigmail_ver 1.4.2
64b4570d
JB
23%define nspr_ver 4.9
24%define nss_ver 3.13.3
44be9ed4 25
37973fb0 26%define xulrunner_ver 2:13.0
4f34f106 27
7d981f69
ER
28%if %{without xulrunner}
29# The actual sqlite version (see RHBZ#480989):
30%define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR)
31%endif
32
44be9ed4 33Summary: Icedove - email client
34Summary(pl.UTF-8): Icedove - klient poczty
35Name: icedove
5addddb6 36Version: 13.0.1
15c05ec4 37Release: 3
44be9ed4 38License: MPL 1.1 or GPL v2+ or LGPL v2.1+
75c0f419 39Group: X11/Applications/Networking
cadfb931 40Source0: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/source/thunderbird-%{version}.source.tar.bz2
5addddb6 41# Source0-md5: 721088faf4bedfd8d7beb6f8295856d1
44be9ed4 42Source1: http://www.mozilla-enigmail.org/download/source/enigmail-%{enigmail_ver}.tar.gz
37973fb0 43# Source1-md5: ed608e1cd4cd20b96f7f5afdbf081141
44be9ed4 44Source2: %{name}-branding.tar.bz2
c105f759 45# Source2-md5: 2da351522bdd7f4a3bd8aaff4c776976
44be9ed4 46Source3: %{name}-rm_nonfree.sh
47Source4: %{name}.desktop
48Source5: %{name}.sh
44be9ed4 49Patch0: %{name}-branding.patch
faa5c89d 50Patch1: %{name}-enigmail-shared.patch
fac7e24d 51Patch2: %{name}-system-xulrunner.patch
faa5c89d
SP
52Patch3: %{name}-fonts.patch
53Patch4: %{name}-install.patch
5e9bb798 54Patch5: %{name}-hunspell.patch
faa5c89d 55Patch6: %{name}-prefs.patch
9a743685 56Patch7: system-mozldap.patch
a85e0ecb 57Patch8: %{name}-makefile.patch
37973fb0 58Patch9: system-cairo.patch
ccc206fe 59Patch10: %{name}-extensiondir.patch
765a3a27 60Patch11: crashreporter.patch
268e7766 61Patch12: no-subshell.patch
5745d706 62URL: http://www.pld-linux.org/Packages/Icedove
6458b220 63BuildRequires: GConf2-devel >= 1.2.1
51a3b6db 64BuildRequires: alsa-lib-devel
44be9ed4 65BuildRequires: automake
51a3b6db 66BuildRequires: bzip2-devel
e820c55e
JB
67BuildRequires: cairo-devel >= 1.10
68BuildRequires: dbus-glib-devel >= 0.60
44be9ed4 69BuildRequires: freetype-devel >= 1:2.1.8
6458b220 70BuildRequires: glib2-devel >= 2.0
e820c55e 71BuildRequires: gtk+2-devel >= 2:2.10.0
5e9bb798 72BuildRequires: hunspell-devel
44be9ed4 73BuildRequires: libIDL-devel >= 0.8.0
6458b220 74%{?with_gnomeui:BuildRequires: libgnome-devel >= 2.0}
51a3b6db 75%{?with_gnomeui:BuildRequires: libgnome-keyring-devel}
44be9ed4 76%{?with_gnomeui:BuildRequires: libgnomeui-devel >= 2.2.0}
51a3b6db 77BuildRequires: libiw-devel
44be9ed4 78BuildRequires: libjpeg-devel >= 6b
51a3b6db 79BuildRequires: libnotify-devel >= 0.4
e820c55e 80BuildRequires: libpng-devel >= 1.4.1
44be9ed4 81BuildRequires: libstdc++-devel
f4114a7f
ER
82BuildRequires: nspr-devel >= 1:%{nspr_ver}
83BuildRequires: nss-devel >= 1:%{nss_ver}
3815090b 84BuildRequires: pango-devel >= 1:1.14.0
e820c55e 85BuildRequires: perl-base >= 1:5.6
1c62cadb 86BuildRequires: pkgconfig
e820c55e 87BuildRequires: python >= 1:2.5
44be9ed4 88BuildRequires: sed >= 4.0
9d1bfad8 89BuildRequires: sqlite3-devel >= 3.7.4
1c62cadb 90BuildRequires: startup-notification-devel >= 0.8
44be9ed4 91BuildRequires: xorg-lib-libXext-devel
44be9ed4 92BuildRequires: xorg-lib-libXinerama-devel
44be9ed4 93BuildRequires: xorg-lib-libXt-devel
5745d706 94BuildRequires: yasm
1c62cadb 95BuildRequires: zip
7d981f69 96%if %{with xulrunner}
e8326f77 97BuildRequires: xulrunner-devel >= %{xulrunner_ver}
7d981f69 98%else
44be9ed4 99Requires: myspell-common
f4114a7f
ER
100Requires: nspr >= 1:%{nspr_ver}
101Requires: nss >= 1:%{nss_ver}
4b6bc367 102Requires: sqlite3 >= %{sqlite_build_version}
7d981f69 103%endif
4f34f106
ER
104Requires(post): mktemp >= 1.5-18
105%if %{with xulrunner}
106%requires_eq_to xulrunner xulrunner-devel
107%endif
44be9ed4 108Obsoletes: mozilla-thunderbird
109Obsoletes: mozilla-thunderbird-dictionary-en-US
d606e9b3 110Conflicts: icedove-lang-resources < %{version}
44be9ed4 111BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
112
9e366f18
AM
113%define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+
114
44be9ed4 115# iceweasel/icedove/iceape provide their own versions
44be9ed4 116%define _noautoprovfiles %{_libdir}/%{name}/components
fb7d4f06
JB
117%if %{without xulrunner}
118# we don't want these to satisfy packages depending on xulrunner
119%define _noautoprov libmozalloc.so libxpcom.so libxul.so
44be9ed4 120# and as we don't provide them, don't require either
fb7d4f06
JB
121%define _noautoreq libmozalloc.so libxpcom.so libxul.so
122%endif
44be9ed4 123
9e7875fc
ER
124%define topdir %{_builddir}/%{name}-%{version}
125%define objdir %{topdir}/obj-%{_target_cpu}
126
44be9ed4 127%description
6b327de6 128Icedove is an open-source, fast and portable email client.
44be9ed4 129
130%description -l pl.UTF-8
6b327de6
JB
131Icedove jest mającym otwarte źródła, szybkim i przenośnym klientem
132poczty.
44be9ed4 133
6578c165 134%package addon-lightning
135Summary: An integrated calendar for Icedove
136Summary(pl.UTF-8): Zintegrowany kalendarz dla Icedove
137License: MPL 1.1 or GPL v2+ or LGPL v2.1+
138Group: Applications/Networking
139Requires: %{name} = %{version}-%{release}
140
141%description addon-lightning
142Lightning is an calendar extension to Icedove email client.
143
144%description addon-lightning -l pl.UTF-8
145Lightning to rozszerzenie do klienta poczty Icedove dodające
146funkcjonalność kalendarza.
147
44be9ed4 148%package addon-enigmail
149Summary: Extension for the authentication and encryption features provided by GnuPG
150Summary(pl.UTF-8): Rozszerzenie do uwierzytelniania i szyfrowania zapewnianego przez GnuPG
151License: MPL/LGPL
152Group: Applications/Networking
153URL: http://enigmail.mozdev.org/
cd056caa 154Requires: %{name} = %{version}-%{release}
d076d93e 155Requires: gnupg
75991bbb 156Obsoletes: mozilla-thunderbird-addon-enigmail
44be9ed4 157
158%description addon-enigmail
c5e06599 159Enigmail is an extension to the Icedove mail client which allows users
160to access the authentication and encryption features provided by
161GnuPG.
44be9ed4 162
163Main Features:
164- Encrypt/sign mail when sending, decrypt/authenticate received mail
165- Support for inline-PGP (RFC 2440) and PGP/MIME (RFC 3156)
166- Per-Account based encryption and signing defaults
167- Per-Recipient rules for automated key selection, and
168 enabling/disabling encryption and signing
169- OpenPGP key management interface
170
171%description addon-enigmail -l pl.UTF-8
c5e06599 172Enigmail to rozszerzenie klienta pocztowego Icedove pozwalające
faa5c89d
SP
173użytkownikom na dostęp do uwierzytelniania i szyfrowania zapewnianego
174przez GnuPG.
44be9ed4 175
176Główne możliwości:
177- szyfrowanie/podpisywanie poczty przy wysyłaniu,
178 odszyfrowywanie/uwierzytelnianie poczty odebranej
179- obsługa inline-PGP (RFC 2440) i PGP/MIME (RFC 3156)
180- ustawienia domyślne szyfrowania i podpisywania dla każdego konta
181- reguły automatycznego wyboru kluczy i włączenia szyfrowania oraz
182 podpisywania dla każdego adresata
183- interfejs do zarządzania kluczami OpenPGP
184
185%prep
983562b1 186%setup -qc
f4114a7f 187mv comm-release mozilla
983562b1 188%setup -q -T -D -a2
189cd mozilla
1c70899a 190%{?with_enigmail:%{__gzip} -dc %{SOURCE1} | %{__tar} -xf - -C mailnews/extensions}
44be9ed4 191/bin/sh %{SOURCE3}
983562b1 192%patch0 -p1
faa5c89d 193%{?with_enigmail:%patch1 -p1}
73d54cb2 194%{?with_xulrunner:%patch2 -p1}
4ccc2157 195%patch3 -p1
faa5c89d 196%patch4 -p1
983562b1 197%patch6 -p1
9a743685 198%patch7 -p1
f4114a7f 199%patch8 -p2
3815090b 200%patch9 -p1
ccc206fe 201%patch10 -p2
765a3a27 202%patch11 -p2
268e7766 203%patch12 -p1
44be9ed4 204
205%build
983562b1 206cd mozilla
cadfb931
SP
207cp -f %{_datadir}/automake/config.* mozilla/build/autoconf
208cp -f %{_datadir}/automake/config.* mozilla/nsprpub/build/autoconf
f4114a7f 209cp -f %{_datadir}/automake/config.* ldap/sdks/c-sdk/config/autoconf
44be9ed4 210
fbac75ca 211cat << EOF > .mozconfig
9e7875fc 212mk_add_options MOZ_OBJDIR=%{objdir}
cb0e4412 213
fac7e24d 214export CFLAGS="%{rpmcflags}"
73d54cb2 215export CXXFLAGS="%{rpmcflags}"
765a3a27
ER
216
217%if %{with crashreporter}
218export MOZ_DEBUG_SYMBOLS=1
219%endif
220
59c5a0e8 221# Options for 'configure' (same as command-line options).
44be9ed4 222ac_add_options --prefix=%{_prefix}
223ac_add_options --exec-prefix=%{_exec_prefix}
224ac_add_options --bindir=%{_bindir}
225ac_add_options --sbindir=%{_sbindir}
226ac_add_options --sysconfdir=%{_sysconfdir}
227ac_add_options --datadir=%{_datadir}
228ac_add_options --includedir=%{_includedir}
229ac_add_options --libdir=%{_libdir}
230ac_add_options --libexecdir=%{_libexecdir}
231ac_add_options --localstatedir=%{_localstatedir}
232ac_add_options --sharedstatedir=%{_sharedstatedir}
233ac_add_options --mandir=%{_mandir}
234ac_add_options --infodir=%{_infodir}
235%if %{?debug:1}0
59c5a0e8 236ac_add_options --disable-optimize
44be9ed4 237ac_add_options --enable-debug
238ac_add_options --enable-debug-modules
59c5a0e8
SP
239ac_add_options --enable-debugger-info-modules
240ac_add_options --enable-crash-on-assert
44be9ed4 241%else
242ac_add_options --disable-debug
243ac_add_options --disable-debug-modules
59c5a0e8
SP
244ac_add_options --disable-logging
245ac_add_options --enable-optimize="%{rpmcflags} -Os"
44be9ed4 246%endif
88149483
ER
247ac_add_options --disable-strip
248ac_add_options --disable-strip-libs
44be9ed4 249%if %{with tests}
250ac_add_options --enable-tests
251%else
252ac_add_options --disable-tests
253%endif
6458b220 254ac_add_options --enable-gio
44be9ed4 255%if %{with gnomeui}
256ac_add_options --enable-gnomeui
257%else
258ac_add_options --disable-gnomeui
259%endif
44be9ed4 260ac_add_options --disable-gnomevfs
44be9ed4 261%if %{with ldap}
262ac_add_options --enable-ldap
9a743685 263ac_add_options --with-system-ldap
44be9ed4 264%else
265ac_add_options --disable-ldap
266%endif
765a3a27
ER
267%if %{with crashreporter}
268ac_add_options --enable-crashreporter
269%else
59c5a0e8 270ac_add_options --disable-crashreporter
765a3a27 271%endif
59c5a0e8 272ac_add_options --disable-xterm-updates
59c5a0e8 273ac_add_options --enable-postscript
d076d93e 274%if %{with lightning}
cb0e4412 275ac_add_options --enable-calendar
d076d93e
SP
276%else
277ac_add_options --disable-calendar
278%endif
44be9ed4 279ac_add_options --disable-installer
88149483 280ac_add_options --disable-updater
44be9ed4 281ac_add_options --disable-xprint
cadfb931
SP
282ac_add_options --disable-permissions
283ac_add_options --disable-pref-extensions
44be9ed4 284ac_add_options --enable-canvas
285ac_add_options --enable-crypto
44be9ed4 286ac_add_options --enable-mathml
44be9ed4 287ac_add_options --enable-pango
288ac_add_options --enable-reorder
88149483
ER
289ac_add_options --enable-startup-notification
290ac_add_options --enable-svg
44be9ed4 291ac_add_options --enable-system-cairo
5e9bb798 292ac_add_options --enable-system-hunspell
7d981f69 293ac_add_options --enable-system-sqlite
44be9ed4 294ac_add_options --enable-xft
cadfb931
SP
295ac_add_options --enable-application=mail
296ac_add_options --enable-default-toolkit=cairo-gtk2
44be9ed4 297ac_add_options --enable-xinerama
88149483
ER
298ac_add_options --with-distribution-id=org.pld-linux
299ac_add_options --with-branding=icedove/branding
300%if %{with xulrunner}
fac7e24d
JB
301ac_add_options --enable-shared-js
302ac_add_options --with-libxul-sdk=$(pkg-config --variable=sdkdir libxul)
f4114a7f 303ac_add_options --with-system-libxul
88149483
ER
304%endif
305ac_add_options --with-pthreads
306ac_add_options --with-system-bz2
44be9ed4 307ac_add_options --with-system-jpeg
308ac_add_options --with-system-nspr
309ac_add_options --with-system-nss
310ac_add_options --with-system-png
311ac_add_options --with-system-zlib
44be9ed4 312ac_add_options --enable-single-profile
313ac_add_options --disable-profilesharing
44be9ed4 314ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name}
315EOF
316
90e998ba 317%{__make} -j1 -f client.mk build \
d076d93e 318 STRIP="/bin/true" \
765a3a27 319 MOZ_MAKE_FLAGS="%{?_smp_mflags}" \
d076d93e 320 CC="%{__cc}" \
44be9ed4 321 CXX="%{__cxx}"
322
765a3a27
ER
323%if %{with crashreporter}
324# create debuginfo for crash-stats.mozilla.com
325%{__make} -j1 -C obj-%{_target_cpu} buildsymbols
326%endif
327
44be9ed4 328%if %{with enigmail}
59c5a0e8 329cd mailnews/extensions/enigmail
9e7875fc
ER
330./makemake -r -o %{objdir}
331%{__make} -C %{objdir}/mailnews/extensions/enigmail \
d076d93e
SP
332 STRIP="/bin/true" \
333 CC="%{__cc}" \
334 CXX="%{__cxx}"
916d4050
JR
335
336%{__make} -C %{objdir}/mailnews/extensions/enigmail xpi \
337 STRIP="/bin/true" \
338 CC="%{__cc}" \
339 CXX="%{__cxx}"
44be9ed4 340%endif
341
342%install
343rm -rf $RPM_BUILD_ROOT
765a3a27 344install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name},%{_datadir}/%{name},%{_pixmapsdir},%{_desktopdir}}
44be9ed4 345
9e7875fc 346cd %{objdir}
ecf04393 347%{__make} -C mail/installer stage-package \
44be9ed4 348 DESTDIR=$RPM_BUILD_ROOT \
0516fc42 349 MOZ_PKG_DIR=%{_libdir}/%{name} \
44be9ed4 350 PKG_SKIP_STRIP=1
351
9b40a2c3
JB
352%if %{with xulrunner}
353# needed to find mozilla runtime
354ln -s ../xulrunner $RPM_BUILD_ROOT%{_libdir}/%{name}/xulrunner
355%endif
356
357# Enable crash reporter for Thunderbird application
765a3a27
ER
358%if %{with crashreporter}
359%{__sed} -i -e 's/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/' $RPM_BUILD_ROOT%{_libdir}/%{name}/application.ini
360
361# Add debuginfo for crash-stats.mozilla.com
51a3b6db 362install -d $RPM_BUILD_ROOT%{_exec_prefix}/lib/debug%{_libdir}/%{name}
765a3a27
ER
363cp -a mozilla/dist/%{name}-%{version}.en-US.linux-*.crashreporter-symbols.zip $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_libdir}/%{name}
364%endif
365
ecf04393
ER
366# copy manually lightning files, somewhy they are not installed by make
367cp -a mozilla/dist/bin/extensions/calendar-timezones@mozilla.org \
368 mozilla/dist/bin/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103} \
369 $RPM_BUILD_ROOT%{_libdir}/%{name}/extensions
370
44be9ed4 371# move arch independant ones to datadir
372mv $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/chrome
373mv $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults
44be9ed4 374mv $RPM_BUILD_ROOT%{_libdir}/%{name}/isp $RPM_BUILD_ROOT%{_datadir}/%{name}/isp
9e097178 375mv $RPM_BUILD_ROOT%{_libdir}/%{name}/modules $RPM_BUILD_ROOT%{_datadir}/%{name}/modules
eca54e0f 376mv $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins $RPM_BUILD_ROOT%{_datadir}/%{name}/searchplugins
44be9ed4 377ln -s ../../share/%{name}/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome
378ln -s ../../share/%{name}/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults
44be9ed4 379ln -s ../../share/%{name}/isp $RPM_BUILD_ROOT%{_libdir}/%{name}/isp
9e097178 380ln -s ../../share/%{name}/modules $RPM_BUILD_ROOT%{_libdir}/%{name}/modules
eca54e0f 381ln -s ../../share/%{name}/searchplugins $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins
73d54cb2
JB
382%if %{without xulrunner}
383mv $RPM_BUILD_ROOT%{_libdir}/%{name}/res $RPM_BUILD_ROOT%{_datadir}/%{name}/res
384ln -s ../../share/%{name}/res $RPM_BUILD_ROOT%{_libdir}/%{name}/res
385%endif
44be9ed4 386
c6ec3c1c
ER
387# dir for arch independant extensions besides arch dependant extensions
388# see mozilla/xpcom/build/nsXULAppAPI.h
389# XRE_SYS_LOCAL_EXTENSION_PARENT_DIR and XRE_SYS_SHARE_EXTENSION_PARENT_DIR
390install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions
391
73d54cb2 392%if %{without xulrunner}
63d8f5c3 393%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
44be9ed4 394ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
e6bc19b3
ER
395%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/hyphenation
396ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/hyphenation
73d54cb2 397%endif
e6bc19b3 398
0889474f
JR
399%{__sed} -e "s|%MOZAPPDIR%|%{_libdir}/%{name}|" \
400 -e "s|%MOZ_APP_DISPLAYNAME%|Icedove|" \
401 %{topdir}/mozilla/mozilla/build/unix/mozilla.in > $RPM_BUILD_ROOT%{_libdir}/%{name}/icedove
402
44be9ed4 403%{__sed} -e 's,@LIBDIR@,%{_libdir},' %{SOURCE5} > $RPM_BUILD_ROOT%{_bindir}/icedove
404ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/thunderbird
405ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/mozilla-thunderbird
406
52f5507d
ER
407cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
408cp -p %{topdir}/mozilla/icedove/branding/content/icon64.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
44be9ed4 409
e8f4ba81 410# files created by regxpcom -register in post
52fc61e6
ER
411touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/compreg.dat
412touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/xpti.dat
e8f4ba81
ER
413cat << 'EOF' > $RPM_BUILD_ROOT%{_libdir}/%{name}/register
414#!/bin/sh
415umask 022
416# make temporary HOME, as it attempts to touch files in $HOME/.mozilla
417# dangerous if you run this with sudo with keep_env += HOME
418# also TMPDIR could be pointing to sudo user's homedir so we reset that too.
419t=$(mktemp -d)
d50a2a28 420%{__rm} -f %{_libdir}/%{name}/components/{compreg,xpti}.dat
e8f4ba81
ER
421TMPDIR= TMP= HOME=$t %{_libdir}/%{name}/icedove -register
422rm -rf $t
423EOF
424chmod a+rx $RPM_BUILD_ROOT%{_libdir}/%{name}/register
52fc61e6 425
44be9ed4 426%if %{with enigmail}
283702b9 427ext_dir=$RPM_BUILD_ROOT%{_libdir}/%{name}/extensions/\{847b3a00-7ab1-11d4-8f02-006008948af5\}
916d4050 428install -d $ext_dir/{chrome,components,defaults/preferences,modules}
52fc61e6 429cd mozilla/dist/bin
916d4050 430cp -rfLp chrome/enigmail.jar $ext_dir/chrome
52fc61e6
ER
431cp -rfLp components/enig* $ext_dir/components
432cp -rfLp components/libenigmime.so $ext_dir/components
f6a43e2f 433cp -rfLp components/libipc.so $ext_dir/components
52fc61e6
ER
434cp -rfLp components/ipc.xpt $ext_dir/components
435cp -rfLp defaults/preferences/enigmail.js $ext_dir/defaults/preferences
916d4050
JR
436cp -rfLp modules/{commonFuncs,enigmailCommon,keyManagement,pipeConsole,pipeTransport,subprocess}.jsm $ext_dir/modules
437cp -rfLp modules/{subprocess_worker_unix,subprocess_worker_win}.js $ext_dir/modules
52fc61e6 438cd -
52f5507d
ER
439cp -p %{topdir}/mozilla/mailnews/extensions/enigmail/package/install.rdf $ext_dir
440cp -p %{topdir}/mozilla/mailnews/extensions/enigmail/package/chrome.manifest $ext_dir/chrome.manifest
44be9ed4 441%endif
442
9cdc8923
ER
443# never package these. always remove
444# nss
445%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{freebl3,nss3,nssckbi,nssdbm3,nssutil3,smime3,softokn3,ssl3}.*
446# nspr
447%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{nspr4,plc4,plds4}.so
283702b9 448# mozldap
9cdc8923 449%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap,ssldap}60.so
3815090b
ER
450# testpilot quiz
451%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/distribution/extensions/tbtestpilot@labs.mozilla.com.xpi
283702b9 452
44be9ed4 453%clean
454rm -rf $RPM_BUILD_ROOT
455
456%pretrans
457if [ -d %{_libdir}/%{name}/dictionaries ] && [ ! -L %{_libdir}/%{name}/dictionaries ]; then
458 mv -v %{_libdir}/%{name}/dictionaries{,.rpmsave}
459fi
eca54e0f 460for d in chrome defaults icons isp modules res searchplugins; do
44be9ed4 461 if [ -d %{_libdir}/%{name}/$d ] && [ ! -L %{_libdir}/%{name}/$d ]; then
462 install -d %{_datadir}/%{name}
463 mv %{_libdir}/%{name}/$d %{_datadir}/%{name}/$d
464 fi
465done
466exit 0
467
e8f4ba81
ER
468%post
469%{_libdir}/%{name}/register || :
470
44be9ed4 471%files
472%defattr(644,root,root,755)
473%attr(755,root,root) %{_bindir}/icedove
474%attr(755,root,root) %{_bindir}/mozilla-thunderbird
475%attr(755,root,root) %{_bindir}/thunderbird
476%dir %{_libdir}/%{name}
765a3a27 477%{_libdir}/%{name}/application.ini
6b327de6
JB
478%{_libdir}/%{name}/blocklist.xml
479%{_libdir}/%{name}/chrome.manifest
44be9ed4 480%dir %{_libdir}/%{name}/components
44be9ed4 481%{_libdir}/%{name}/components/*.js
482%{_libdir}/%{name}/components/*.xpt
6b327de6
JB
483%{_libdir}/%{name}/components/components.manifest
484%{_libdir}/%{name}/components/interfaces.manifest
73d54cb2
JB
485%attr(755,root,root) %{_libdir}/%{name}/*.sh
486%attr(755,root,root) %{_libdir}/%{name}/*-bin
487%attr(755,root,root) %{_libdir}/%{name}/icedove
488%attr(755,root,root) %{_libdir}/%{name}/register
489%if %{without xulrunner}
490%{_libdir}/%{name}/platform.ini
491%{_libdir}/%{name}/greprefs.js
492%attr(755,root,root) %{_libdir}/%{name}/components/*.so
0516fc42 493%attr(755,root,root) %{_libdir}/%{name}/libmozalloc.so
283702b9 494%attr(755,root,root) %{_libdir}/%{name}/libxpcom.so
0516fc42 495%attr(755,root,root) %{_libdir}/%{name}/libxul.so
44be9ed4 496%attr(755,root,root) %{_libdir}/%{name}/mozilla-xremote-client
cf62736e 497%attr(755,root,root) %{_libdir}/%{name}/plugin-container
73d54cb2 498%endif
44be9ed4 499
500# symlinks
501%{_libdir}/%{name}/chrome
502%{_libdir}/%{name}/defaults
44be9ed4 503%{_libdir}/%{name}/isp
9e097178 504%{_libdir}/%{name}/modules
eca54e0f 505%{_libdir}/%{name}/searchplugins
9b40a2c3
JB
506%if %{with xulrunner}
507%{_libdir}/%{name}/xulrunner
508%else
73d54cb2
JB
509%{_libdir}/%{name}/dictionaries
510%{_libdir}/%{name}/hyphenation
511%{_libdir}/%{name}/res
512%endif
44be9ed4 513
224cf96a
JB
514%{_pixmapsdir}/icedove.png
515%{_desktopdir}/icedove.desktop
44be9ed4 516
517%dir %{_datadir}/%{name}
518%{_datadir}/%{name}/chrome
519%{_datadir}/%{name}/defaults
eca54e0f 520%{_datadir}/%{name}/extensions
44be9ed4 521%{_datadir}/%{name}/isp
9e097178 522%{_datadir}/%{name}/modules
916d4050
JR
523%if %{with enigmail}
524%exclude %{_datadir}/%{name}/modules/commonFuncs.jsm
525%exclude %{_datadir}/%{name}/modules/enigmailCommon.jsm
526%exclude %{_datadir}/%{name}/modules/keyManagement.jsm
527%exclude %{_datadir}/%{name}/modules/pipeConsole.jsm
528%exclude %{_datadir}/%{name}/modules/pipeTransport.jsm
529%exclude %{_datadir}/%{name}/modules/subprocess.jsm
530%exclude %{_datadir}/%{name}/modules/subprocess_worker_unix.js
531%exclude %{_datadir}/%{name}/modules/subprocess_worker_win.js
532%endif
eca54e0f 533%{_datadir}/%{name}/searchplugins
73d54cb2
JB
534%if %{without xulrunner}
535%{_datadir}/%{name}/res
536%endif
44be9ed4 537
765a3a27
ER
538%if %{with crashreporter}
539%attr(755,root,root) %{_libdir}/%{name}/crashreporter
540%{_libdir}/%{name}/crashreporter.ini
541%{_libdir}/%{name}/Throbber-small.gif
542%endif
543
44be9ed4 544%dir %{_libdir}/%{name}/extensions
545%{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
6578c165 546
52fc61e6
ER
547# files created by regxpcom -register
548%ghost %{_libdir}/%{name}/components/compreg.dat
549%ghost %{_libdir}/%{name}/components/xpti.dat
550
6578c165 551%if %{with lightning}
552%files addon-lightning
553%defattr(644,root,root,755)
f3b6d696 554%dir %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}
cf62736e 555%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/application.ini
f3b6d696
ER
556%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome
557%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome.manifest
cf62736e 558%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/defaults
f3b6d696
ER
559%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/install.rdf
560%dir %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components
561%attr(755,root,root) %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.so
f3b6d696 562%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.js
cf62736e
JB
563%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.manifest
564%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.xpt
f3b6d696
ER
565%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/modules
566%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/calendar-js
567%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/timezones.sqlite
6578c165 568%{_libdir}/%{name}/extensions/calendar-timezones@mozilla.org
569%endif
44be9ed4 570
571%if %{with enigmail}
572%files addon-enigmail
573%defattr(644,root,root,755)
f6a43e2f
ER
574%dir %{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}
575%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/defaults
576%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome
577%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome.manifest
578%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/install.rdf
579%dir %{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components
580%attr(755,root,root) %{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/*.so
581%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/*.xpt
582%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/*.js
916d4050
JR
583%dir %{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules
584%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules/*.jsm
585%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules/*.js
44be9ed4 586%endif
This page took 0.884794 seconds and 4 git commands to generate.