thunderbird.spec revision 20829
#
# Copyright (c) Sun Microsystems, Inc.
#
# bugdb: bugzilla.mozilla.org
#
#####################################
## Package Information Section ##
#####################################
Version: 6.0
Release: 1
Source: http://ftp.mozilla.org/pub/mozilla.org/%{name}/releases/%{tarball_version}/source/%{name}-%{tarball_version}.source.tar.bz2
Source3: http://ftp.mozilla.org/pub/mozilla.org/calendar/lightning/releases/1.0b5/source/lightning-1.0b5-source.tar.bz2
#####################################
## Package Defines Section ##
#####################################
#####################################
## Thunderbird patches ##
#####################################
# Tmp patch 1.0b5 for thunderbird 6.0
# owner:lin date:2011-08-19 type:feature
# owner:ginnchen date:2008-10-15 type:feature
# bugzilla:457196
# owner:hawklu date:2009-09-03 type:bug doo:1114
# owner:hawklu date:2009-12-31 type:bug bugzilla:537210
# owner:migi date:2011-02-14 type:bug d.o.o 14555
#####################################
## Reuse firefox patches ##
#####################################
# owner:hawklu date:2007-11-28 type:branding
# change preference to support multi-language
# owner:ginnchen date:2011-03-07 type:feature
# See CR#6962345
# owner:fujiwara date:2008-04-10 type:bug
# bugster:6686579 bugzilla:285267
# owner:ginnchen date:2008-08-19 type:bug
# bugster:6724471 bugzilla:451007
# owner:ginnchen date:2011-03-07 type:bug
# bugzilla:526977 bugs.freedesktop.org:24995
# owner:ginnchen date:2008-10-15 type:feature
# bugzilla:457196
# owner:ginnchen date:2011-03-07 type:bug
# owner:ginnchen date:2009-05-21 type:branding
# owner:ginnchen date:2011-03-07 type:feature
# owner:ginnchen date:2011-07-18 type:bug
# owner:ginnchen date:2011-04-18 type:feature
# owner:hawklu date:2008-12-16 type:branding
# owner:hawklu date:2008-04-20 type:branding
# owner:davelam date:2009-03-02 type:branding
# owner:hawklu date:2009-05-22 type:branding
# owner:ginnchen date:2009-11-25 type:branding
# owner:ginnchen date:2011-03-08 type:bug
# owner:ginnchen date:2011-03-08 type:bug
# owner:ginnchen date:2011-03-08 type:feature
# owner:ginnchen date:2010-12-10 type:feature
# owner:ginnchen date:2011-03-08 type:feature
# See CR#7023690
# owner:ginnchen date:2011-03-08 type:bug
# owner:ginnchen date:2011-03-08 type:bug
# owner:ginnchen date:2010-03-04 type:branding
# owner:ginnchen date:2011-06-20 type:feature
# owner:ginnchen date:2010-03-14 type:feature
# owner:ginnchen date:2011-04-06 type:feature bugzilla:610323
# owner:ginnchen date:2010-03-14 type:feature
# owner:ginnchen date:2010-03-14 type:bug bugzilla:572983
# owner:ginnchen date:2010-03-14 type:bug
# owner:ginnchen date:2010-05-12 type:bug
# owner:ginnchen date:2010-06-20 type:branding
# owner:ginnchen date:2010-07-18 type:bug bugzilla:673862 status:upstream
# owner:ginnchen date:2010-06-01 type:bug bugzilla:657874 status:upstream
# owner:ginnchen date:2010-06-20 type:branding
# owner:ginnchen date:2010-06-20 type:branding
# owner:ginnchen date:2010-07-18 type:bug bugzilla:674468 status:upstream
# owner:ginnchen date:2010-07-04 type:bug bugzilla:665406 status:upstream
# owner:ginnchen date:2010-07-04 type:branding
# for snv_168 or later
#####################################
## Package Description Section ##
#####################################
#####################################
## Package Preparation Section ##
#####################################
%prep
#
# Prepare toolchains under dir %{name}
#
#
# Replace lightning source code.
#
cd lightning
cd ..
# Remove ja-JP-mac line and unused l10n and change ja linux ... to ja
sed -i "/^[ \t]*\(ja-JP-mac.*\|da\|en-GB\|et\|eu\|fy-NL\|ga-IE\|gd\|id\|is\|pa-IN\|sq\|sr\)[ \t]*$/d; s/^ja[ \t]\+.*$/ja/" %{moz_srcdir}/calendar/locales/shipped-locales
# Lightning l10n
#####################################
## Adding firefox patches ##
#####################################
cd %{moz_srcdir}/mozilla
%if %option_with_debug
#%patch8 -p1
#%patch24 -p1
#####################################
## Original adding patches ##
#####################################
# go back to the thunderbird directory
cd ..
# %patch528 -p1
#####################################
## Package Build Section ##
#####################################
CPUS=1
fi
export LDFLAGS="-B direct -z ignore"
export CFLAGS="-xlibmopt"
export OS_DEFINES="-D__USE_LEGACY_PROTOTYPES__"
export CXXFLAGS="-xlibmil -xlibmopt -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
#
# Build toolchains
#
cd yasm*
#export YASM=${SRCDIR}/sol_toolchain/bin/yasm
#export LIBJPEG_TURBO_AS=${SRCDIR}/sol_toolchain/bin/yasm
cd ${SRCDIR}
%if %option_with_debug
#ac_add_options --enable-tests
%else
# ac_add_options --with-system-nspr
# ac_add_options --with-system-nss
#
# Thunderbird specific
#
# ac_add_options --enable-system-cairo
export DISABLE_LIGHTNING_INSTALL=1
export BUILD_OFFICIAL=1
export MOZILLA_OFFICIAL=1
export MOZ_PKG_FORMAT=BZ2
export PKG_SKIP_STRIP=1
# Build src
cd ${SRCDIR}/%{moz_objdir}
# Build package
# Build lightning l10n
for i in $(<${SRCDIR}/%{moz_srcdir}/calendar/locales/shipped-locales); do make AB_CD=all L10N_XPI_NAME=lightning-all libs-$i; done;
cd $RPM_BUILD_ROOT%{_libdir}
cd %{lightning_dir}
# Add zh-TW
sed -i "/zh-TW/{p
s/zh-TW/zh-HK/g}" chrome.manifest
cd chrome
# remove local dictionary and share the one that delivered
# by myspell-dictionary
- Fix the bug CR6284006: GConf Error: Bad key or directory name: "desktop/gnome/url-handlers/GMT+00/command": `+' messages
* Mon Apr 30 2007 - dave.lin@sun.com
- remove local dictionary and use the one delivered by myspell-dictionary(CR6218511)
* Thu Apr 27 2007 - brian.lu@sun.com
on Solaris so far(CR#6542910)
* Wed Mar 23 2007 - brian.lu@sun.com
- Fix the bug CR6535724:Thunderbird crashes with LDAP in snv 60
* Mon Mar 12 2007 - brian.lu@sun.com
- Fix the bug CR6530327
* Sat Mar 10 2007 - dougs@truemail.co.th
- Fixed URL for lightning
* Sat Mar 03 2007 - dave.lin@sun.com
- bump lightning version to 0.3.1
* Thu Feb 01 2007 - brian.lu@sun.com
- fix drag and drop crashing bug CR6519257
- bugzilla id 367203. The patch has been put into upstream
* Sun Jan 28 2007 - laca@sun.com
- add full download url for lightning
* Fri Jan 26 2007 - dave.lin@sun.com
- enable lightning extension(0.3) in Thunderbird
* Wed Jan 24 2007 - dave.lin@sun.com
- bump version to 2.0b2
* Thu Dec 28 2006 - dave.lin@sun.com
- change the patch type to branding for some patches in patch comments
- bump version to 2.0b1 and remove mozilla-03-s11s-smkfl.diff,
mozilla-04-s11x-smkfl.diff since they're upstreamed in that branch
* Thu Sep 07 2006 - dave.lin@sun.com
- add patch thunderbird-10-no-pkg-files.diff to remove patch checker scripts
- create symbol link libnssckbi.so -> /usr/lib/mps/libnssckbi.so
* Sat Apr 29 2006 - halton.huo@sun.com
* Fri Apr 27 2006 - damien.carbery@sun.com
- remove patch mozilla-06-skip-strip.diff, use another simple way to skip
strip instead, setting PKG_SKIP_STRIP=1
* Fri Apr 21 2006 - dave.lin@sun.com
- bump to 1.5.0.2, remove patch 06 thunderbird-06-save-all-attach.diff,
which is already upstreamed
* Fri Apr 14 2006 - dave.lin@sun.com
- add patch mozilla-06-skip-strip.diff to make no stripped libraries
- add patch firefox-13-locale.diff to make firefox automatically
pick up locale setting from user environment and start up in
that locale
* Thu Apr 13 2006 - dave.lin@sun.com
on Solaris
* Fri Mar 10 2006 -halton.huo@sun.com
- Add patch thunderbird-06-save-all-attach.diff to fix 6373061.
- Add patch thunderbird-07-ldap-prefs.diff to fix CR6344861.
* Tue Jan 17 2006 - dave.lin@sun.com
- Bump tarball version to 1.5
- add two configure options --enable-static, --disable-shared
- to get rid of intermedia shared libraries
- disable parallel build option
* Tue Nov 08 2005 - dave.lin@sun.com
- Bump tarball version to 1.5rc1
- Remove the patch mozilla-07-bz307041.diff since it's upstreamed in 1.5rc1 already
* Fri Oct 21 2005 - <halton.huo@sun.com>
* Mon Sep 26 2005 - <halton.huo@sun.com>
* Thu Sep 08 2005 - damien.carbery@sun.com
* Fri Sep 02 2005 - damien.carbery@sun.com