fbf6d8b
# Option: Freetype Patch (FC3+)
fbf6d8b
%define freetype_fc3 1
fbf6d8b
6f85560
%define desktop_file_utils_version 0.3
6f85560
36ac449
ExclusiveArch: i386 x86_64 ia64 ppc
36ac449
36ac449
Summary:	Mozilla Thunderbird mail/newsgroup client
36ac449
Name:		thunderbird
2c56827
Version:	0.8.0
59bcc1b
Release:	4
36ac449
Epoch:		0
36ac449
URL:		http://www.mozilla.org/projects/thunderbird/
36ac449
License:	MPL
36ac449
Group:		Applications/Internet
2c56827
Source0:	http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/0.8/thunderbird-source-0.8.tar.bz2
2c56827
Source1:	thunderbird.desktop
36ac449
# This icon is used with the permission of mozilla.org.
2c56827
Source2:	thunderbird-icon.png
2c56827
Source3:	thunderbird.sh.in
2c56827
Source4:	thunderbird-mozconfig
2c56827
Source5:	release-notes.html
2c56827
Source6:	thunderbird-open-browser.sh
2c56827
Source7:	thunderbird-prefs
c21eae0
Source100:	find-external-requires
36ac449
Patch1:		thunderbird-0.7.3-em-register.patch
36ac449
Patch2:		thunderbird-0.7.3-em-fileuri.patch
36ac449
Patch3:		thunderbird-0.7.3-enigmail-debian.patch
36ac449
Patch4:         thunderbird-0.7.3-freetype-compile.patch
36ac449
Patch5:         thunderbird-0.7.3-psfonts.patch
36ac449
Patch6:         thunderbird-0.7.3-gnome-uriloader.patch
6f85560
Patch90:        thunderbird-0.8.0-gtk-file-chooser-trunk.patch
6f85560
Patch91:        thunderbird-0.8.0-gtk-file-chooser-updates.patch
6f85560
Patch100:       thunderbird-0.8.0-js-64bit-math.patch
6f85560
Patch101:       thunderbird-0.8.0-pkgconfig.patch
59bcc1b
Patch102:       thunderbird-0.8.0-button-focus.patch
59bcc1b
Patch103:       thunderbird-0.8.0-imap-race.patch
36ac449
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2c56827
BuildRequires:	libpng-devel, libjpeg-devel, gtk2-devel
36ac449
BuildRequires:	zlib-devel, gzip, zip, unzip
36ac449
BuildRequires:	XFree86-devel
36ac449
BuildRequires:	libIDL-devel
36ac449
BuildRequires:	tcsh
36ac449
BuildRequires:	freetype-devel
6f85560
Prereq:		desktop-file-utils >= %{desktop_file_utils_version}
36ac449
Obsoletes:	MozillaThunderbird
36ac449
Provides:	MozillaThunderbird = %{epoch}:%{version}
36ac449
36ac449
%define tbdir %{_libdir}/thunderbird-%{version}
36ac449
c21eae0
AutoProv: 0
c21eae0
%define _use_internal_dependency_generator 0
c21eae0
%define __find_requires %{SOURCE100}
c21eae0
36ac449
%description
36ac449
Mozilla Thunderbird is a standalone mail and newsgroup client.
36ac449
36ac449
#===============================================================================
36ac449
36ac449
%prep
36ac449
%setup -q -n mozilla
2c56827
cp -f %{SOURCE4} .mozconfig
36ac449
echo "ac_add_options --libdir=%{_libdir}" >> .mozconfig
36ac449
echo "ac_add_options --with-default-mozilla-five-home=%{tbdir}" >> .mozconfig
36ac449
echo "mk_add_options MOZ_MAKE_FLAGS='%{?_smp_mflags}'" >> .mozconfig
2c56827
cp -f %{SOURCE5} .
fbf6d8b
%if %{freetype_fc3}
36ac449
%patch4 -p0 -b .freetype
fbf6d8b
%endif
36ac449
%patch5 -p1 -b .psfonts
36ac449
%patch6 -p1 -b .gnome-uriloader
6f85560
%patch90 -p0 -b .gtk-file-chooser-trunk
6f85560
%patch91 -p1 -b .gtk-file-chooser-updates
6f85560
%patch100 -p0 -b .js-64bit-math
6f85560
%patch101 -p0 -b .pkgconfig
59bcc1b
%patch102 -p0 -b .button-focus
59bcc1b
%patch103 -p0 -b .imap-race
36ac449
36ac449
#===============================================================================
36ac449
36ac449
%build
36ac449
export RPM_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | sed 's/-O2/-Os/')
36ac449
export CFLAGS="$RPM_OPT_FLAGS"
36ac449
export CXXFLAGS="$CFLAGS"
36ac449
export BUILD_OFFICIAL=1
36ac449
export MOZILLA_OFFICIAL=1
36ac449
time make -f client.mk build_all
36ac449
36ac449
#===============================================================================
36ac449
36ac449
%install
36ac449
rm -rf %{buildroot}
36ac449
mkdir -p %{buildroot}{%{tbdir},%{_bindir}}
36ac449
36ac449
cd dist/bin
36ac449
tar ch ./ | ( cd %{buildroot}%{tbdir} ; tar xf - )
36ac449
cd -
36ac449
36ac449
# menu entry
2c56827
install -p -D %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/thunderbird-icon.png
2c56827
desktop-file-install --vendor mozilla			\
36ac449
	--dir %{buildroot}%{_datadir}/applications  	\
