thunderbird.spec revision 12940
17400N/A#
17400N/A# Copyright (c) Sun Microsystems, Inc.
17400N/A#
17400N/A# Owner: davelam
17400N/A#
17400N/A
17400N/A#####################################
17400N/A## Package Information Section ##
17400N/A#####################################
17400N/A
17400N/AName: thunderbird
17400N/ASummary: Mozilla Thunderbird Standalone E-mail and Newsgroup Client
17400N/AVersion: 2.0.0.12
17400N/A%define tarball_version 2.0.0.12
17400N/ARelease: 1
17400N/ACopyright: MPL/LGPL
17400N/AGroup: Applications/Internet
17400N/ADistribution:Java Desktop System
17400N/AVendor: Sun Microsystems, Inc.
17400N/ASource: http://ftp.mozilla.org/pub/mozilla.org/%{name}/releases/%{tarball_version}/source/%{name}-%{tarball_version}-source.tar.bz2
17400N/ASource1: thunderbird-icon.png
17400N/ASource2: thunderbird.desktop
17400N/A%define with_lightning %{?!_without_lightning:1}%{?_without_lightning:0}
17400N/A%if %with_lightning
17400N/A%define lightning_version 0.8
17400N/ASource3: http://releases.mozilla.org/pub/mozilla.org/calendar/lightning/releases/%{lightning_version}/source/lightning-sunbird-%{lightning_version}-source.tar.bz2
17400N/A%endif
17400N/ASource4: thunderbird.cfg
17400N/A
17400N/A
17400N/A# owner:davelam date:2005-08-22 type:branding
17400N/A# change install dir from 'name-version' to 'name'
17400N/APatch1: mozilla-01-change-install-dir.diff
17400N/A
17400N/A# owner:evan date:2007-11-28 type:branding
17400N/A# change preference to support multi-language
17400N/APatch2: mozilla-09-locale.diff
17400N/A
17400N/A# owner:davelam date:2005-09-01 type:branding
17400N/A# let moz patch checker support S10 and S11
17400N/APatch3: mozilla-02-no-patch-checker.diff
17400N/A
17400N/A# owner:davelam date:2005-09-05 type:branding
17400N/A# remove gtar specific options
17400N/APatch4: mozilla-05-common-tar-option.diff
17400N/A
17400N/A# owner:davelam date:2006-04-29 type:branding
17400N/A# let firefox use system bundled nss,nspr
17400N/APatch5: thunderbird-09-no-nss-nspr.diff
17400N/A
17400N/A# owner:davelam date:2006-07-07 type:branding
17400N/A# comment LD_LIBRARY_PATH setting
17400N/APatch6: mozilla-07-no-ldlibpath.diff
17400N/A
17400N/A# owner:davelam date:2006-09-07 type:branding
17400N/A# remove moz patch checker from package
17400N/APatch7: thunderbird-10-no-pkg-files.diff
17400N/A
17400N/A# owner:hawklu date:2007-03-21 type:bug
17400N/A# bugster:6535724
17400N/APatch8: thunderbird-13-ldap-crash.diff
17400N/A
17400N/A# owner:hawklu date:2007-04-27 type:branding
17400N/A# bugster:6542910
17400N/APatch9: thunderbird-14-disable-online-update.diff
17400N/A
17400N/A# owner:hawklu date:2007-06-05 type:bug state:upstream
17400N/A# bugster:6284006
17400N/APatch10: thunderbird-15-gconf-error.diff
17400N/A
17400N/A# owner:dcarbery date:2007-06-21 type:bug
17691N/APatch11: mozilla-08-cairo-update.diff
17707N/A
18050N/A# owner:hawklu date:2008-03-26 type:bug state:upstream
18352N/A# bugster:CR6640830 bugzilla 420050
18050N/APatch12: thunderbird-17-change-printing-orientation.diff
17400N/A
17400N/AURL: http://www.sun.com/software/javadesktopsystem/
17400N/A
17400N/ABuildRoot: %{_tmppath}/%{name}-%{tarball_version}-build
17400N/APrefix: /usr
17400N/AProvides: webclient
17400N/AAutoreqprov: on
17400N/A
17400N/A#####################################
17400N/A## Package Defines Section ##
17691N/A#####################################
17691N/A
17691N/A%define _unpackaged_files_terminate_build 0
17691N/A%define _tbdir %{_libdir}/%{name}
17707N/A
17707N/A#####################################
17707N/A## Package Requirements Section ##
18352N/A#####################################
18352N/A
18352N/ABuildRequires: libpng-devel
18352N/ABuildRequires: libjpeg
18050N/ABuildRequires: zlib-devel
18050N/ABuildRequires: zip
18050N/ABuildRequires: perl
18050N/ABuildRequires: autoconf
17400N/ABuildRequires: libIDL-devel
17400N/ABuildRequires: glib2-devel
17400N/ABuildRequires: gtk2-devel
17400N/APrereq: fileutils perl
17400N/APrereq: /usr/bin/killall
17400N/A
17400N/A#####################################
17400N/A## Package Description Section ##
17400N/A#####################################
17400N/A
17400N/A%description
17400N/AMozilla Thunderbird is a standalone e-mail and newsgroup client
17400N/Athat can be used as a companion to Mozilla Firefox or by itself.
17400N/A
17400N/A#####################################
17400N/A## Package Preparation Section ##
17400N/A#####################################
17400N/A
17400N/A%prep
17400N/A
17400N/A%setup -q -c -n %{name}
17400N/Acd ..
17400N/A/bin/mv %{name} %{name}.tmp.$$
17400N/A/bin/mv %{name}.tmp.$$/mozilla %{name}
17400N/Arm -rf %{name}.tmp.$$
17400N/A%if %with_lightning
17400N/A/usr/sfw/bin/gtar -jxf %{SOURCE3} \
17400N/A mozilla/calendar \
17400N/A mozilla/extensions/lightning
17400N/Achmod -Rf a+rX,g-w,o-w mozilla
17400N/Arm -rf %{name}/calendar
17400N/Arm -rf %{name}/extensions/lightning
17400N/Amv mozilla/calendar %{name}/
17400N/Amv mozilla/extensions/lightning %{name}/extensions/
17400N/Arm -rf mozilla
17400N/A%endif
17400N/A
17400N/Acd %{name}
17400N/A%patch1 -p1
17400N/A%patch2 -p1
17400N/A%ifos solaris
17400N/A%patch3 -p1
17400N/A%patch4 -p1
17400N/A%patch5 -p1
17400N/A%patch6 -p1
17400N/A%patch7 -p1
17400N/A%endif
17400N/A%patch8 -p1
17400N/A%patch9 -p1
17400N/A%patch10 -p1
17400N/A%patch11 -p1
17400N/A%patch12 -p1
17400N/A
17400N/A#####################################
17400N/A## Package Build Section ##
17400N/A#####################################
17400N/A
17400N/A%build
17400N/A
17400N/A%ifos linux
17400N/Aif [ -x /usr/bin/getconf ]; then
17400N/A CPUS=`getconf _NPROCESSORS_ONLN`
17400N/Afi
17400N/A%else
17400N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
17400N/A%endif
17400N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
17400N/A CPUS=1
17400N/Afi
17400N/A
17400N/Acat << "EOF" > .mozconfig
17400N/A. $topsrcdir/mail/config/mozconfig
17400N/Amk_add_options BUILD_OFFICIAL=1
17400N/Amk_add_options MOZILLA_OFFICIAL=1
17400N/Aac_add_options --prefix=%{_prefix}
17400N/Aac_add_options --libdir=%{_libdir}
ac_add_options --mandir=%{_mandir}
ac_add_options --enable-xft
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --disable-static
ac_add_options --enable-shared
ac_add_options --enable-official-branding
ac_add_options --disable-updater
ac_add_options --disable-tests
ac_add_options --disable-freetype2
ac_add_options --disable-auto-deps
ac_add_options --disable-debug
EOF
%if %with_lightning
echo "ac_add_options --enable-extensions=default,lightning" >> .mozconfig
%endif
BUILD_OFFICIAL=1
MOZILLA_OFFICIAL=1
MOZ_PKG_FORMAT=BZ2
PKG_SKIP_STRIP=1
#CFLAGS=
#CXXFLAGS=
export BUILD_OFFICIAL MOZILLA_OFFICIAL MOZ_PKG_FORMAT PKG_SKIP_STRIP CFLAGS CXXFLAGS
./configure
make export
# FIXME: disabled parallel build as it seems to break the build sometimes
make libs
cd xpinstall/packager
make
%install
/bin/rm -rf $RPM_BUILD_ROOT
BUILDDIR=`pwd`
/bin/mkdir -p $RPM_BUILD_ROOT%{_libdir}
cd $RPM_BUILD_ROOT%{_libdir}
/usr/bin/bzip2 -dc $BUILDDIR/dist/thunderbird-*.tar.bz2 | /bin/tar -xf -
/bin/mkdir -p $RPM_BUILD_ROOT%{_bindir}
/bin/ln -s ../lib/thunderbird/thunderbird $RPM_BUILD_ROOT%{_bindir}/thunderbird
/bin/mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
/bin/mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
install -c -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/pixmaps/thunderbird-icon.png
install -c -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/applications/thunderbird.desktop
# install the man page
#/bin/mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
#install -c -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man1/thunderbird.1
#/bin/cat %{SOURCE3} | /usr/bin/sed -e 's,FFDIR,%{_tbdir},g' > \
# $RPM_BUILD_ROOT%{_tbdir}/thunderbird-rebuild-databases
#/bin/chmod 755 $RPM_BUILD_ROOT%{_tbdir}/thunderbird-rebuild-databases
# remove the empty directories
# cpu/sparcv8plus/libnspr_flt4.so is not packaged
# since we use system bundled version of nss/nspr
%ifarch sparc
rmdir $RPM_BUILD_ROOT%{_tbdir}/cpu/sparcv8plus
rmdir $RPM_BUILD_ROOT%{_tbdir}/cpu
%endif
# create symbol link libnssckbi.so -> /usr/lib/mps/libnssckbi.so
# to fix bug CR#6459752
ln -s ../mps/libnssckbi.so $RPM_BUILD_ROOT%{_tbdir}/libnssckbi.so
# install thunderbird.cfg
install -c -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_tbdir}/thunderbird.cfg
# remove local dictionary and share the one that delivered
# by myspell-dictionary
rm -f $RPM_BUILD_ROOT%{_tbdir}/dictionaries/en-US.dic
rm -f $RPM_BUILD_ROOT%{_tbdir}/dictionaries/en-US.aff
rmdir $RPM_BUILD_ROOT%{_tbdir}/dictionaries
%clean
/bin/rm -rf $RPM_BUILD_ROOT
#########################################
## Package Post[Un] Install Section ##
#########################################
%post
# run ldconfig before regxpcom
/sbin/ldconfig >/dev/null 2>/dev/null
%postun
/sbin/ldconfig >/dev/null 2>/dev/null
%preun
#####################################
## Package Files Section ##
#####################################
%files
%defattr(-,root,root)
%dir %{_tbdir}
%{_tbdir}/*
%{_bindir}/thunderbird
#%{_mandir}/man1/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}-icon.png
%changelog
* Thu April 24 2008 - brian.lu@sun.com
- bump lightning to 0.8
* Wed Mar 26 2008 - brian.lu@sun.com
- Fix bug CR6640830
* Thu Feb 28 2008 - dave.lin@sun.com
- bump to TB 2.0.0.12
* Fir Nov 28 2007 - evan.yan@sun.com
- replace thunderbird-08-locale.diff with mozilla-09-locale.diff, to correct our
way of supporting multi-language
* Mon Nov 19 2007 - dave.lin@sun.com
- bump to TB 2.0.0.9
- remove patch thunderbird-16-crash-with-some-themes.diff since it has been upstreamed
* Tue Nov 13 2007 - brian.lu@sun.com
- Add patch, thunderbird-16-crash-with-some-themes.diff
to fix 'thunderbird crashing under some themes' bug CR6586103
* Fri Nov 02 2007 - dave.lin@sun.com
- bump lightning to 0.7
* Fri Aug 03 2007 - dave.lin@sun.com
- bump to 2.0.0.6
* Mon Jun 23 2007 - dave.lin@sun.com
- bump to 2.0.0.5
* Thu Jun 21 2007 - damien.carbery@sun.com
- Add patch, mozilla-08-cairo-update.diff, to update the private copy of
cairo.h used in the build.
* Tue June 05 2007 - brian.lu@sun.com
- 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
- add patch to grey out "Check for Updates" in Thunderbird menu since it's not supported
* Sat Apr 21 2007 - dave.lin@sun.com
- Bump to 2.0.0.0
* Thu Apr 12 2007 - dave.lin@sun.com
- bump to 2.0.0.0rc1, removed the patches thunderbird-11-drag-and-drop.diff,
thunderbird-12-defaultAccount.diff which are upstreamed in this release
* Thu Apr 12 2007 - dave.lin@sun.com
- disable update feature in Thunderbird menu since it's not supported
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
* Fri Nov 17 2006 - dave.lin@sun.com
- add patch comments
* Mon Nov 13 2006 - dave.lin@sun.com
- change the version to 1.5.0.8 since 2.0a1 could not be able to integrated
into SNV, and add patches mozilla-03-s11s-smkfl.diff, mozilla-04-s11x-smkfl.diff
back because they're not upstreamed in the branch that for Thunderbird 1.5.x
* Thu Sep 07 2006 - dave.lin@sun.com
- add patch thunderbird-10-no-pkg-files.diff to remove patch checker scripts
since it's unnecessary to deliver them with the bundled version
- change the version 2.0a1 to 2.0 to comply WOS integration rules
- re-organize the patch list
* Mon Aug 28 2006 - dave.lin@sun.com
- create symbol link libnssckbi.so -> /usr/lib/mps/libnssckbi.so
to fix bug CR#6459752
* Tue Aug 08 2006 - dave.lin@sun.com
- bump version to 2.0a1
- remove the patch mozilla-03-s11s-smkfl.diff, mozilla-04-s11x-smkfl.diff
which have been fixed in 2.0a1
- change to xpinstall/packager to run the make to generate the binary tarball
* Mon Jul 31 2006 - dave.lin@sun.com
- bump to 1.5.0.5
* Fri Jul 07 2006 - dave.lin@sun.com
- add patch mozilla-07-no-ldlibpath.diff to remove the LD_LIBRARY_PATH in
- change to "disable-static, enable-shared" per Brian Lu
* Wed Jun 21 2006 - dave.lin@sun.com
- remove patch thunderbird-07-ldap-prefs.diff to fix bug CR#6344861
* Fri Jun 02 2006 - dave.lin@sun.com
- bump src version to 1.5.0.4
* Sat Apr 29 2006 - halton.huo@sun.com
- Add patch thunderbird-09-no-nss-nspr.diff to not deliver the nss,nspr
* Fri Apr 27 2006 - damien.carbery@sun.com
- Remove patch 9 as it is not in svn and breaks build.
* Fri Apr 27 2006 - dave.lin@sun.com
- change to not deliver the devel pkg
- add patch thunderbird-09-no-nss-nspr.diff to not deliver the nss,nspr
libraries, and use firefox's instead
- 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
- Changed the installation location from "/usr/sfw/lib" to "/usr/lib"
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
* Thu Nov 1 2005 - laca@sun.com
- change version to numeric and introduce %tarball_version
* Fri Oct 21 2005 - <halton.huo@sun.com>
- Bump to 1.5b2.
- Add patch 307041 from bugzilla.
* Mon Sep 26 2005 - <halton.huo@sun.com>
- Bump to 1.5b1.
- Move dir mozilla to thunderbird after tarball unpacking.
* Thu Sep 08 2005 - damien.carbery@sun.com
- Change BuildPrereq to BuildRequires, a format that build-gnome2 understands.
* Mon Sep 05 2005 - Dave Lin <dave.lin@sun.com>
- Add patches to remove the specific gtar options
- Set MOZ_PKG_FORMAT=BZ2 to keep consistent of tarball
format between linux and solaris
* Fri Sep 02 2005 - damien.carbery@sun.com
- Change gtar to tar and rework tar command.
* Mon Aug 22 2005 - Dave Lin <dave.lin@sun.com>
- initial version of the spec file created