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