Enable crashreporter

This commit is contained in:
Jan Horak 2010-12-17 13:11:00 +01:00
parent 9623912b90
commit b8cdb925f4

View File

@ -22,7 +22,12 @@
%define tarballdir comm-1.9.2
%define official_branding 1
# enable crash reporter only for iX86
%ifarch %{ix86}
%define enable_mozilla_crashreporter 1
%else
%define enable_mozilla_crashreporter 0
%endif
%define version_internal 3.1
%define mozappdir %{_libdir}/%{name}-%{version_internal}
@ -30,7 +35,7 @@
Summary: Mozilla Thunderbird mail/newsgroup client
Name: thunderbird
Version: %{thunderbird_version}
Release: 2%{?dist}
Release: 3%{?dist}
URL: http://www.mozilla.org/projects/thunderbird/
License: MPLv1.1 or GPLv2+ or LGPLv2+
Group: Applications/Internet
@ -335,8 +340,10 @@ touch $RPM_BUILD_ROOT%{mozappdir}/components/xpti.dat
# Add debuginfo for crash-stats.mozilla.com
%if %{enable_mozilla_crashreporter}
mkdir -p $RPM_BUILD_ROOT%{_exec_prefix}/lib/debug%{mozappdir}
cp %{moz_objdir}/mozilla/dist/thunderbird-%{thunderbird_version}.en-US.linux-*.crashreporter-symbols.zip $RPM_BUILD_ROOT%{_exec_prefix}/lib/debug%{mozappdir}
# Debug symbols are stored in /usr/lib even in x86_64 arch
DEBUG_LIB_DIR=`echo %{_libdir}|sed -e "s/lib64/lib/"`
mkdir -p $RPM_BUILD_ROOT$DEBUG_LIB_DIR/debug%{mozappdir}
cp objdir-tb/mozilla/dist/%{name}-%{thunderbird_version}*.crashreporter-symbols.zip $RPM_BUILD_ROOT$DEBUG_LIB_DIR/debug%{mozappdir}
%endif
%if %{with_lightning_extension}
@ -441,6 +448,9 @@ fi
#===============================================================================
%changelog
* Wed Dec 15 2010 Jan Horak <jhorak@redhat.com> - 3.1.7-3
- Mozilla crash reporter enabled
* Thu Dec 9 2010 Jan Horak <jhorak@redhat.com> - 3.1.7-2
- Fixed useragent