Search
j0ke.net Open Build Service
>
Projects
>
mozilla
>
MozillaThunderbird
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 3
[-]
[+]
Added
MozillaThunderbird.spec
@@ -0,0 +1,667 @@ +# +# spec file for package MozillaThunderbird (Version 2.0.0.12) +# +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: MozillaThunderbird +BuildRequires: gcc-c++ libgnomeui-devel libidl-devel orbit-devel update-desktop-files zip unzip +%if %suse_version > 1020 +BuildRequires: fdupes +%endif +# fix broken 9.3 requirements +%if %suse_version <= 930 +BuildRequires: freetype2-devel popt-devel +%endif +# fix broken SLES9 requirements +%if %suse_version == 910 +BuildRequires: pkgconfig gnome-vfs2 libgnome libgnomeui +%endif +License: MPL/GPL/LGPL +Version: 2.0.0.12 +Release: 2 +Summary: The Stand-Alone Mozilla Mail Component +URL: http://www.mozilla.org/products/thunderbird/ +Group: Productivity/Networking/Email/Clients +Source: thunderbird-%{version}-source.tar.bz2 +Source1: MozillaThunderbird.desktop +Source2: add-plugins.sh.in +Source3: mozilla.sh.in +Source4: l10n-%{version}.tar.bz2 +Source5: mailredirect-0.7.4.xpi +Source6: suse-default-prefs.js +Source9: enigmail-0.95.6.tar.gz +Source11: enigmail.manifest +Patch1: replytolist.patch +Patch2: thunderbird-appname.patch +Patch3: mozilla-gcc4.3-fixes.patch +Patch4: locale.patch +Patch5: abuild.patch +Patch6: nspr-prdtoa.patch +Patch7: enig-shared.patch +Patch8: gcc-undefined-ops.patch +Patch9: tb-develdirs.patch +Patch10: mips-buildfix.diff +Patch11: lightning.patch +Patch12: misc.dif +Patch13: nss-opt.patch +Patch14: html-compose.patch +Patch15: system-extensions.patch +Patch16: list-replyto-clobber.patch +Patch17: mozilla-path_len.patch +Patch22: cjk-postscript-fonts.dif +Patch25: postscript.patch +Patch26: cups-paper.patch +Patch27: thunderbird-1.5.0.8-uninitalized-vars-232305.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +PreReq: libstdc++ fileutils textutils /bin/sh +%if %suse_version > 1000 +Suggests: %{name}-translations +%endif +%define has_system_cairo 0 +%define has_system_nspr 0 +%define has_system_nss 0 +%if %suse_version > 930 +%define has_system_cairo 1 +%endif +%if %suse_version > 1010 || %opensuse_bs +%define has_system_nspr 1 +# NSS version on 10.1 is too old +%define has_system_nss 1 +%endif +%if %has_system_nspr +BuildRequires: mozilla-nspr-devel +Requires: mozilla-nspr >= %( echo `rpm -q --queryformat '%{VERSION}' mozilla-nspr`) +%endif +%if %has_system_nss +BuildRequires: mozilla-nss-devel +%endif +%define _unpackaged_files_terminate_build 0 +%define releasedate 2008022600 +%define progname thunderbird +%define progdir %{_prefix}/%_lib/thunderbird +%define my_provides /tmp/my-provides +%define my_requires /tmp/my-requires +%if %suse_version > 920 +%define libgssapi libgssapi_krb5.so.2 +%else +%define libgssapi libgssapi.so.1 +%endif +### build options +%define milestone 1 +%define build_enigmail 1 +%define localize 1 +### build options end +%if %build_enigmail +Requires: /usr/bin/gpg +%if %suse_version > 1020 +Requires: pinentry-dialog +%endif +%endif + +%description +Mozilla Thunderbird is a redesign of the Mozilla Mail component. It is +written using the XUL user interface language and designed to be +cross-platform. It is a stand-alone application instead of part of the +Mozilla application suite. + + + +Authors: +-------- + Mozilla Foundation <drivers@mozilla.org> + +%package translations +Summary: Translations of MozillaThunderbird +Provides: locale(MozillaThunderbird:af;be;bg;ca;cs;da;de;el;en_GB;es_AR;es_ES;eu;fi;fr;ga_IE;he;hu;it;ja;ko;lt;mk;nb_NO;nl;nn_NO;pa_IN;pl;pt_BR;pt_PT;ru;sk;sl;sv_SE;tr;uk;zh_CN;zh_TW) +Group: Productivity/Networking/Email/Clients +PreReq: %{name} = %{version} + +%description translations +This package contains several optional languages for the user interface +of MozillaThunderbird. + +Authors: +-------- + Mozilla Foundation <drivers@mozilla.org> + +%package devel +Summary: Mozilla Thunderbird SDK +Group: Development/Libraries/Other +%if %has_system_nspr +Requires: mozilla-nspr-devel >= %( echo `rpm -q --queryformat '%{VERSION}' mozilla-nspr-devel`) +%endif +%if %has_system_nss +PreReq: mozilla-nss-devel +%endif +PreReq: %{name} = %{version} + +%description devel +Software Development Kit to build plugins/extensions against Thunderbird. + +Authors: +-------- + Mozilla Foundation <drivers@mozilla.org> + + +%debug_package + +%prep +%if %build_enigmail +%setup -n mozilla -q -b 4 -b 9 +cd $RPM_BUILD_DIR +%patch7 +%else +%setup -n mozilla -q -b 4 +%endif +cd $RPM_BUILD_DIR/mozilla +%patch1 +%patch2 +%patch3 +%patch4 +%patch5 +%patch6 +%patch8 +%patch9 +%patch10 +#%patch11 +%patch12 +%patch13 +%patch14 +%patch15 +%patch16 +%patch17 -p1 +%patch22 +%patch25 +%patch26 +%patch27 -p0 + +%build +export MOZ_BUILD_DATE=%{releasedate} +export MOZILLA_OFFICIAL=1 +export BUILD_OFFICIAL=1 +export CFLAGS="$RPM_OPT_FLAGS -g -Os -fno-strict-aliasing" +%if %suse_version > 1000 +export CFLAGS="$CFLAGS -fstack-protector" +%endif +# enigmail build fails with visibility enabled +%if %suse_version > 1020 +%ifarch x86_64 s390 s390x +export ac_cv_visibility_hidden="no" +%endif +# hopefully only temporary change for gcc 4.3 +%if %suse_version > 1030