thunderbird.spec revision 15191
10139N/A#
10139N/A# Copyright (c) Sun Microsystems, Inc.
10139N/A#
10139N/A# Owner: davelam
10139N/A# bugdb: bugzilla.mozilla.org
20185N/A#
10139N/A
10139N/A#####################################
10139N/A## Package Information Section ##
17185N/A#####################################
10139N/A
11314N/AName: thunderbird
10139N/ASummary: Mozilla Thunderbird Standalone E-mail and Newsgroup Client
10139N/AVersion: 2.0.0.17
11314N/A%define tarball_version 2.0.0.17
11314N/ARelease: 1
11328N/ACopyright: MPL/LGPL
11314N/AGroup: Applications/Internet
11314N/ADistribution:Java Desktop System
11314N/AVendor: Sun Microsystems, Inc.
11314N/ASource: http://ftp.mozilla.org/pub/mozilla.org/%{name}/releases/%{tarball_version}/source/%{name}-%{tarball_version}-source.tar.bz2
10139N/ASource1: thunderbird-icon.png
10139N/ASource2: thunderbird.desktop
10139N/A%define with_lightning %{?!_without_lightning:1}%{?_without_lightning:0}
18688N/A%if %with_lightning
18688N/A%define lightning_version 0.9
10139N/ASource3: http://releases.mozilla.org/pub/mozilla.org/calendar/sunbird/releases/%{lightning_version}/source/lightning-sunbird-%{lightning_version}-source.tar.bz2
10139N/A%endif
11965N/ASource4: thunderbird.cfg
10139N/A
12679N/A
19099N/A# owner:davelam date:2005-08-22 type:branding
10139N/A# change install dir from 'name-version' to 'name'
10139N/APatch1: mozilla-01-change-install-dir.diff
10139N/A
15760N/A# owner:evan date:2007-11-28 type:branding
10139N/A# change preference to support multi-language
19142N/APatch2: mozilla-09-locale.diff
14140N/A
10139N/A# owner:davelam date:2005-09-01 type:branding
10139N/A# let moz patch checker support S10 and S11
16351N/APatch3: mozilla-02-no-patch-checker.diff
18993N/A
20239N/A# owner:davelam date:2005-09-05 type:branding
10139N/A# remove gtar specific options
18993N/APatch4: mozilla-05-common-tar-option.diff
10139N/A
10139N/A# owner:davelam date:2006-04-29 type:branding
20054N/A# let firefox use system bundled nss,nspr
20054N/APatch5: thunderbird-09-no-nss-nspr.diff
10139N/A
10139N/A# owner:davelam date:2006-07-07 type:branding
10139N/A# comment LD_LIBRARY_PATH setting
19142N/APatch6: mozilla-07-no-ldlibpath.diff
10139N/A
14140N/A# owner:davelam date:2006-09-07 type:branding
18688N/A# remove moz patch checker from package
18688N/APatch7: thunderbird-10-no-pkg-files.diff
14140N/A
14140N/A# owner:hawklu date:2007-03-21 type:bug bugzilla:446374
14140N/A# bugster:6535724
19142N/APatch8: thunderbird-13-ldap-crash.diff
16351N/A
14140N/A# owner:hawklu date:2007-04-27 type:branding
20777N/A# bugster:6542910
20777N/APatch9: thunderbird-14-disable-online-update.diff
20777N/A
20777N/A# owner:hawklu date:2007-06-05 type:bug state:upstream
20777N/A# bugster:6284006
20777N/APatch10: thunderbird-15-gconf-error.diff
20777N/A
20777N/A# owner:dcarbery date:2007-06-21 type:bug
20777N/APatch11: mozilla-08-cairo-update.diff
10139N/A
20054N/A# owner:hawklu date:2008-03-26 type:bug state:upstream
10139N/A# bugster:CR6640830 bugzilla 420050
10139N/APatch12: thunderbird-17-change-printing-orientation.diff
10139N/A
19142N/A%if %option_with_indiana_branding
10139N/A# owner:ginnchen date:2008-06-02 type:branding
10139N/A# bugzilla:359777 doo:513,2019
10139N/A# We don't want this patch on Solaris Nevada, because in Thunderbird 2
10139N/A# on Nevada the hardcoded fonts look better than the default ones
11314N/APatch13: thunderbird-18-remove-hardcoded-fontname.diff
11314N/A%endif
11314N/A
11314N/A#%if %with_lightning
11314N/A#Patch14: thunderbird-19-move-libraries-to-platform-specific-dir.diff
11314N/A#%endif
11314N/A
11314N/A# owner:hawklu date:2008-09-26 type:bug
10139N/A# bugster:CR6752288 bugzilla:4407147
11965N/APatch15: thunderbird-20-remove-core-file-checking.diff
11965N/A
11965N/A%if %option_with_indiana_branding
10139N/A# owner:alfred date:2008-10-10 type:bug bugster:6750518
10139N/APatch16: thunderbird-21-ksh.diff
10139N/A%endif
10139N/A
10139N/AURL: http://www.sun.com/software/javadesktopsystem/
10139N/A
11314N/ABuildRoot: %{_tmppath}/%{name}-%{tarball_version}-build
11314N/APrefix: /usr
11314N/AProvides: webclient
11314N/AAutoreqprov: on
11314N/A
10139N/A#####################################
10139N/A## Package Defines Section ##
10139N/A#####################################
11321N/A
11321N/A%define _unpackaged_files_terminate_build 0
11321N/A%define _tbdir %{_libdir}/%{name}
11321N/A
11321N/A#####################################
11321N/A## Package Requirements Section ##
11965N/A#####################################
11965N/A
11965N/ABuildRequires: libpng-devel
10139N/ABuildRequires: libjpeg
11314N/ABuildRequires: zlib-devel
12633N/ABuildRequires: zip
11314N/ABuildRequires: perl
11314N/ABuildRequires: autoconf
11314N/ABuildRequires: libIDL-devel
11314N/ABuildRequires: glib2-devel
10139N/ABuildRequires: gtk2-devel
15783N/APrereq: fileutils perl
15783N/APrereq: /usr/bin/killall
15783N/A
15783N/A#####################################
15783N/A## Package Description Section ##
15783N/A#####################################
15783N/A
15783N/A%description
20071N/AMozilla Thunderbird is a standalone e-mail and newsgroup client
10139N/Athat can be used as a companion to Mozilla Firefox or by itself.
10139N/A
20071N/A#####################################
10139N/A## Package Preparation Section ##
10139N/A#####################################
15161N/A
15783N/A%prep
15161N/A
15161N/A%setup -q -c -n %{name}
15161N/Acd ..
15161N/A/bin/mv %{name} %{name}.tmp.$$
15760N/A/bin/mv %{name}.tmp.$$/mozilla %{name}
15161N/Arm -rf %{name}.tmp.$$
19895N/A%if %with_lightning
19911N/A/usr/sfw/bin/gtar -jxf %{SOURCE3} \
19895N/A mozilla/calendar \
20185N/A mozilla/extensions/lightning
10139N/Achmod -Rf a+rX,g-w,o-w mozilla
10139N/Arm -rf %{name}/calendar
10139N/Arm -rf %{name}/extensions/lightning
10139N/Amv mozilla/calendar %{name}/
10139N/Amv mozilla/extensions/lightning %{name}/extensions/
10139N/Arm -rf mozilla
10139N/A%endif
10139N/A
10139N/Acd %{name}
10139N/A%patch1 -p1
10139N/A%patch2 -p1
10139N/A%ifos solaris
10139N/A%patch3 -p1
10139N/A%patch4 -p1
10139N/A%patch5 -p1
10139N/A%patch6 -p1
10139N/A%patch7 -p1
10139N/A%endif
10139N/A%patch8 -p1
10139N/A%patch9 -p1
10139N/A%patch10 -p1
10139N/A%patch11 -p1
10139N/A%patch12 -p1
10139N/A%if %option_with_indiana_branding
10139N/A%patch13 -p1
10139N/A%endif
10139N/A#%if %with_lightning
10139N/A#%patch14 -p1
10139N/A#%endif
10139N/A%patch15 -p1
10139N/A%if %option_with_indiana_branding
10139N/A%patch16 -p1
10139N/A%endif
10139N/A
10139N/A#####################################
10139N/A## Package Build Section ##
10139N/A#####################################
10139N/A
10139N/A%build
10139N/A
10139N/A%ifos linux
10139N/Aif [ -x /usr/bin/getconf ]; then
10139N/A CPUS=`getconf _NPROCESSORS_ONLN`
10139N/Afi
10139N/A%else
10139N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10139N/A%endif
10139N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10139N/A CPUS=1
10139N/Afi
10139N/A
10139N/Acat << "EOF" > .mozconfig
10139N/A. $topsrcdir/mail/config/mozconfig
10139N/Amk_add_options BUILD_OFFICIAL=1
10139N/Amk_add_options MOZILLA_OFFICIAL=1
10139N/Aac_add_options --prefix=%{_prefix}
10139N/Aac_add_options --libdir=%{_libdir}
10139N/Aac_add_options --mandir=%{_mandir}
10139N/Aac_add_options --enable-xft
10139N/Aac_add_options --enable-default-toolkit=gtk2
10139N/Aac_add_options --disable-static
10139N/Aac_add_options --enable-shared
10139N/Aac_add_options --enable-official-branding
10139N/Aac_add_options --disable-updater
20777N/Aac_add_options --disable-tests
20777N/Aac_add_options --disable-freetype2
20777N/Aac_add_options --disable-auto-deps
20777N/Aac_add_options --disable-debug
11020N/AEOF
10139N/A
10139N/A%if %with_lightning
10139N/Aecho "ac_add_options --enable-extensions=default,lightning" >> .mozconfig
14320N/A%endif
14320N/A
14320N/ABUILD_OFFICIAL=1
14320N/AMOZILLA_OFFICIAL=1
14320N/AMOZ_PKG_FORMAT=BZ2
14320N/APKG_SKIP_STRIP=1
10139N/A#CFLAGS=
10139N/A#CXXFLAGS=
16015N/Aexport BUILD_OFFICIAL MOZILLA_OFFICIAL MOZ_PKG_FORMAT PKG_SKIP_STRIP CFLAGS CXXFLAGS
10139N/A
16015N/A./configure
10139N/Amake export
18850N/A# FIXME: disabled parallel build as it seems to break the build sometimes
14140N/Amake libs
14140N/A
14140N/Acd xpinstall/packager
14320N/Amake
14320N/A
14320N/A%install
14320N/A/bin/rm -rf $RPM_BUILD_ROOT
14140N/A
20777N/ABUILDDIR=`pwd`
20777N/A/bin/mkdir -p $RPM_BUILD_ROOT%{_libdir}
20777N/Acd $RPM_BUILD_ROOT%{_libdir}
20777N/A/usr/bin/bzip2 -dc $BUILDDIR/dist/thunderbird-*.tar.bz2 | /bin/tar -xf -
20777N/A
10139N/A/bin/mkdir -p $RPM_BUILD_ROOT%{_bindir}
10139N/A/bin/ln -s ../lib/thunderbird/thunderbird $RPM_BUILD_ROOT%{_bindir}/thunderbird
10139N/A
20182N/A/bin/mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
15163N/A/bin/mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
15163N/Ainstall -c -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/pixmaps/thunderbird-icon.png
15163N/Ainstall -c -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/applications/thunderbird.desktop
15760N/A
10139N/A# install the man page
10139N/A#/bin/mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
10139N/A#install -c -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man1/thunderbird.1
20071N/A
20071N/A#/bin/cat %{SOURCE3} | /usr/bin/sed -e 's,FFDIR,%{_tbdir},g' > \
20071N/A# $RPM_BUILD_ROOT%{_tbdir}/thunderbird-rebuild-databases
10139N/A#/bin/chmod 755 $RPM_BUILD_ROOT%{_tbdir}/thunderbird-rebuild-databases
10139N/A
19911N/A# remove the empty directories
20182N/A# cpu/sparcv8plus/libnspr_flt4.so is not packaged
19911N/A# since we use system bundled version of nss/nspr
20182N/A%ifarch sparc
10139N/Armdir $RPM_BUILD_ROOT%{_tbdir}/cpu/sparcv8plus
10139N/Armdir $RPM_BUILD_ROOT%{_tbdir}/cpu
10139N/A%endif
10139N/A
10139N/A# create symbol link libnssckbi.so -> /usr/lib/mps/libnssckbi.so
10139N/A# to fix bug CR#6459752
10139N/Aln -s ../mps/libnssckbi.so $RPM_BUILD_ROOT%{_tbdir}/libnssckbi.so
10139N/A
10139N/A# install thunderbird.cfg
10139N/Ainstall -c -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_tbdir}/thunderbird.cfg
10139N/A
10139N/A# remove local dictionary and share the one that delivered
10139N/A# by myspell-dictionary
10139N/Arm -f $RPM_BUILD_ROOT%{_tbdir}/dictionaries/en-US.dic
10139N/Arm -f $RPM_BUILD_ROOT%{_tbdir}/dictionaries/en-US.aff
10139N/Armdir $RPM_BUILD_ROOT%{_tbdir}/dictionaries
10139N/A
10139N/A%clean
20777N/A/bin/rm -rf $RPM_BUILD_ROOT
20777N/A
20185N/A#########################################
20185N/A## Package Post[Un] Install Section ##
19911N/A#########################################
19911N/A
18850N/A%post
18850N/A# run ldconfig before regxpcom
16015N/A/sbin/ldconfig >/dev/null 2>/dev/null
16015N/A
15783N/A%postun
15783N/A/sbin/ldconfig >/dev/null 2>/dev/null
15760N/A
15760N/A%preun
15161N/A
15161N/A#####################################
15783N/A## Package Files Section ##
15783N/A#####################################
14320N/A
14320N/A%files
14140N/A%defattr(-,root,root)
14140N/A%dir %{_tbdir}
14140N/A%{_tbdir}/*
14140N/A%{_bindir}/thunderbird
13931N/A#%{_mandir}/man1/*
13931N/A%{_datadir}/applications/%{name}.desktop
12679N/A%{_datadir}/pixmaps/%{name}-icon.png
12679N/A
12633N/A%changelog
12633N/A* Oct 10 2008 - alfred.peng@sun.com
12633N/A- Add thunderbird-21-ksh.diff for indiana only to fix bugster CR6750518.
12633N/A* Man 06 2008 - brian.lu@sun.com
12181N/A- Bump lightning to 0.9
12181N/A* Sat Sep 27 2008 - ginn.chen@sun.com
12181N/A- Bump to 2.0.0.17
11965N/A* Fri Sep 26 2008 - brian.lu@sun.com
11965N/A- Fix the bug CR6752288
11366N/A* Tue Jul 29 2008 - brian.lu@sun.com
11366N/A- bump to 2.0.0.16
11366N/A* Mon Jul 21 2008 - ginn.chen@sun.com
11323N/A- Add bugdb info.
11328N/A* Mon Jun 02 2008 - ginn.chen@sun.com
11328N/A- Add indiana branding patch: thunderbird-18-remove-hardcoded-fontname.diff
11323N/A* Mon May 05 2008 - dave.lin@sun.com
11321N/A- bump to 2.0.0.14
11321N/A* Thu April 24 2008 - brian.lu@sun.com
11314N/A- bump lightning to 0.8
11314N/A* Wed Mar 26 2008 - brian.lu@sun.com
11314N/A- Fix bug CR6640830
11020N/A* Thu Feb 28 2008 - dave.lin@sun.com
11020N/A- bump to TB 2.0.0.12
11020N/A* Fir Nov 28 2007 - evan.yan@sun.com
11020N/A- replace thunderbird-08-locale.diff with mozilla-09-locale.diff, to correct our
10139N/A way of supporting multi-language
10139N/A* Mon Nov 19 2007 - dave.lin@sun.com
10139N/A- bump to TB 2.0.0.9
10139N/A- remove patch thunderbird-16-crash-with-some-themes.diff since it has been upstreamed
10139N/A* Tue Nov 13 2007 - brian.lu@sun.com
10139N/A- Add patch, thunderbird-16-crash-with-some-themes.diff
10139N/A to fix 'thunderbird crashing under some themes' bug CR6586103
10139N/A* Fri Nov 02 2007 - dave.lin@sun.com
10139N/A- bump lightning to 0.7
10139N/A* Fri Aug 03 2007 - dave.lin@sun.com
10139N/A- bump to 2.0.0.6
10139N/A* Mon Jun 23 2007 - dave.lin@sun.com
10139N/A- bump to 2.0.0.5
10139N/A* Thu Jun 21 2007 - damien.carbery@sun.com
10139N/A- Add patch, mozilla-08-cairo-update.diff, to update the private copy of
10139N/A cairo.h used in the build.
10139N/A* Tue June 05 2007 - brian.lu@sun.com
10139N/A- Fix the bug CR6284006: GConf Error: Bad key or directory name: "desktop/gnome/url-handlers/GMT+00/command": `+' messages
10139N/A* Mon Apr 30 2007 - dave.lin@sun.com
10139N/A- remove local dictionary and use the one delivered by myspell-dictionary(CR6218511)
10139N/A* Thu Apr 27 2007 - brian.lu@sun.com
10139N/A- add patch to grey out "Check for Updates" in Thunderbird menu since it's not supported
10139N/A* Sat Apr 21 2007 - dave.lin@sun.com
10139N/A- Bump to 2.0.0.0
10139N/A* Thu Apr 12 2007 - dave.lin@sun.com
10139N/A- bump to 2.0.0.0rc1, removed the patches thunderbird-11-drag-and-drop.diff,
10139N/A thunderbird-12-defaultAccount.diff which are upstreamed in this release
10139N/A* Thu Apr 12 2007 - dave.lin@sun.com
10139N/A- disable update feature in Thunderbird menu since it's not supported
10139N/A on Solaris so far(CR#6542910)
10139N/A* Wed Mar 23 2007 - brian.lu@sun.com
10139N/A- Fix the bug CR6535724:Thunderbird crashes with LDAP in snv 60
10139N/A* 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