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