2c56827
	--add-category X-Red-Hat			\
36ac449
	--add-category Application			\
36ac449
	--add-category Network				\
2c56827
	%{SOURCE1}
36ac449
2c56827
install -m755 %{SOURCE3} %{buildroot}%{_bindir}/mozilla-thunderbird
36ac449
perl -pi -e 's|TBDIR|%{tbdir}|g' %{buildroot}%{_bindir}/mozilla-thunderbird
36ac449
( cd %{buildroot}%{_bindir} ; ln -s mozilla-thunderbird thunderbird )
36ac449
2c56827
install -m755 %{SOURCE6} %{buildroot}%{tbdir}/open-browser.sh
36ac449
perl -pi -e 's|LIBDIR|%{_libdir}|g' %{buildroot}%{tbdir}/open-browser.sh
36ac449
2c56827
install -m644 %{SOURCE7} %{buildroot}%{tbdir}/defaults/pref/all.js
36ac449
perl -pi -e 's|COMMAND|%{tbdir}/open-browser.sh|g' \
36ac449
  %{buildroot}%{tbdir}/defaults/pref/all.js
36ac449
36ac449
cd %{buildroot}%{tbdir}
3e2e663
export MOZ_DISABLE_GNOME=1
36ac449
./thunderbird -register
36ac449
2c56827
rm -rf %{buildroot}/%{tbdir}/chrome/{classic,comm,embed-sample,en-{mac,win},help,messenger}
36ac449
# ...
36ac449
36ac449
#===============================================================================
36ac449
36ac449
%clean
36ac449
#rm -rf %{buildroot}
36ac449
36ac449
#===============================================================================
36ac449
36ac449
%files
36ac449
%defattr(-,root,root,-)
36ac449
%attr(755,root,root) %{_bindir}/mozilla-thunderbird
36ac449
%attr(755,root,root) %{_bindir}/thunderbird
2c56827
%attr(644,root,root) %{_datadir}/applications/mozilla-thunderbird.desktop
36ac449
%attr(644,root,root) %{_datadir}/pixmaps/thunderbird-icon.png
36ac449
%{tbdir}
36ac449
%doc release-notes.html
36ac449
36ac449
#===============================================================================
36ac449
36ac449
%changelog
59bcc1b
* Fri Oct  8 2004 Christopher Aillon <caillon@redhat.com> 0.8.0-4
59bcc1b
- Add patch to fix button focus issues (#133507)
59bcc1b
- Add patch for fix IMAP race issues (bmo #246439)
59bcc1b
c21eae0
* Fri Oct  1 2004 Bill Nottingham <notting@redhat.com> 0.8.0-3
c21eae0
- filter out library Provides: and internal Requires:
c21eae0
6f85560
* Tue Sep 28 2004 Christopher Aillon <caillon@redhat.com> 0.8.0-2
6f85560
- Backport the GTK+ File Chooser.
6f85560
- Add fix for JS math on x86_64 systems
6f85560
- Add pkgconfig patch
6f85560
2c56827
* Thu Sep 16 2004 Christopher Aillon <caillon@redhat.com> 0.8.0-1
2c56827
- Update to 0.8.0
2c56827
- Remove enigmail
2c56827
- Update BuildRequires
2c56827
- Remove gcc34 and extension manager patches -- they are upstreamed.
3e2e663
- Fix for gnome-vfs2 error at component registration
2c56827
36ac449
* Fri Sep 03 2004 Christopher Aillon <caillon@redhat.com> 0.7.3-5
36ac449
- Build with --disable-xprint
36ac449
36ac449
* Wed Sep 01 2004 David Hill <djh[at]ii.net> 0.7.3-4
36ac449
- remove all Xvfb-related hacks
36ac449
36ac449
* Wed Sep 01 2004 Warren Togami <wtogami@redhat.com> 
36ac449
- actually apply psfonts
36ac449
- add mozilla gnome-uriloader patch to prevent build failure
36ac449
36ac449
* Tue Aug 31 2004 Warren Togami <wtogami@redhat.com> 0.7.3-3
36ac449
- rawhide import
36ac449
- apply NetBSD's freetype 2.1.8 patch
36ac449
- apply psfonts patch
36ac449
- remove BR on /usr/bin/ex, breaks beehive
36ac449
36ac449
* Tue Aug 31 2004 David Hill <djh[at]ii.net> 0.7.3-0.fdr.2
36ac449
- oops, fix %%install
36ac449
36ac449
* Thu Aug 26 2004 David Hill <djh[at]ii.net> 0.7.3-0.fdr.1
36ac449
- update to Thunderbird 0.7.3 and Enigmail 0.85.0
36ac449
- remove XUL.mfasl on startup, add Debian enigmail patches
36ac449
- add Xvfb hack for -install-global-extension
36ac449
36ac449
* Wed Jul 14 2004 David Hill <djh[at]ii.net> 0.7.2-0.fdr.0
36ac449
- update to 0.7.2, just because it's there
36ac449
- update gcc-3.4 patch (Kaj Niemi)
36ac449
- add EM registration patch and remove instdir hack
36ac449
36ac449
* Sun Jul 04 2004 David Hill <djh[at]ii.net> 0.7.1-0.fdr.1
36ac449
- re-add Enigmime 1.0.7, omit Enigmail until the Mozilla EM problems are fixed
36ac449
36ac449
* Wed Jun 30 2004 David Hill <djh[at]ii.net> 0.7.1-0.fdr.0
36ac449
- update to 0.7.1
36ac449
- remove Enigmail
36ac449
36ac449
* Mon Jun 28 2004 David Hill <djh[at]ii.net> 0.7-0.fdr.1
36ac449
- re-enable Enigmail 0.84.1
36ac449
- add gcc-3.4 patch (Kaj Niemi)
36ac449
- use official branding (with permission)
36ac449
36ac449
* Fri Jun 18 2004 David Hill <djh[at]ii.net> 0.7-0.fdr.0
36ac449
- update to 0.7
36ac449
- temporarily disable Enigmail 0.84.1, make ftp links work (#1634)
36ac449
- specify libdir, change BR for apt (V. Skyttä, #1617)
36ac449
36ac449
* Tue May 18 2004 Warren Togami <wtogami@redhat.com> 0.6-0.fdr.5
36ac449
- temporary workaround for enigmail skin "modern" bug
36ac449
36ac449
* Mon May 10 2004 David Hill <djh[at]ii.net> 0.6-0.fdr.4
36ac449
- update to Enigmail 0.84.0 
36ac449
- update launch script
36ac449
36ac449
* Mon May 10 2004 David Hill <djh[at]ii.net> 0.6-0.fdr.3
36ac449
- installation directory now versioned
36ac449
- allow root to run the program (for installing extensions)
36ac449
- remove unnecessary %%pre and %%post
36ac449
- remove separators, update mozconfig and launch script (M. Schwendt, #1460)
36ac449
36ac449
* Wed May 05 2004 David Hill <djh[at]ii.net> 0.6-0.fdr.2
36ac449
- include Enigmail, re-add release notes
36ac449
- delete %{_libdir}/thunderbird in %%pre
36ac449
36ac449
* Mon May 03 2004 David Hill <djh[at]ii.net> 0.6-0.fdr.1
36ac449
- update to Thunderbird 0.6
36ac449
36ac449
* Fri Apr 30 2004 David Hill <djh[at]ii.net> 0.6-0.fdr.0.rc1
36ac449
- update to Thunderbird 0.6 RC1
36ac449
- add new icon, remove release notes
36ac449
36ac449
* Thu Apr 15 2004 David Hill <djh[at]ii.net> 0.6-0.fdr.0.20040415
36ac449
- update to latest CVS, update mozconfig and %%build accordingly
36ac449
- update to Enigmail 0.83.6
36ac449
- remove x-remote and x86_64 patches
36ac449
- build with -Os
36ac449
36ac449
* Thu Apr 15 2004 David Hill <djh[at]ii.net> 0.5-0.fdr.12
36ac449
- update x-remote patch
36ac449
- more startup script fixes
36ac449
36ac449
* Tue Apr 06 2004 David Hill <djh[at]ii.net> 0:0.5-0.fdr.11
36ac449
- startup script fixes, and a minor cleanup
36ac449
36ac449
* Sun Apr 04 2004 Warren Togami <wtogami@redhat.com> 0:0.5-0.fdr.10
36ac449
- Minor cleanups
36ac449
36ac449
* Sun Apr 04 2004 David Hill <djh[at]ii.net>	0:0.5-0.fdr.8
36ac449
- minor improvements to open-browser.sh and startup script
36ac449
- update to latest version of Blizzard's x-remote patch
36ac449
36ac449
* Thu Mar 25 2004 David Hill <djh[at]ii.net>	0:0.5-0.fdr.7
36ac449
- update open-browser.sh, startup script, and BuildRequires
36ac449
36ac449
* Sun Mar 14 2004 David Hill <djh[at]ii.net>	0:0.5-0.fdr.6
36ac449
- update open-browser script, modify BuildRequires (Warren)
36ac449
- add Blizzard's x-remote patch
36ac449
- initial attempt at x-remote-enabled startup script
36ac449
36ac449
* Sun Mar 07 2004 David Hill <djh[at]ii.net>	0:0.5-0.fdr.5
36ac449
- refuse to run with excessive privileges
36ac449
36ac449
* Fri Feb 27 2004 David Hill <djh[at]ii.net>	0:0.5-0.fdr.4
36ac449
- add Mozilla x86_64 patch (Oliver Sontag)
36ac449
- Enigmail source filenames now include the version
36ac449
- modify BuildRoot
36ac449
36ac449
* Thu Feb 26 2004 David Hill <djh[at]ii.net>	0:0.5-0.fdr.3
36ac449
- use the updated official tarball
36ac449
36ac449
* Wed Feb 18 2004 David Hill <djh[at]ii.net>	0:0.5-0.fdr.2
36ac449
- fix %%prep script
36ac449
36ac449
* Mon Feb 16 2004 David Hill <djh[at]ii.net>	0:0.5-0.fdr.1
36ac449
- update Enigmail to 0.83.3
36ac449
- use official source tarball (after removing the CRLFs)
36ac449
- package renamed to thunderbird
36ac449
36ac449
* Mon Feb 09 2004 David Hill <djh[at]ii.net>	0:0.5-0.fdr.0
36ac449
- update to 0.5
36ac449
- check for lockfile before launching
36ac449
36ac449
* Fri Feb 06 2004 David Hill <djh[at]ii.net>
36ac449
- update to latest cvs
36ac449
- update to Enigmail 0.83.2
36ac449
36ac449
* Thu Jan 29 2004 David Hill <djh[at]ii.net>	0:0.4-0.fdr.5
36ac449
- update to Enigmail 0.83.1
36ac449
- removed Mozilla/Firebird script patching
36ac449
36ac449
* Sat Jan 03 2004 David Hill <djh[at]ii.net>	0:0.4-0.fdr.4
36ac449
- add startup notification to .desktop file
36ac449
36ac449
* Thu Dec 25 2003 Warren Togami <warren@togami.com> 0:0.4-0.fdr.3
36ac449
- open-browser.sh release 3
36ac449
- patch broken /usr/bin/mozilla script during install
36ac449
- dir ownership
36ac449
- XXX: Source fails build on x86_64... fix later
36ac449
36ac449
* Tue Dec 23 2003 David Hill <djh[at]ii.net>	0:0.4-0.fdr.2
36ac449
- update to Enigmail 0.82.5
36ac449
- add Warren's open-browser.sh (#1113)
36ac449
36ac449
* Tue Dec 09 2003 David Hill <djh[at]ii.net>	0:0.4-0.fdr.1
36ac449
- use Thunderbird's mozilla-xremote-client to launch browser
36ac449
36ac449
* Sun Dec 07 2003 David Hill <djh[at]ii.net>	0:0.4-0.fdr.0
36ac449
- update to 0.4
36ac449
- make hyperlinks work (with recent versions of Firebird/Mozilla)
36ac449
36ac449
* Thu Dec 04 2003 David Hill <djh[at]ii.net>
36ac449
- update to 0.4rc2
36ac449
36ac449
* Wed Dec 03 2003 David Hill <djh[at]ii.net>
36ac449
- update to 0.4rc1 and Enigmail 0.82.4
36ac449
36ac449
* Thu Nov 27 2003 David Hill <djh[at]ii.net>
36ac449
- update to latest CVS and Enigmail 0.82.3
36ac449
36ac449
* Sun Nov 16 2003 David Hill <djh[at]ii.net>
36ac449
- update to latest CVS (0.4a)
36ac449
- update Enigmail to 0.82.2
36ac449
- alter mozconfig for new build requirements
36ac449
- add missing BuildReq (#987)
36ac449
36ac449
* Thu Oct 16 2003 David Hill <djh[at]ii.net>	0:0.3-0.fdr.0
36ac449
- update to 0.3
36ac449
36ac449
* Sun Oct 12 2003 David Hill <djh[at]ii.net>	0:0.3rc3-0.fdr.0
36ac449
- update to 0.3rc3
36ac449
- update Enigmail to 0.81.7
36ac449
36ac449
* Thu Oct 02 2003 David Hill <djh[at]ii.net>	0:0.3rc2-0.fdr.0
36ac449
- update to 0.3rc2
36ac449
36ac449
* Wed Sep 17 2003 David Hill <djh[at]ii.net>	0:0.2-0.fdr.2
36ac449
- simplify startup script
36ac449
36ac449
* Wed Sep 10 2003 David Hill <djh[at]ii.net>	0:0.2-0.fdr.1
36ac449
- add GPG support (Enigmail 0.81.6)
36ac449
- specfile fixes (#679)
36ac449
36ac449
* Thu Sep 04 2003 David Hill <djh[at]ii.net>	0:0.2-0.fdr.0
36ac449
- update to 0.2
36ac449
36ac449
* Mon Sep 01 2003 David Hill <djh[at]ii.net>
36ac449
- initial RPM
36ac449
  (based on the fedora MozillaFirebird-0.6.1 specfile)
36ac449