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