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