%define nspr_version 4.6.2 %define nss_version 3.11 %if "%{?fedora}" > "4" %define cairo_version 1.0 %endif %define official_branding 1 Summary: Mozilla Thunderbird mail/newsgroup client Name: thunderbird Version: 1.5.0.7 Release: 0.1%{?dist} Epoch: 0 URL: http://www.mozilla.org/projects/thunderbird/ License: MPL Group: Applications/Internet Source0: http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/source/thunderbird-%{version}-source.tar.bz2 Source1: http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/source/thunderbird-%{version}-source.tar.bz2.asc Source10: thunderbird-mozconfig Source11: thunderbird-mozconfig-branded Source12: thunderbird-redhat-default-prefs.js Source20: thunderbird.desktop Source21: thunderbird.sh.in Source22: thunderbird.png Source30: thunderbird-open-browser.sh Source100: find-external-requires # Build patches Patch2: firefox-1.0-prdtoa.patch Patch4: firefox-1.5-with-system-nss.patch Patch5: firefox-1.1-visibility.patch Patch6: firefox-1.1-nss-system-nspr.patch Patch10: thunderbird-0.7.3-psfonts.patch Patch11: thunderbird-0.7.3-gnome-uriloader.patch # customization patches Patch24: thunderbird-0.8-default-applications.patch Patch25: thunderbird-1.1-software-update.patch # local bugfixes Patch42: firefox-1.1-uriloader.patch # font system fixes Patch81: firefox-nopangoxft.patch # patches from upstream (Patch100+) Patch100: firefox-bug305970.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # Let rpm autoreq this -- Rex #Requires: nspr >= %{nspr_version} #Requires: nss >= %{nss_version} %{?cairo_version:BuildRequires: cairo-devel >= %{cairo_version}} BuildRequires: libpng-devel, libjpeg-devel, gtk2-devel BuildRequires: zlib-devel, gzip, zip, unzip BuildRequires: nspr-devel >= %{nspr_version} BuildRequires: nss-devel >= %{nss_version} BuildRequires: libIDL-devel BuildRequires: tcsh BuildRequires: freetype-devel BuildRequires: desktop-file-utils Obsoletes: MozillaThunderbird Provides: MozillaThunderbird = %{epoch}:%{version} %define tbdir %{_libdir}/thunderbird-%{version} AutoProv: 0 %define _use_internal_dependency_generator 0 %define __find_requires %{SOURCE100} %description Mozilla Thunderbird is a standalone mail and newsgroup client. #=============================================================================== %prep %setup -q -n mozilla %patch2 -p0 %patch4 -p1 # Pragma visibility is broken on most platforms for some reason. # It works on i386 so leave it alone there. Disable elsewhere. # See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20297 %ifnarch i386 %patch5 -p0 %endif %patch6 -p1 %patch10 -p1 -b .psfonts %patch11 -p1 -b .gnome-uriloader %patch24 -p1 %patch25 -p0 %patch42 -p0 %patch81 -p1 #patch100 -p1 %{__rm} -f .mozconfig %{__cp} %{SOURCE10} .mozconfig %if %{official_branding} %{__cat} %{SOURCE11} >> .mozconfig %endif %if "%{!?cairo_version:1}" == "1" grep -v -e "--enable-system-cairo" .mozconfig > .mozconfig.BAK && mv .mozconfig.BAK .mozconfig grep -v -e "--enable-pango" .mozconfig > .mozconfig.BAK && mv .mozconfig.BAK .mozconfig %endif #=============================================================================== %build #export RPM_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | sed 's/-O2/-Os/') #export CFLAGS="$RPM_OPT_FLAGS" #export CXXFLAGS="$CFLAGS" #export BUILD_OFFICIAL=1 #export MOZILLA_OFFICIAL=1 # set LDFLAGS to help prelink find libmozjs.so,libxpcom.so,libxpcom_core.so -- Rex LDFLAGS="-Wl,-rpath,'%{tbdir}'" \ MAKE="gmake %{?_smp_mflags}" make -f client.mk build_all #=============================================================================== %install %{__rm} -rf $RPM_BUILD_ROOT cd mail/installer %{__make} STRIP=/bin/true cd - %{__mkdir_p} $RPM_BUILD_ROOT{%{_libdir},%{_bindir},%{_datadir}/applications} %{__tar} -C $RPM_BUILD_ROOT%{_libdir}/ -xzf dist/%{name}-*linux*.tar.gz %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name} $RPM_BUILD_ROOT%{tbdir} %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}-*linux*.tar %{__install} -p -D %{SOURCE22} $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png desktop-file-install --vendor mozilla \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ --add-category X-Fedora \ --add-category Application \ --add-category Network \ %{SOURCE20} # set up the thunderbird start script %{__cat} %{SOURCE21} | %{__sed} -e 's,TBIRD_VERSION,%{version},g' > \ $RPM_BUILD_ROOT%{_bindir}/thunderbird %{__chmod} 755 $RPM_BUILD_ROOT/%{_bindir}/thunderbird install -m755 %{SOURCE30} $RPM_BUILD_ROOT/%{tbdir}/open-browser.sh perl -pi -e 's|LIBDIR|%{_libdir}|g' $RPM_BUILD_ROOT/%{tbdir}/open-browser.sh %{__cat} %{SOURCE12} | %{__sed} -e 's,THUNDERBIRD_RPM_VR,%{version}-%{release},g' \ -e 's,COMMAND,%{tbdir}/open-browser.sh,g' > \ $RPM_BUILD_ROOT/rh-default-prefs %{__cp} $RPM_BUILD_ROOT/rh-default-prefs $RPM_BUILD_ROOT/%{tbdir}/greprefs/all-redhat.js %{__cp} $RPM_BUILD_ROOT/rh-default-prefs $RPM_BUILD_ROOT/%{tbdir}/defaults/pref/all-redhat.js %{__rm} $RPM_BUILD_ROOT/rh-default-prefs # own mozilla plugin dir (#135050) %{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins %{__rm} -f $RPM_BUILD_ROOT%{tbdir}/thunderbird-config # huh? -- Rex #pushd $RPM_BUILD_ROOT%{tbdir}/chrome #find . -name "*" -type d -maxdepth 1 -exec %{__rm} -rvf {} \; #popd # to manually fix missing app icon, http://bugzilla.redhat.com/177823 # though, the real culprit is the above #{__mkdir_p} $RPM_BUILD_ROOT%{tbdir}/chrome/icons/default #{__cp} other-licenses/branding/thunderbird/default.xpm \ # $RPM_BUILD_ROOT%{tbdir}/chrome/icons/default/ %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %attr(755,root,root) %{_bindir}/thunderbird %attr(644,root,root) %{_datadir}/applications/mozilla-thunderbird.desktop %attr(644,root,root) %{_datadir}/pixmaps/thunderbird.png %{tbdir} %changelog * Fri Sep 15 2006 Rex Dieter 1.5.0.7-0.1 - 1.5.0.7 * Fri Jul 28 2006 Rex Dieter 1.5.0.5-0.2 - 1.5.0.5 - restore app icon (rh bug #177823) * Sat Jun 03 2006 Rex Dieter 1.5.0.4-0.1 - 1.5.0.4 * Tue Mar 14 2006 Rex Dieter 1.5-1.3 - drop hard-coded Requires: nspr, nss * Tue Jan 31 2006 Rex Dieter 1.5-1.2 - revert usage of -Os * Fri Jan 20 2006 Rex Dieter 1.5-1.1 - LDFLAGS=-Wl,-rpath... to help prelink find missing libs * Fri Jan 13 2006 Rex Dieter - 1.5-1.0 - 1.5(final) - el4 port * Tue Jan 3 2006 Christopher Aillon - 1.5-0.5.5.rc1 - Looks like we can build on ppc64 again. * Fri Dec 16 2005 Christopher Aillon - 1.5-0.5.4.rc1 - Rebuild * Fri Dec 16 2005 Christopher Aillon - 1.5-0.5.3.rc1 - Once again, disable ppc64 because of a new issue. See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=175944 - Use the system NSS libraries - Build on ppc64 * Fri Dec 09 2005 Jesse Keating - rebuilt * Mon Nov 28 2005 Christopher Aillon - 1.5-0.5.1.rc1 - Fix issue with popup dialogs and other actions causing lockups * Sat Nov 5 2005 Christopher Aillon 1.5-0.5.0.rc1 - Update to 1.5 rc1 * Sat Oct 8 2005 Christopher Aillon 1.5-0.5.0.beta2 - Update to 1.5 beta2 * Wed Sep 28 2005 Christopher Aillon 1.5-0.5.0.beta1 - Update to 1.5 beta1 - Bring the install phase of the spec file up to speed * Sun Aug 14 2005 Christopher Aillon 1.0.6-4 - Rebuild * Sat Aug 6 2005 Christopher Aillon 1.0.6-3 - Add patch to make file chooser dialog modal * Fri Jul 22 2005 Christopher Aillon 1.0.6-2 - Update to 1.0.6 * Mon Jul 18 2005 Christopher Aillon 1.0.6-0.1.fc5 - 1.0.6 Release Candidate * Fri Jul 15 2005 Christopher Aillon 1.0.2-8 - Use system NSPR - Fix crash on 64bit platforms (#160330) * Thu Jun 23 2005 Kristian Høgsberg 1.0.2-7 - Add firefox-1.0-pango-cairo.patch to get rid of the last few Xft references, fixing the "no fonts" problem. * Fri May 13 2005 Christopher Aillon 1.0.2-6 - Change the Exec line in the desktop file to `thunderbird` * Fri May 13 2005 Christopher Aillon 1.0.2-5 - Update pango patche, MOZ_DISABLE_PANGO now works as advertised. * Mon May 9 2005 Christopher Aillon 1.0.2-4 - Add temporary workaround to not create files in the user's $HOME (#149664) * Wed May 4 2005 Christopher Aillon 1.0.2-3 - Don't have downloads "disappear" when downloading to desktop (#139015) - Fix for some more cursor issues in textareas (149991, 150002, 152089) - Add upstream patch to fix bidi justification of pango - Add patch to fix launching of helper applications - Add patch to properly link against libgfxshared_s.a - Fix multilib conflicts * Wed Apr 27 2005 Warren Togami - correct confusing PANGO vars in startup script * Wed Mar 23 2005 Christopher Aillon 1.0.2-1 - Thunderbird 1.0.2 * Tue Mar 8 2005 Christopher Aillon 1.0-5 - Add patch to compile against new fortified glibc macros * Sat Mar 5 2005 Christopher Aillon 1.0-4 - Rebuild against GCC 4.0 - Add execshield patches - Minor specfile cleanup * Mon Dec 20 2004 Christopher Aillon 1.0-3 - Rebuild * Thu Dec 16 2004 Christopher Aillon 1.0-2 - Add RPM version to useragent * Thu Dec 16 2004 Christopher Blizzard - Port over pango patches from firefox * Wed Dec 8 2004 Christopher Aillon 1.0-1 - Thunderbird 1.0 * Mon Dec 6 2004 Christopher Aillon 1.0-0.rc1.1 - Fix advanced prefs * Fri Dec 3 2004 Christopher Aillon - Make this run on s390(x) now for real * Wed Dec 1 2004 Christopher Aillon 1.0-0.rc1.0 - Update to 1.0 rc1 .