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