thunderbird.spec revision 10728
10139N/A#
10139N/A# Copyright (c) Sun Microsystems, Inc.
10139N/A#
10139N/A# Owner: davelam
10139N/A#
10139N/A
10139N/A#####################################
10139N/A## Package Information Section ##
10139N/A#####################################
10139N/A
10139N/AName: thunderbird
10139N/ASummary: Mozilla Thunderbird Standalone E-mail and Newsgroup Client
10139N/AVersion: 2.0
10509N/A%define tarball_version 2.0.0.0
10139N/ARelease: 1
10139N/ACopyright: MPL/LGPL
10139N/AGroup: Applications/Internet
10139N/ADistribution:Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
10139N/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}
10139N/A%if %with_lightning
10162N/A%define lightning_version 0.3.1
10254N/ASource3: http://releases.mozilla.org/pub/mozilla.org/calendar/lightning/releases/0.3.1/source/lightning-%{lightning_version}.source.tar.bz2
10139N/A%endif
10544N/ASource4: thunderbird.cfg
10139N/A
10139N/A
10139N/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
10139N/A# owner:davelam date:2006-04-14 type:branding
10139N/A# change startup script to support multi-language
10139N/APatch2: thunderbird-08-locale.diff
10139N/A
10139N/A# owner:davelam date:2005-09-01 type:branding
10139N/A# let moz patch checker support S10 and S11
10139N/APatch3: mozilla-02-no-patch-checker.diff
10139N/A
10139N/A# owner:davelam date:2005-09-05 type:branding
10139N/A# remove gtar specific options
10139N/APatch4: mozilla-05-common-tar-option.diff
10139N/A
10139N/A# owner:davelam date:2006-04-29 type:branding
10139N/A# let firefox use system bundled nss,nspr
10139N/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
10139N/APatch6: mozilla-07-no-ldlibpath.diff
10139N/A
10139N/A# owner:davelam date:2006-09-07 type:branding
10139N/A# remove moz patch checker from package
10139N/APatch7: thunderbird-10-no-pkg-files.diff
10139N/A
10354N/A# owner:hawklu date:2007-03-21 type:bug
10638N/A# bugster:6535724
10466N/APatch8: thunderbird-13-ldap-crash.diff
10354N/A
10544N/A# owner:hawklu date:2007-04-27 type:branding
10544N/A# bugster:6542910
10544N/APatch9: thunderbird-14-disable-online-update.diff
10544N/A
10728N/A# owner:hawklu date:2007-06-05 type:bug state:upstream
10728N/A# bugster:6284006
10728N/APatch10: thunderbird-15-gconf-error.diff
10728N/A
10139N/AURL: http://www.sun.com/software/javadesktopsystem/
10139N/A
10139N/ABuildRoot: %{_tmppath}/%{name}-%{tarball_version}-build
10139N/APrefix: /usr
10139N/AProvides: webclient
10139N/AAutoreqprov: on
10139N/A
10139N/A#####################################
10139N/A## Package Defines Section ##
10139N/A#####################################
10139N/A
10139N/A%define _unpackaged_files_terminate_build 0
10139N/A%define _tbdir %{_libdir}/%{name}
10139N/A
10139N/A#####################################
10139N/A## Package Requirements Section ##
10139N/A#####################################
10139N/A
10139N/ABuildRequires: libpng-devel
10139N/ABuildRequires: libjpeg
10139N/ABuildRequires: zlib-devel
10139N/ABuildRequires: zip
10139N/ABuildRequires: perl
10139N/ABuildRequires: autoconf
10139N/ABuildRequires: libIDL-devel
10139N/ABuildRequires: glib2-devel
10139N/ABuildRequires: gtk2-devel
10139N/APrereq: fileutils perl
10139N/APrereq: /usr/bin/killall
10139N/A
10139N/A#####################################
10139N/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}
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
10466N/A%endif
10139N/A%patch8 -p1
10544N/A%patch9 -p1
10728N/A%patch10 -p1
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
10465N/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=
10139N/A#CXXFLAGS=
10139N/Aexport BUILD_OFFICIAL MOZILLA_OFFICIAL MOZ_PKG_FORMAT PKG_SKIP_STRIP CFLAGS CXXFLAGS
10139N/A
10139N/A./configure
10139N/Amake export
10139N/A# FIXME: disabled parallel build as it seems to break the build sometimes
10139N/Amake libs
10139N/A
10139N/Acd xpinstall/packager
10139N/Amake
10139N/A
10139N/A%install
10139N/A/bin/rm -rf $RPM_BUILD_ROOT
10139N/A
10139N/ABUILDDIR=`pwd`
10139N/A/bin/mkdir -p $RPM_BUILD_ROOT%{_libdir}
10139N/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
10139N/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
10544N/A# install thunderbird.cfg
10544N/Ainstall -c -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_tbdir}/thunderbird.cfg
10544N/A
10550N/A# remove local dictionary and share the one that delivered
10550N/A# by myspell-dictionary
10550N/Arm -f $RPM_BUILD_ROOT%{_tbdir}/dictionaries/en-US.dic
10550N/Arm -f $RPM_BUILD_ROOT%{_tbdir}/dictionaries/en-US.aff
10550N/Armdir $RPM_BUILD_ROOT%{_tbdir}/dictionaries
10550N/A
10139N/A%clean
10139N/A/bin/rm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A#########################################
10139N/A## Package Post[Un] Install Section ##
10139N/A#########################################
10139N/A
10139N/A%post
10139N/A# run ldconfig before regxpcom
10139N/A/sbin/ldconfig >/dev/null 2>/dev/null
10139N/A
10139N/A%postun
10139N/A/sbin/ldconfig >/dev/null 2>/dev/null
10139N/A
10139N/A%preun
10139N/A
10139N/A#####################################
10139N/A## Package Files Section ##
10139N/A#####################################
10139N/A
10139N/A%files
10139N/A%defattr(-,root,root)
10139N/A%dir %{_tbdir}
10139N/A%{_tbdir}/*
10139N/A%{_bindir}/thunderbird
10139N/A#%{_mandir}/man1/*
10139N/A%{_datadir}/applications/%{name}.desktop
10139N/A%{_datadir}/pixmaps/%{name}-icon.png
10139N/A
10358N/A%changelog
10728N/A* Tue June 05 2007 - brian.lu@sun.com
10728N/A- Fix the bug CR6284006: GConf Error: Bad key or directory name: "desktop/gnome/url-handlers/GMT+00/command": `+' messages
10550N/A* Mon Apr 30 2007 - dave.lin@sun.com
10550N/A- remove local dictionary and use the one delivered by myspell-dictionary(CR6218511)
10544N/A* Thu Apr 27 2007 - brian.lu@sun.com
10544N/A- add patch to grey out "Check for Updates" in Thunderbird menu since it's not supported
10509N/A* Sat Apr 21 2007 - dave.lin@sun.com
10509N/A- Bump to 2.0.0.0
10465N/A* Thu Apr 12 2007 - dave.lin@sun.com
10466N/A- bump to 2.0.0.0rc1, removed the patches thunderbird-11-drag-and-drop.diff,
10466N/A thunderbird-12-defaultAccount.diff which are upstreamed in this release
10466N/A* Thu Apr 12 2007 - dave.lin@sun.com
10465N/A- disable update feature in Thunderbird menu since it's not supported
10465N/A on Solaris so far(CR#6542910)
10359N/A* Wed Mar 23 2007 - brian.lu@sun.com
10354N/A- Fix the bug CR6535724:Thunderbird crashes with LDAP in snv 60
10275N/A* Mon Mar 12 2007 - brian.lu@sun.com
10275N/A- Fix the bug CR6530327
10254N/A* Sat Mar 10 2007 - dougs@truemail.co.th
10254N/A- Fixed URL for lightning
10162N/A* Sat Mar 03 2007 - dave.lin@sun.com
10162N/A- bump lightning version to 0.3.1
10139N/A* Thu Feb 01 2007 - brian.lu@sun.com
10139N/A- fix drag and drop crashing bug CR6519257
10139N/A- bugzilla id 367203. The patch has been put into upstream
10139N/A* Sun Jan 28 2007 - laca@sun.com
10139N/A- add full download url for lightning
10139N/A* Fri Jan 26 2007 - dave.lin@sun.com
10139N/A- enable lightning extension(0.3) in Thunderbird
10139N/A* Wed Jan 24 2007 - dave.lin@sun.com
10139N/A- bump version to 2.0b2
10139N/A* Thu Dec 28 2006 - dave.lin@sun.com
10139N/A- change the patch type to branding for some patches in patch comments
10139N/A- bump version to 2.0b1 and remove mozilla-03-s11s-smkfl.diff,
10139N/A mozilla-04-s11x-smkfl.diff since they're upstreamed in that branch
10139N/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
10139N/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
10139N/A* Mon Aug 28 2006 - dave.lin@sun.com
10139N/A- create symbol link libnssckbi.so -> /usr/lib/mps/libnssckbi.so
10139N/A to fix bug CR#6459752
10139N/A* Tue Aug 08 2006 - dave.lin@sun.com
10139N/A- bump version to 2.0a1
10139N/A- remove the patch mozilla-03-s11s-smkfl.diff, mozilla-04-s11x-smkfl.diff
10139N/A which have been fixed in 2.0a1
10139N/A- change to xpinstall/packager to run the make to generate the binary tarball
10139N/A* Mon Jul 31 2006 - dave.lin@sun.com
10139N/A- bump to 1.5.0.5
10139N/A* Fri Jul 07 2006 - dave.lin@sun.com
10139N/A- add patch mozilla-07-no-ldlibpath.diff to remove the LD_LIBRARY_PATH in
10139N/A- change to "disable-static, enable-shared" per Brian Lu
10139N/A* Wed Jun 21 2006 - dave.lin@sun.com
10139N/A- remove patch thunderbird-07-ldap-prefs.diff to fix bug CR#6344861
10139N/A* Fri Jun 02 2006 - dave.lin@sun.com
10139N/A- bump src version to 1.5.0.4
10139N/A* Sat Apr 29 2006 - halton.huo@sun.com
10139N/A- Add patch thunderbird-09-no-nss-nspr.diff to not deliver the nss,nspr
10139N/A* Fri Apr 27 2006 - damien.carbery@sun.com
10139N/A- Remove patch 9 as it is not in svn and breaks build.
10139N/A* Fri Apr 27 2006 - dave.lin@sun.com
10139N/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
10139N/A- bump to 1.5.0.2, remove patch 06 thunderbird-06-save-all-attach.diff,
10139N/A which is already upstreamed
10139N/A* Fri Apr 14 2006 - dave.lin@sun.com
10139N/A- add patch mozilla-06-skip-strip.diff to make no stripped libraries
10139N/A- add patch firefox-13-locale.diff to make firefox automatically
10139N/A pick up locale setting from user environment and start up in
10139N/A that locale
10139N/A* Thu Apr 13 2006 - dave.lin@sun.com
10139N/A- Changed the installation location from "/usr/sfw/lib" to "/usr/lib"
10139N/A on Solaris
10139N/A
10139N/A* Fri Mar 10 2006 -halton.huo@sun.com
10139N/A- Add patch thunderbird-06-save-all-attach.diff to fix 6373061.
10139N/A- Add patch thunderbird-07-ldap-prefs.diff to fix CR6344861.
10139N/A
10139N/A* Tue Jan 17 2006 - dave.lin@sun.com
10139N/A- Bump tarball version to 1.5
10139N/A- add two configure options --enable-static, --disable-shared
10139N/A- to get rid of intermedia shared libraries
10139N/A- disable parallel build option
10139N/A
10139N/A* Tue Nov 08 2005 - dave.lin@sun.com
10139N/A- Bump tarball version to 1.5rc1
10139N/A- Remove the patch mozilla-07-bz307041.diff since it's upstreamed in 1.5rc1 already
10139N/A
10139N/A* Thu Nov 1 2005 - laca@sun.com
10139N/A- change version to numeric and introduce %tarball_version
10139N/A
10139N/A* Fri Oct 21 2005 - <halton.huo@sun.com>
10139N/A- Bump to 1.5b2.
10139N/A- Add patch 307041 from bugzilla.
10139N/A
10139N/A* Mon Sep 26 2005 - <halton.huo@sun.com>
10139N/A- Bump to 1.5b1.
10139N/A- Move dir mozilla to thunderbird after tarball unpacking.
10139N/A
10139N/A* Thu Sep 08 2005 - damien.carbery@sun.com
10139N/A- Change BuildPrereq to BuildRequires, a format that build-gnome2 understands.
10139N/A
10139N/A* Mon Sep 05 2005 - Dave Lin <dave.lin@sun.com>
10139N/A- Add patches to remove the specific gtar options
10139N/A- Set MOZ_PKG_FORMAT=BZ2 to keep consistent of tarball
10139N/A format between linux and solaris
10139N/A
10139N/A* Fri Sep 02 2005 - damien.carbery@sun.com
10139N/A- Change gtar to tar and rework tar command.
10139N/A
10139N/A* Mon Aug 22 2005 - Dave Lin <dave.lin@sun.com>
10139N/A- initial version of the spec file created
10139N/A