Update to 3.0.1 - WIP

This commit is contained in:
Martin Stransky 2010-01-20 14:15:08 +00:00
parent c73bef2567
commit 1d6ee21792
4 changed files with 38 additions and 7 deletions

View File

@ -10,3 +10,5 @@ thunderbird-3.0rc2.source.tar.bz2
thunderbird-langpacks-3.0rc2-20091203.tar.bz2
thunderbird-3.0.source.tar.bz2
thunderbird-langpacks-3.0-20091209.tar.bz2
thunderbird-3.0.1.source.tar.bz2
thunderbird-langpacks-3.0.1-20100120.tar.bz2

View File

@ -1,2 +1,2 @@
9a564ac2489b1b0f9348dc298b913f6c thunderbird-3.0.source.tar.bz2
1263a513f4d5e7663f3fdfc23fbf8eaf thunderbird-langpacks-3.0-20091209.tar.bz2
f004aa5ddf2a30b5df96e06df416b0c9 thunderbird-3.0.1.source.tar.bz2
ed52d606c5bc0593f23a50a66538917f thunderbird-langpacks-3.0.1-20100120.tar.bz2

11
thunderbird-version.patch Normal file
View File

@ -0,0 +1,11 @@
--- comm-1.9.1/mail/installer/Makefile.in.old 2010-01-20 14:27:43.000000000 +0100
+++ comm-1.9.1/mail/installer/Makefile.in 2010-01-20 14:29:21.000000000 +0100
@@ -42,6 +42,8 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
+MOZ_APP_VERSION="__RPM_VERSION_INTERNAL__"
+
NO_PKG_FILES = \
thunderbird-bin.elf \
thunderbird-config \

View File

@ -14,14 +14,16 @@
#%define tarballdir .
%define tarballdir comm-1.9.1
%define mozappdir %{_libdir}/thunderbird-%{version}
%define official_branding 1
%define include_debuginfo 0
%define version_internal 3.0
%define mozappdir %{_libdir}/%{name}-%{version_internal}
Summary: Mozilla Thunderbird mail/newsgroup client
Name: thunderbird
Version: 3.0
Release: 5%{?dist}
Version: 3.0.1
Release: 1%{?dist}
URL: http://www.mozilla.org/projects/thunderbird/
License: MPLv1.1 or GPLv2+ or LGPLv2+
Group: Applications/Internet
@ -32,7 +34,7 @@ Group: Applications/Internet
%endif
Source0: %{tarball}
%if %{build_langpacks}
Source1: thunderbird-langpacks-%{version}-20091209.tar.bz2
Source1: thunderbird-langpacks-%{version}-20100120.tar.bz2
%endif
Source10: thunderbird-mozconfig
Source11: thunderbird-mozconfig-branded
@ -43,6 +45,7 @@ Source21: thunderbird.sh.in
Source30: thunderbird-open-browser.sh
Source100: find-external-requires
Patch0: thunderbird-version.patch
Patch1: mozilla-jemalloc.patch
Patch2: thunderbird-shared-error.patch
Patch3: thunderbird-debuginfo-fix-include.patch
@ -134,6 +137,10 @@ Mozilla Thunderbird is a standalone mail and newsgroup client.
%setup -q -c
cd %{tarballdir}
sed -e 's/__RPM_VERSION_INTERNAL__/%{version_internal}/' %{P:%%PATCH0} \
> version.patch
%{__patch} -p1 -b --suffix .version --fuzz=0 < version.patch
%patch1 -p0 -b .jemalloc
%patch2 -p1 -b .shared-error
@ -168,6 +175,9 @@ cd %{tarballdir}
%build
cd %{tarballdir}
INTERNAL_GECKO=%{version_internal}
MOZ_APP_DIR=%{mozappdir}
# Build with -Os as it helps the browser; also, don't override mozilla's warning
# level; they use -Wall but disable a few warnings that show up _everywhere_
MOZ_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | %{__sed} -e 's/-O2/-Os/' -e 's/-Wall//')
@ -199,6 +209,11 @@ make buildsymbols
%{__rm} -rf $RPM_BUILD_ROOT
cd %{tarballdir}
INTERNAL_GECKO=%{version_internal}
INTERNAL_APP_NAME=%{name}-${INTERNAL_GECKO}
MOZ_APP_DIR=%{_libdir}/${INTERNAL_APP_NAME}
cd %{moz_objdir}
DESTDIR=$RPM_BUILD_ROOT make install
@ -235,7 +250,7 @@ desktop-file-install --vendor mozilla \
# set up the thunderbird start script
rm -f $RPM_BUILD_ROOT/%{_bindir}/thunderbird
%{__cat} %{SOURCE21} | %{__sed} -e 's,TBIRD_VERSION,%{version},g' > \
%{__cat} %{SOURCE21} | %{__sed} -e 's,TBIRD_VERSION,%{version_internal},g' > \
$RPM_BUILD_ROOT%{_bindir}/thunderbird
%{__chmod} 755 $RPM_BUILD_ROOT/%{_bindir}/thunderbird
@ -404,6 +419,9 @@ fi
#===============================================================================
%changelog
* Wed Jan 20 2010 Martin Stransky <stransky@redhat.com> - 3.0.1-1
- Update to 3.0.1
* Mon Jan 18 2010 Martin Stransky <stransky@redhat.com> - 3.0-5
- Added fix for #480603 - thunderbird takes
unacceptably long time to start