Search
j0ke.net Open Build Service
>
Projects
>
mozilla
>
mozilla-xulrunner190
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 18
[-]
[+]
Added
mozilla-xulrunner190.spec
@@ -0,0 +1,408 @@ +# +# spec file for package mozilla-xulrunner190 (Version 1.9) +# +# 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: mozilla-xulrunner190 +BuildRequires: gcc-c++ libgnomeui-devel libidl-devel update-desktop-files zip python startup-notification-devel +%if %suse_version > 1020 +BuildRequires: fdupes +%endif +%if %suse_version > 1030 +BuildRequires: hunspell-devel +%endif +License: GPL v2 or later; LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL) +Version: 1.9.0 +Release: 1 +Summary: Mozilla Runtime Environment 1.9 +URL: http://www.mozilla.org/ +Group: Productivity/Other +Provides: gecko19 +Source: xulrunner-source-%{version}.tar.bz2 +Source1: l10n-%{version}.tar.bz2 +Source2: find-external-requires.sh +Source4: xulrunner-openSUSE-prefs.js +Source5: add-plugins.sh.in +Patch1: mozilla-gcc43.patch +Patch2: locale.patch +Patch3: mozilla-pkgconfig.patch +Patch4: idldir.patch +Patch5: mozilla-path_len.patch +Patch6: mozilla-sqlite-req.patch +Patch7: mozilla-nongnome-proxies.patch +Patch8: mozilla-network-status.patch +Patch9: mozilla-system-hunspell.patch +Patch10: mozilla-restart-cmd.patch +Patch11: mozilla-cairo-no-sse.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +PreReq: libstdc++ expat pango xorg-x11-libs fontconfig freetype2 +PreReq: gtk2 atk glib2 update-alternatives coreutils +### build configuration ### +%define has_system_nspr 0 +%define has_system_nss 0 +%define has_system_cairo 0 +%define localize 1 +%if %suse_version > 1030 || 0%{?opensuse_bs} +%define has_system_nspr 1 +%define has_system_nss 1 +%endif +%define releasedate 2008061600 +%define version_internal 1.9.0 +%define apiversion 1.9 +%define uaweight 190000 +### configuration end ### +%define _use_internal_dependency_generator 0 +%define __find_requires sh %{SOURCE2} +%if %has_system_nspr +BuildRequires: mozilla-nspr-devel +PreReq: mozilla-nspr >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr) +%endif +%if %has_system_nss +BuildRequires: mozilla-nss-devel +PreReq: mozilla-nss >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss) +%endif +%if %suse_version > 1030 +BuildRequires: sqlite3-devel +%endif +Recommends: %{name}-gnomevfs + +%description +XULRunner is a single installable package that can be used to bootstrap +multiple XUL+XPCOM applications that are as rich as Firefox and +Thunderbird. + + +Authors: +-------- + Mozilla Foundation <drivers@mozilla.org> + +%package devel +Summary: XULRunner/Gecko SDK 1.9 +License: GPL v2 or later; LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL) +Group: Development/Libraries/Other +%if %has_system_nspr +Requires: mozilla-nspr-devel >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr-devel) +%endif +%if %has_system_nss +Requires: mozilla-nss-devel >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss-devel) +%endif +PreReq: %{name} = %{version} + +%description devel +Software Development Kit to embed XUL or Gecko into other applications. + + +Authors: +-------- + Mozilla Foundation <drivers@mozilla.org> + +%package translations +Summary: Translations for XULRunner 1.9 +License: GPL v2 or later; LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL) +Group: System/Localization +PreReq: %{name} = %{version} +Provides: locale(%{name}:af;ar;be;ca;cs;da;de;el;en_GB;es_AR;es_ES;eu;fi;fr;fy_NL;ga_IE;gu_IN;he;hu;id;it;ja;ka;ko;ku;lt;mk;mn;nb_NO;nl;nn_NO;pa_IN;pl;pt_BR;pt_PT;ro;ru;sk;sq;sr;sv_SE;tr;uk;zh_CN;zh_TW) +# from OBS and 11.0beta updates +Provides: %{name}-lang = %{version} +Obsoletes: %{name}-lang < %{version} + +%description translations +XULRunner is a single installable package that can be used to bootstrap +multiple XUL+XPCOM applications that are as rich as Firefox and +Thunderbird. + +This package contains all supported languages but en-US which is +delivered in the main package. + +Authors: +-------- + Mozilla Foundation <drivers@mozilla.org> + +%package gnomevfs +Summary: XULRunner components depending on gnome-vfs +License: GPL v2 or later; LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL) +Group: Productivity/Other +PreReq: %{name} = %{version}-%{release} + +%description gnomevfs +This subpackage contains the Necko Gnome-VFS and Gnome components which +rely on the gnome-vfs subsystem to be installed. +They are recommended for full desktop integration but not mandatory for +small disk footprint KDE installations for example. + + +%debug_package + +%prep +%setup -n mozilla -b 1 -q +%patch1 +%patch2 +%patch3 +%patch4 +%patch5 -p1 +%patch6 +%patch7 +%patch8 +pushd extensions +%patch9 +popd +%patch10 +%patch11 + +%build +MOZ_APP_DIR=%{_libdir}/%{name}-%{version_internal} +export MOZ_BUILD_DATE=%{releasedate} +#export LD_LIBRARY_PATH=$RPM_BUILD_DIR/mozilla/dist/bin +export CFLAGS="$RPM_OPT_FLAGS -g -Os -fno-strict-aliasing -fstack-protector" +%ifarch ppc64 +export CFLAGS="$CFLAGS -mminimal-toc" +%endif +export CXXFLAGS="$CFLAGS" +export LDFLAGS="-Wl,-rpath -Wl,${MOZ_APP_DIR}" +export MOZCONFIG=$RPM_BUILD_DIR/mozconfig +export MOZILLA_OFFICIAL=1 +export BUILD_OFFICIAL=1 +export MOZ_MILESTONE_RELEASE=1 +# +cat << EOF > $MOZCONFIG +mk_add_options MOZILLA_OFFICIAL=1 +mk_add_options BUILD_OFFICIAL=1 +mk_add_options MOZ_MILESTONE_RELEASE=1 +mk_add_options MOZ_MAKE_FLAGS=%{?jobs:-j%jobs} +. \$topsrcdir/xulrunner/config/mozconfig +ac_add_options --prefix=%{_prefix} +ac_add_options --libdir=%{_libdir} +ac_add_options --sysconfdir=%{_sysconfdir} +ac_add_options --mandir=%{_mandir} +ac_add_options --includedir=%{_includedir} +ac_add_options --enable-optimize +ac_add_options --enable-extensions=default +ac_add_options --with-system-jpeg +#ac_add_options --with-system-png # no APNG support +ac_add_options --with-system-zlib +ac_add_options --enable-xft +ac_add_options --disable-freetype2 +ac_add_options --enable-svg +ac_add_options --enable-canvas +ac_add_options --disable-tests +ac_add_options --disable-mochitest +ac_add_options --disable-installer +ac_add_options --disable-javaxpcom +ac_add_options --disable-crashreporter +ac_add_options --enable-startup-notification