# HG changeset patch # User Wolfgang Rosenauer # Date 1274444327 -7200 # Node ID 93fb7400b957a8c0c10047346f23c7c6f61383f5 # Parent 4708409c896c964c06f5ead9c69b0ab1eafd76d7 Move mozilla-xulrunner192 -> mozilla-xulrunner193 Remove patches which are already in m-c diff -r 4708409c896c -r 93fb7400b957 MozillaFirefox/firefox-crashreporter.patch --- a/MozillaFirefox/firefox-crashreporter.patch Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -../firefox-crashreporter.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 MozillaFirefox/firefox-no-gnomevfs.patch --- a/MozillaFirefox/firefox-no-gnomevfs.patch Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -../firefox-no-gnomevfs.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 MozillaFirefox/mozilla-crashreporter-x86_64.patch --- a/MozillaFirefox/mozilla-crashreporter-x86_64.patch Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -../mozilla-crashreporter-x86_64.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 firefox-crashreporter.patch --- a/firefox-crashreporter.patch Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,49 +0,0 @@ -diff --git a/browser/app/Makefile.in b/browser/app/Makefile.in ---- a/browser/app/Makefile.in -+++ b/browser/app/Makefile.in -@@ -223,22 +223,16 @@ endif - ifdef DEBUG - RCFLAGS += -DDEBUG - endif - RCFLAGS += -DFIREFOX_ICO=\"$(DIST)/branding/firefox-os2.ico\" -DDOCUMENT_ICO=\"$(DIST)/branding/document-os2.ico\" - endif - - include $(topsrcdir)/config/rules.mk - --DEFINES += -DFIREFOX_ICO=\"$(DIST)/branding/firefox.ico\" -DDOCUMENT_ICO=\"$(DIST)/branding/document.ico\" -- --ifdef MOZILLA_OFFICIAL --DEFINES += -DMOZILLA_OFFICIAL --endif -- - ifdef BUILD_STATIC_LIBS - include $(topsrcdir)/config/static-rules.mk - - DEFINES += -DIMPL_XREAPI - endif - - ifeq ($(MOZ_WIDGET_TOOLKIT),photon) - LIBS += -lphexlib -@@ -277,16 +271,22 @@ install:: $(MOZ_APP_NAME) - - GARBAGE += $(MOZ_APP_NAME) - GARBAGE += $(addprefix $(DIST)/bin/defaults/pref/, firefox.js) - - endif - - endif # LIBXUL_SDK - -+ifdef MOZILLA_OFFICIAL -+DEFINES += -DMOZILLA_OFFICIAL -+endif -+ -+DEFINES += -DFIREFOX_ICO=\"$(DIST)/branding/firefox.ico\" -DDOCUMENT_ICO=\"$(DIST)/branding/document.ico\" -+ - ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2) - libs:: - $(INSTALL) $(IFLAGS1) $(DIST)/branding/mozicon128.png $(DIST)/bin/icons - $(INSTALL) $(IFLAGS1) $(DIST)/branding/document.png $(DIST)/bin/icons - $(INSTALL) $(IFLAGS1) $(DIST)/branding/default16.png $(DIST)/bin/chrome/icons/default - $(INSTALL) $(IFLAGS1) $(DIST)/branding/default32.png $(DIST)/bin/chrome/icons/default - $(INSTALL) $(IFLAGS1) $(DIST)/branding/default48.png $(DIST)/bin/chrome/icons/default - endif diff -r 4708409c896c -r 93fb7400b957 firefox-no-gnomevfs.patch --- a/firefox-no-gnomevfs.patch Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -From: Wolfgang Rosenauer -Subject: Do not build nkgnomevfs in xul app builds -References: -https://bugzilla.mozilla.org/show_bug.cgi?id=512671 - -diff --git a/configure.in b/configure.in ---- a/configure.in -+++ b/configure.in -@@ -5744,6 +5744,13 @@ if test -z "$MOZ_ENABLE_GNOMEVFS" && tes - MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|gnomevfs||'` - fi - -+if test ! -z "$LIBXUL_SDK_DIR" && test `echo "$MOZ_EXTENSIONS" | grep -c gnomevfs` -ne 0; then -+ if test -n "$MOZ_X11"; then -+ AC_MSG_WARN([nkgnomevfs is already part of xulrunner. Removing gnomevfs from MOZ_EXTENSIONS.]) -+ fi -+ MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|gnomevfs||'` -+fi -+ - if test -z "$MOZ_JSDEBUGGER" && test `echo "$MOZ_EXTENSIONS" | grep -c venkman` -ne 0; then - AC_MSG_WARN([Cannot build venkman without JavaScript debug library. Removing venkman from MOZ_EXTENSIONS.]) - MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|venkman||'` diff -r 4708409c896c -r 93fb7400b957 mozilla-crashreporter-x86_64.patch --- a/mozilla-crashreporter-x86_64.patch Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +0,0 @@ -# HG changeset patch -# User Ted Mielczarek -# Date 1269522979 14400 -# Node ID a00284a2b2f0063b0f053938c1775cf207fe25bb -# Parent 33d05f60932bac3d66231a54840cbdd173297fff -bug 554021 - enable compiling Breakpad on Linux/x86-64 by default - -diff --git a/configure.in b/configure.in ---- a/configure.in -+++ b/configure.in -@@ -5858,13 +5858,20 @@ - dnl = Breakpad crash reporting (on by default on supported platforms) - dnl ======================================================== - --if (test "$OS_ARCH" = "WINNT" -a -z "$GNU_CC" \ -- || test "$OS_ARCH" = "Darwin" \ -- || test "$OS_ARCH" = "Linux" -a "$CPU_ARCH" = "x86" \ -- || test "$OS_ARCH" = "SunOS") \ -- && test -z "$HAVE_64BIT_OS"; then -- MOZ_CRASHREPORTER=1 --fi -+case $target in -+i?86-*-mingw*) -+ MOZ_CRASHREPORTER=1 -+ ;; -+i?86-apple-darwin*|powerpc-apple-darwin*) -+ MOZ_CRASHREPORTER=1 -+ ;; -+i?86-*-linux*|x86_64-*-linux*) -+ MOZ_CRASHREPORTER=1 -+ ;; -+*solaris*) -+ MOZ_CRASHREPORTER=1 -+ ;; -+esac - - MOZ_ARG_DISABLE_BOOL(crashreporter, - [ --disable-crashreporter Disable breakpad crash reporting], diff -r 4708409c896c -r 93fb7400b957 mozilla-helper-app.patch --- a/mozilla-helper-app.patch Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,77 +0,0 @@ -From: Wolfgang Rosenauer -Subject: no helper app for application/octet-stream but recognized extensions -References: -https://bugzilla.novell.com/show_bug.cgi?id=406979 -https://bugzilla.mozilla.org/show_bug.cgi?id=327323 - -diff --git a/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp b/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp ---- a/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp -+++ b/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp -@@ -47,6 +47,7 @@ - #include "nsMIMEInfoUnix.h" - #include "nsGNOMERegistry.h" - #include "nsIGnomeVFSService.h" -+#include "nsAutoPtr.h" - #ifdef MOZ_ENABLE_DBUS - #include "nsDBusHandlerApp.h" - #endif -@@ -74,13 +75,16 @@ NS_IMETHODIMP - nsMIMEInfoUnix::GetHasDefaultHandler(PRBool *_retval) - { - *_retval = PR_FALSE; -- nsCOMPtr vfs = do_GetService(NS_GNOMEVFSSERVICE_CONTRACTID); -- if (vfs) { -- nsCOMPtr app; -- if (NS_SUCCEEDED(vfs->GetAppForMimeType(mType, getter_AddRefs(app))) && app) -- *_retval = PR_TRUE; -+ nsRefPtr mimeInfo = nsGNOMERegistry::GetFromType(mType); -+ if (!mimeInfo) { -+ nsCAutoString ext; -+ GetPrimaryExtension(ext); -+ mimeInfo = nsGNOMERegistry::GetFromExtension(ext); - } - -+ if (mimeInfo) -+ *_retval = PR_TRUE; -+ - if (*_retval) - return NS_OK; - -@@ -113,6 +117,16 @@ nsMIMEInfoUnix::LaunchDefaultWithFile(ns - nsCOMPtr app; - if (NS_SUCCEEDED(vfs->GetAppForMimeType(mType, getter_AddRefs(app))) && app) - return app->Launch(nativePath); -+ -+ // If we haven't got an app we try to get a valid one by searching for the -+ // extension mapped type -+ nsRefPtr mimeInfo = nsGNOMERegistry::GetFromExtension(nativePath); -+ if (mimeInfo) { -+ nsCAutoString type; -+ mimeInfo->GetType(type); -+ if (NS_SUCCEEDED(vfs->GetAppForMimeType(type, getter_AddRefs(app))) && app) -+ return app->Launch(nativePath); -+ } - } - - if (!mDefaultApplication) -diff --git a/uriloader/exthandler/unix/nsOSHelperAppService.cpp b/uriloader/exthandler/unix/nsOSHelperAppService.cpp ---- a/uriloader/exthandler/unix/nsOSHelperAppService.cpp -+++ b/uriloader/exthandler/unix/nsOSHelperAppService.cpp -@@ -1580,8 +1580,16 @@ nsOSHelperAppService::GetMIMEInfoFromOS( - return retval; - } - -- // Copy the attributes of retval onto miByExt, to return it -+ // Copy the attributes of retval (mimeinfo from type) onto miByExt, to -+ // return it -+ // but reset to just collected mDefaultAppDescription (from ext) -+ // and preserve the primary extension as well -+ nsAutoString byExtDefault; -+ miByExt->GetDefaultDescription(byExtDefault); -+ retval->SetDefaultDescription(byExtDefault); - retval->CopyBasicDataTo(miByExt); -+ if (!aFileExt.IsEmpty()) -+ miByExt->SetPrimaryExtension(aFileExt); - - miByExt.swap(retval); - } diff -r 4708409c896c -r 93fb7400b957 mozilla-ua-locale-pref.patch --- a/mozilla-ua-locale-pref.patch Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,140 +0,0 @@ -diff --git a/chrome/src/nsChromeRegistry.cpp b/chrome/src/nsChromeRegistry.cpp ---- a/chrome/src/nsChromeRegistry.cpp -+++ b/chrome/src/nsChromeRegistry.cpp -@@ -1267,20 +1267,21 @@ nsChromeRegistry::WrappersEnabled(nsIURI - return PL_DHASH_ENTRY_IS_LIVE(entry) && - entry->flags & PackageEntry::XPCNATIVEWRAPPERS; - } - - nsresult - nsChromeRegistry::SelectLocaleFromPref(nsIPrefBranch* prefs) - { - nsresult rv; -- PRBool matchOSLocale = PR_FALSE; -+ PRBool matchOSLocale = PR_FALSE, userLocaleOverride = PR_FALSE; -+ prefs->PrefHasUserValue(SELECTED_LOCALE_PREF, &userLocaleOverride); - rv = prefs->GetBoolPref(MATCH_OS_LOCALE_PREF, &matchOSLocale); - -- if (NS_SUCCEEDED(rv) && matchOSLocale) { -+ if (NS_SUCCEEDED(rv) && matchOSLocale && !userLocaleOverride) { - // compute lang and region code only when needed! - nsCAutoString uiLocale; - rv = getUILangCountry(uiLocale); - if (NS_SUCCEEDED(rv)) - mSelectedLocale = uiLocale; - } - else { - nsXPIDLCString provider; -diff --git a/chrome/test/unit/data/test_bug519468.manifest b/chrome/test/unit/data/test_bug519468.manifest -deleted file mode 100644 ---- a/chrome/test/unit/data/test_bug519468.manifest -+++ /dev/null -@@ -1,2 +0,0 @@ --locale testmatchos en-US jar:en-US.jar!/locale/en-US/global/ --locale testmatchos fr-FR jar:en-US.jar!/locale/en-US/global/ -diff --git a/chrome/test/unit/test_bug519468.js b/chrome/test/unit/test_bug519468.js ---- a/chrome/test/unit/test_bug519468.js -+++ b/chrome/test/unit/test_bug519468.js -@@ -31,50 +31,90 @@ - * decision by deleting the provisions above and replace them with the notice - * and other provisions required by the GPL or the LGPL. If you do not delete - * the provisions above, a recipient may use your version of this file under - * the terms of any one of the MPL, the GPL or the LGPL. - * - * ***** END LICENSE BLOCK ***** - */ - -+function write_locale(stream, locale, package) { -+ var s = "locale " + package + " " + locale + " jar:" + locale + ".jar!"; -+ s += "/locale/" + locale + "/" + package +"/\n"; -+ stream.write(s, s.length); -+} -+ -+var localeService = Cc["@mozilla.org/intl/nslocaleservice;1"] -+ .getService(Ci.nsILocaleService); -+ -+var systemLocale = localeService.getLocaleComponentForUserAgent(); -+ -+var locales; -+ -+if (systemLocale == "en-US") -+ locales = [ "en-US", "fr-FR", "de-DE" ]; -+else if (systemLocale == "fr-FR") -+ locales = [ "en-US", systemLocale, "de-DE" ]; -+else -+ locales = [ "en-US", systemLocale, "fr-FR" ]; -+ -+var workingDir = Cc["@mozilla.org/file/directory_service;1"]. -+ getService(Ci.nsIProperties).get("TmpD", Ci.nsIFile); -+var manifest = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile); -+manifest.initWithFile(workingDir); -+manifest.append("test_bug519468.manifest"); -+manifest.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, 0600); -+var stream = Cc["@mozilla.org/network/file-output-stream;1"]. -+ createInstance(Ci.nsIFileOutputStream); -+stream.init(manifest, 0x04 | 0x08 | 0x20, 0600, 0); // write, create, truncate -+locales.slice(0,2).forEach(function(l) write_locale(stream, l, "testmatchos")); -+write_locale(stream, locales[2], "testnomatchos"); -+stream.close(); -+ - var MANIFESTS = [ -- do_get_file("data/test_bug519468.manifest") -+ manifest - ]; - - registerManifests(MANIFESTS); - - var chromeReg = Cc["@mozilla.org/chrome/chrome-registry;1"] - .getService(Ci.nsIXULChromeRegistry) - .QueryInterface(Ci.nsIToolkitChromeRegistry); - --var localeService = Cc["@mozilla.org/intl/nslocaleservice;1"] -- .getService(Ci.nsILocaleService); -- - var prefService = Cc["@mozilla.org/preferences-service;1"] - .getService(Ci.nsIPrefService) - .QueryInterface(Ci.nsIPrefBranch); - - function test_locale(aTest) { - prefService.setBoolPref("intl.locale.matchOS", aTest.matchOS); -- prefService.setCharPref("general.useragent.locale", aTest.selected || "en-US"); -+ if (aTest.selected) -+ prefService.setCharPref("general.useragent.locale", aTest.selected); -+ else -+ try { -+ prefService.clearUserPref("general.useragent.locale"); -+ } catch(e) {} - -- var selectedLocale = chromeReg.getSelectedLocale("testmatchos"); -+ var selectedLocale = chromeReg.getSelectedLocale(aTest.package); - do_check_eq(selectedLocale, aTest.locale); - } - - function run_test() - { -- var systemLocale = localeService.getLocaleComponentForUserAgent(); -- - var tests = [ -- {matchOS: false, selected: null, locale: "en-US"}, - {matchOS: true, selected: null, locale: systemLocale}, -- {matchOS: true, selected: "fr-FR", locale: systemLocale}, -- {matchOS: false, selected: "fr-FR", locale: "fr-FR"}, -- {matchOS: true, selected: null, locale: systemLocale} -+ {matchOS: true, selected: locales[0], locale: locales[0]}, -+ {matchOS: true, selected: locales[1], locale: locales[1]}, -+ {matchOS: true, selected: locales[2], locale: locales[0]}, -+ {matchOS: true, selected: null, locale: locales[2], package: "testnomatchos"}, -+ {matchOS: false, selected: null, locale: locales[0]}, -+ {matchOS: false, selected: locales[0], locale: locales[0]}, -+ {matchOS: false, selected: locales[1], locale: locales[1]}, -+ {matchOS: false, selected: locales[2], locale: locales[0]}, - ]; - - for (var i = 0; i < tests.length; ++ i) { - var test = tests[i]; -+ if (!test.package) -+ test.package = "testmatchos"; - test_locale(test); - } -+ manifest.remove(false); - } diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/add-plugins.sh.in --- a/mozilla-xulrunner192/add-plugins.sh.in Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,57 +0,0 @@ -#! /bin/sh -# Copyright (c) 2008 Wolfgang Rosenauer. All rights reserved. -# - -# check if we are started as root -# only one of UID and USER must be set correctly -if test "$UID" != 0 -a "$USER" != root; then - echo "You must be root to start $0." - exit 1 -fi - -PREFIX="%PROGDIR" - -# dictionaries -MYSPELL=/usr/share/myspell -MOZ_SPELL=$PREFIX/dictionaries -if [ -d $MOZ_SPELL ] ; then - if [ -d $MYSPELL ] ; then - for dict in $MYSPELL/??[-_]??.aff ; do - - # check is it is really the file or it is a string which contain '??_??' - if ! [ -e $dict ] ; then - continue - fi - - # the dict file name - dict_file=`echo ${dict##*/}` - - # the dict file has a valid name - lang=`echo ${dict_file:0:2}` - country=`echo ${dict_file:3:2}` - - # check for .dic file - if [ ! -r $MYSPELL/${lang}[-_]${country}.dic ] ; then - continue - fi - - # create links - if [ ! -r $MOZ_SPELL/${lang}[-_]${country}.aff ] ; then - ln -sf $MYSPELL/${lang}[-_]${country}.aff \ - $MOZ_SPELL/${lang}-${country}.aff - fi - if [ ! -r $MOZ_SPELL/${lang}[-_]${country}.dic ] ; then - ln -sf $MYSPELL/${lang}[-_]${country}.dic \ - $MOZ_SPELL/${lang}-${country}.dic - fi - done - echo "-> added myspell dictionaries" - fi - - # remove broken links - for dict in $MOZ_SPELL/*.{aff,dic} ; do - if ! [ -r $dict ] ; then - rm -f $dict - fi - done -fi diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/baselibs.conf --- a/mozilla-xulrunner192/baselibs.conf Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -mozilla-xulrunner192 - +/usr/lib(64)?/xulrunner-.* - +/etc/gre.d/.* - recommends "mozilla-xulrunner192-gnome-" - requires "mozilla-js192-" - -mozilla-js192 - -mozilla-xulrunner192-translations-common - +/usr/lib(64)?/xulrunner-.* - requires "mozilla-xulrunner192- = " - supplements "packageand(mozilla-xulrunner192-translations-common:mozilla-xulrunner192-)" - -mozilla-xulrunner192-translations-other - +/usr/lib(64)?/xulrunner-.* - requires "mozilla-xulrunner192- = " - supplements "packageand(mozilla-xulrunner192-translations-other:mozilla-xulrunner192-)" - -mozilla-xulrunner192-gnome - +/usr/lib(64)?/xulrunner-.* - requires "mozilla-xulrunner192- = " diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/create-tar.sh --- a/mozilla-xulrunner192/create-tar.sh Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#!/bin/bash - -RELEASE_TAG="FIREFOX_3_6_4_RELEASE" -VERSION="1.9.2.4" - -# mozilla -hg clone http://hg.mozilla.org/releases/mozilla-1.9.2 mozilla -pushd mozilla -hg update -r $RELEASE_TAG -popd -tar cjf xulrunner-source-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla - -# l10n -test ! -d l10n && mkdir l10n -for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do - case $locale in - ja-JP-mac|en-US) - ;; - *) - hg clone http://hg.mozilla.org/releases/l10n-mozilla-1.9.2/$locale l10n/$locale - hg -R l10n/$locale up -C -r $RELEASE_TAG - ;; - esac -done -tar cjf l10n-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n - diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/find-external-requires.sh --- a/mozilla-xulrunner192/find-external-requires.sh Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -#!/bin/sh - -# Finds requirements provided outside of the current file set - -filelist=`sed "s/[]['\"*?{}]/\\\\\&/g"` - -provides=`echo "$filelist" | /usr/lib/rpm/find-provides` - -{ -for f in $filelist ; do - echo $f | /usr/lib/rpm/find-requires | while read req ; do - found=0 - for p in $provides ; do - if [ "$req" = "$p" ]; then - found=1 - fi - done - if [ "$found" = "0" ]; then - echo $req - fi - done -done -} | sort -u diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/gecko-lockdown.patch --- a/mozilla-xulrunner192/gecko-lockdown.patch Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -../gecko-lockdown.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/idldir.patch --- a/mozilla-xulrunner192/idldir.patch Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -../idldir.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/mozilla-crashreporter-x86_64.patch --- a/mozilla-xulrunner192/mozilla-crashreporter-x86_64.patch Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -../mozilla-crashreporter-x86_64.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/mozilla-gconf-backend.patch --- a/mozilla-xulrunner192/mozilla-gconf-backend.patch Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -../mozilla-gconf-backend.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/mozilla-helper-app.patch --- a/mozilla-xulrunner192/mozilla-helper-app.patch Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -../mozilla-helper-app.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/mozilla-kde.patch --- a/mozilla-xulrunner192/mozilla-kde.patch Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -../mozilla-kde.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/mozilla-libproxy.patch --- a/mozilla-xulrunner192/mozilla-libproxy.patch Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -../mozilla-libproxy.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/mozilla-nongnome-proxies.patch --- a/mozilla-xulrunner192/mozilla-nongnome-proxies.patch Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -../mozilla-nongnome-proxies.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/mozilla-pkgconfig.patch --- a/mozilla-xulrunner192/mozilla-pkgconfig.patch Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -../mozilla-pkgconfig.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/mozilla-prefer_plugin_pref.patch --- a/mozilla-xulrunner192/mozilla-prefer_plugin_pref.patch Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -../mozilla-prefer_plugin_pref.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/mozilla-shared-nss-db.patch --- a/mozilla-xulrunner192/mozilla-shared-nss-db.patch Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -../mozilla-shared-nss-db.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/mozilla-system-nspr.patch --- a/mozilla-xulrunner192/mozilla-system-nspr.patch Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -../mozilla-system-nspr.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/mozilla-ua-locale-pref.patch --- a/mozilla-xulrunner192/mozilla-ua-locale-pref.patch Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -../mozilla-ua-locale-pref.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/mozilla-xulrunner192-rpmlintrc --- a/mozilla-xulrunner192/mozilla-xulrunner192-rpmlintrc Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -addFilter("no-jar-manifest") diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/mozilla-xulrunner192.changes --- a/mozilla-xulrunner192/mozilla-xulrunner192.changes Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,134 +0,0 @@ -------------------------------------------------------------------- -Tue May 4 08:03:37 CEST 2010 - wr@rosenauer.org - -- security update to 1.9.2.4 (Lorentz) - * enable crashreporter also for x86-64 - * provide mozilla-runtime to host NPAPI out of process plugins -- removed libproxy debug message (bnc#604711) - -------------------------------------------------------------------- -Mon Apr 26 07:18:09 CEST 2010 - wr@rosenauer.org - -- point alternatives link to the stable version to improve - robustness (bnc#589037) - -------------------------------------------------------------------- -Sat Apr 24 11:38:24 UTC 2010 - coolo@novell.com - -- buildrequire pkg-config to fix provides - -------------------------------------------------------------------- -Thu Apr 1 11:15:38 UTC 2010 - wr@rosenauer.org - -- security update to 1.9.2.3 - * MFSA 2010-25/CVE-2010-1121 (bmo#555109) - Re-use of freed object due to scope confusion - -------------------------------------------------------------------- -Thu Mar 25 20:04:41 CET 2010 - wr@rosenauer.org - -- security update to 1.9.2.2 (bnc#586567) - * MFSA 2010-08/CVE-2010-1028 - WOFF heap corruption due to integer overflow - * MFSA 2010-09/CVE-2010-0164 (bmo#547143) - Deleted frame reuse in multipart/x-mixed-replace image - * MFSA 2010-10/CVE-2010-0170 (bmo#541530) - XSS via plugins and unprotected Location object - * MFSA 2010-11/CVE-2010-0165/CVE-2010-0166/CVE-2010-0167 - Crashes with evidence of memory corruption - * MFSA 2010-12/CVE-2010-0171 (bmo#531364) - XSS using addEventListener and setTimeout on a wrapped object - * MFSA 2010-13/CVE-2010-0168 (bmo#540642) - Content policy bypass with image preloading - * MFSA 2010-14/CVE-2010-0169 (bmo#535806) - Browser chrome defacement via cached XUL stylesheets - * MFSA 2010-15/CVE-2010-0172 (bmo#537862) - Asynchronous Auth Prompt attaches to wrong window - * MFSA 2010-16/CVE-2010-0173/CVE-2010-0174 - Crashes with evidence of memory corruption - * MFSA 2010-18/CVE-2010-0176 (bmo#538308) - Dangling pointer vulnerability in nsTreeContentView - * MFSA 2010-19/CVE-2010-0177 (bmo#538310) - Dangling pointer vulnerability in nsPluginArray - * MFSA 2010-20/CVE-2010-0178 (bmo#546909) - Chrome privilege escalation via forced URL drag and drop - * MFSA 2010-22/CVE-2009-3555 (bmo#545755) - Update NSS to support TLS renegotiation indication - * MFSA 2010-23/CVE-2010-0181 (bmo#452093) - Image src redirect to mailto: URL opens email editor - * MFSA 2010-24/CVE-2010-0182 (bmo#490790) - XMLDocument::load() doesn't check nsIContentPolicy -- general.useragent.locale in profile overrides - intl.locale.matchOS (bmo#542999) -- split mozilla-js192 package which contains libmozjs only - to allow its installation w/o all GUI dependencies - -------------------------------------------------------------------- -Mon Jan 18 09:28:56 CET 2010 - wr@rosenauer.org - -- update to 1.9.2rc2 -- add update-alternatives %ghost file to filelist starting - with 11.2 (%ghost files are conflicting in earlier versions) -- fixed mozilla-plugin.pc (remove obsolete stable reference) - -------------------------------------------------------------------- -Wed Jan 6 14:10:25 CET 2010 - wr@rosenauer.org - -- update to 1.9.2rc1 - * removed obsolete mozilla-breakpad.patch -- expand -translations-* and -gnome filelists to clean up the - filesystem for upgrades and removals correctly -- enable crashreporter and create breakpad buildsymbols package - for mozilla crashreporter (for ix86) -- drop PreReq usage by cleaning up the different Requires tags - -------------------------------------------------------------------- -Thu Dec 24 14:21:02 CET 2009 - wr@rosenauer.org - -- update to 1.9.2b5 -- removed upstreamed mozilla-abi.patch -- integrated mozilla-kde.patch -- use .autoreg file for autoregistration when needed (bnc#440872) -- enable libproxy support from 11.2 on -- renamed -gnomevfs subpackage to -gnome -- readded lockdown patches and preferences -- fix baselibs.conf - -------------------------------------------------------------------- -Tue Nov 10 14:48:39 CET 2009 - wr@rosenauer.org - -- update to 1.9.2b2 -- merge from xulrunner191 package - -------------------------------------------------------------------- -Sun Nov 1 13:10:23 CET 2009 - wr@rosenauer.org - -- update to 1.9.2b1 -- use newer internal cairo for 11.1 and older - -------------------------------------------------------------------- -Sun Oct 18 13:04:22 CEST 2009 - wr@rosenauer.org - -- reworked PreReq list - -------------------------------------------------------------------- -Fri Oct 16 09:14:47 CEST 2009 - wr@rosenauer.org - -- update to snapshot 1.9.2b2pre (20091015) - (entering beta phase) - -------------------------------------------------------------------- -Mon Sep 21 16:43:18 CEST 2009 - wr@rosenauer.org - -- BuildRequire libiw-devel instead of wireless-tools from 11.2 on - -------------------------------------------------------------------- -Wed Sep 16 23:42:58 CEST 2009 - wr@rosenauer.org - -- new snapshot (20090916) - -------------------------------------------------------------------- -Mon Aug 24 17:37:06 CEST 2009 - wr@rosenauer.org - -- first alpha package of XULRunner 1.9.2 - diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/mozilla-xulrunner192.spec --- a/mozilla-xulrunner192/mozilla-xulrunner192.spec Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,580 +0,0 @@ -# -# spec file for package mozilla-xulrunner192 (Version 1.9.2.4) -# -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. -# 2006-2010 Wolfgang Rosenauer -# -# All modifications and additions to the file contributed by third parties -# remain the property of their copyright owners, unless otherwise agreed -# upon. The license for this file, and modifications and additions to the -# file, is the same license as for the pristine package itself (unless the -# license for the pristine package is not an Open Source License, in which -# case the license is the MIT License). An "Open Source License" is a -# license that conforms to the Open Source Definition (Version 1.9) -# published by the Open Source Initiative. - -# Please submit bugfixes or comments via http://bugs.opensuse.org/ -# - -# norootforbuild - - -Name: mozilla-xulrunner192 -BuildRequires: autoconf213 gcc-c++ libcurl-devel libgnomeui-devel libidl-devel libnotify-devel python startup-notification-devel zip pkg-config -# needed for brp-check-bytecode-version (jar, fastjar would do as well) -BuildRequires: unzip -%if %suse_version > 1020 -BuildRequires: fdupes -%endif -%if %suse_version > 1030 -BuildRequires: hunspell-devel -%endif -%if %suse_version > 1100 -BuildRequires: nss-shared-helper-devel -%endif -%if %suse_version > 1110 -BuildRequires: libiw-devel -BuildRequires: libproxy-devel -%else -BuildRequires: wireless-tools -%endif -License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ -Version: 1.9.2.4 -Release: 1 -%define releasedate 2010050300 -%define version_internal 1.9.2.4 -%define apiversion 1.9.2 -%define uaweight 192040 -Summary: Mozilla Runtime Environment 1.9.2 -Url: http://www.mozilla.org -Group: Productivity/Other -Provides: gecko192 -%if %suse_version >= 1110 -# this is needed to match this package with the kde4 helper package without the main package -# having a hard requirement on the kde4 package -%define kde_helper_version 6 -Provides: mozilla-kde4-version = %{kde_helper_version} -%endif -%ifarch %ix86 -Provides: mozilla-xulrunner192-32bit = %{version}-%{release} -%endif -Source: xulrunner-source-%{version}.tar.bz2 -Source1: l10n-%{version}.tar.bz2 -Source2: find-external-requires.sh -Source3: %{name}-rpmlintrc -Source4: xulrunner-openSUSE-prefs.js -Source5: add-plugins.sh.in -Source6: create-tar.sh -Source7: baselibs.conf -Source8: toolkit-lockdown.js -Patch1: toolkit-download-folder.patch -Patch2: mozilla-libproxy.patch -Patch3: mozilla-pkgconfig.patch -Patch4: idldir.patch -Patch5: mozilla-nongnome-proxies.patch -Patch6: mozilla-helper-app.patch -Patch7: mozilla-prefer_plugin_pref.patch -Patch8: mozilla-shared-nss-db.patch -Patch10: mozilla-kde.patch -# PATCH-FEATURE-SLED FATE#302023, FATE#302024 -Patch11: mozilla-gconf-backend.patch -Patch12: gecko-lockdown.patch -Patch13: toolkit-ui-lockdown.patch -# --- -Patch14: mozilla-system-nspr.patch -Patch15: mozilla-ua-locale-pref.patch -Patch16: mozilla-crashreporter-x86_64.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-build -Requires: mozilla-js192 -Requires(post): update-alternatives coreutils -Requires(preun): update-alternatives coreutils -### build configuration ### -%define crashreporter 1 -%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 -%if %suse_version > 1110 -%define has_system_cairo 1 -%endif -### configuration end ### -%define _use_internal_dependency_generator 0 -%define __find_requires sh %{SOURCE2} -%global provfind sh -c "grep -v 'libsqlite3.so' | %__find_provides" -%global __find_provides %provfind -%if %has_system_nspr -BuildRequires: mozilla-nspr-devel -Requires: mozilla-nspr >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr) -%endif -%if %has_system_nss -BuildRequires: mozilla-nss-devel >= 3.12.6 -Requires: mozilla-nss >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss) -%endif -Recommends: %{name}-gnome - -%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. - - -%package -n mozilla-js192 -License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ -Summary: Mozilla JS 1.8 engine -Group: Productivity/Other - -%description -n mozilla-js192 -JavaScript is the Netscape-developed object scripting language used in millions -of web pages and server applications worldwide. Netscape's JavaScript is a -superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language, -with only mild differences from the published standard. - - -%package devel -License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ -Summary: XULRunner/Gecko SDK 1.9.2 -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 -Requires: %{name} = %{version} - -%description devel -Software Development Kit to embed XUL or Gecko into other applications. - -%if %localize - -%package translations-common -License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ -Summary: Common translations for XULRunner 1.9.2 -Group: System/Localization -Requires: %{name} = %{version} -Provides: locale(%{name}:ar;ca;cs;da;de;en_GB;es_AR;es_CL;es_ES;fi;fr;hu;it;ja;ko;nb_NO;nl;pl;pt_BR;pt_PT;ru;sv_SE;zh_CN;zh_TW) -Obsoletes: %{name}-translations < %{version}-%{release} - -%description translations-common -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 the most common languages but en-US which is -delivered in the main package. - - -%package translations-other -License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ -Summary: Extra translations for XULRunner 1.9.2 -Group: System/Localization -Requires: %{name} = %{version} -Provides: locale(%{name}:af;as;be;bg;bn_BD;bn_IN;cy;el;eo;es_MX;et;eu;fa;fy_NL;ga_IE;gl;gu_IN;he;hi_IN;hr;id;is;ka;kk;kn;ku;lt;lv;mk;ml;mr;nn_NO;oc;or;pa_IN;rm;ro;si;sk;sl;sq;sr;ta;ta_LK;te;th;tr;uk;vi) -Obsoletes: %{name}-translations < %{version}-%{release} - -%description translations-other -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 rarely used languages. -%endif - -%package gnome -License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ -Summary: XULRunner components depending on gnome-vfs -Group: Productivity/Other -Requires: %{name} = %{version}-%{release} -Requires(post): coreutils - -%description gnome -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. - - -%if %crashreporter -%package buildsymbols -License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ -Summary: Breakpad buildsymbols for %{name} -Group: Development/Debug - -%description buildsymbols -This subpackage contains the Breakpad created and compatible debugging -symbols meant for upload to Mozilla's crash collector database. -%endif - -%prep -%setup -n mozilla -q -b 1 -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 -%patch5 -p1 -%patch6 -p1 -%patch7 -p1 -%patch8 -p1 -%if %suse_version >= 1110 -%patch10 -p1 -%endif -%patch11 -p1 -%patch12 -p1 -%patch13 -p1 -%patch14 -p1 -# bmo#542999 -%patch15 -p1 -%patch16 -p1 - -%build -%if %suse_version >= 1110 -kdehelperversion=$(cat toolkit/xre/nsKDEUtils.cpp | grep '#define KMOZILLAHELPER_VERSION' | cut -d ' ' -f 3) -if test "$kdehelperversion" != %{kde_helper_version}; then - echo fix kde helper version in the .spec file - exit 1 -fi -%endif -MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal} -export MOZ_BUILD_DATE=%{releasedate} -export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing" -%ifarch ppc64 -export CFLAGS="$CFLAGS -mminimal-toc" -%endif -# 10.3-x86_64 build fails probably because gcc bug -%if %suse_version == 1030 -%ifarch x86_64 -export ac_cv_visibility_hidden="no" -%endif -%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} -mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj -. \$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 --with-l10n-base=../l10n -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-updater -ac_add_options --disable-javaxpcom -ac_add_options --enable-startup-notification -ac_add_options --enable-url-classifier -#ac_add_options --enable-debug -EOF -%if %has_system_nspr -cat << EOF >> $MOZCONFIG -ac_add_options --with-system-nspr -EOF -%endif -%if %has_system_nss -cat << EOF >> $MOZCONFIG -ac_add_options --with-system-nss -EOF -%endif -%if %has_system_cairo -cat << EOF >> $MOZCONFIG -ac_add_options --enable-system-cairo -EOF -%endif -%if %suse_version > 1030 -cat << EOF >> $MOZCONFIG -ac_add_options --enable-system-hunspell -EOF -%endif -#%if %suse_version > 1100 -#cat << EOF >> $MOZCONFIG -#ac_add_options --enable-system-sqlite -#EOF -#%endif -%if %suse_version > 1110 -cat << EOF >> $MOZCONFIG -ac_add_options --enable-libproxy -EOF -%endif -%if ! %crashreporter -cat << EOF >> $MOZCONFIG -ac_add_options --disable-crashreporter -EOF -%endif -make -f client.mk build - -%install -cd ../obj -%makeinstall STRIP=/bin/true -# remove some executable permissions -find $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal} \ - -type f -perm -111 -exec chmod a-x {} \; -find $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/ \ - -name "*.js" -o -name "*.xpm" -o -name "*.png" | xargs chmod a-x -mkdir -p $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/extensions -# fixing SDK dynamic libs (symlink instead of copy) -rm $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/*.so -ln -sf ../../../xulrunner-%{version_internal}/libmozjs.so \ - $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/ -ln -sf ../../../xulrunner-%{version_internal}/libxpcom.so \ - $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/ -ln -sf ../../../xulrunner-%{version_internal}/libxul.so \ - $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/ -# include basic buildenv for xulapps to use -mkdir -p $RPM_BUILD_ROOT%{_datadir}/xulrunner-%{version_internal} -pushd .. -# this list has been compiled by trial and error for prism -tar --exclude=*.cpp --exclude=*.mm \ - -cvjf $RPM_BUILD_ROOT%{_datadir}/xulrunner-%{version_internal}/mozilla-src.tar.bz2 \ - mozilla/configure.in mozilla/Makefile.in mozilla/client.py mozilla/allmakefiles.sh \ - mozilla/config mozilla/client.mk mozilla/aclocal.m4 mozilla/build mozilla/js/src/* \ - mozilla/testing mozilla/toolkit/mozapps/installer mozilla/probes mozilla/memory \ - mozilla/toolkit/xre mozilla/nsprpub/config mozilla/tools mozilla/xpcom/build -popd -# XPI example -#cp -rL dist/xpi-stage/simple $RPM_BUILD_ROOT/%{_libdir}/xulrunner-%{version_internal}/ -# preferences -cp %{SOURCE4} $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/greprefs/all-openSUSE.js -cp %{SOURCE8} $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/greprefs/lockdown.js -# install add-plugins.sh -sed "s:%%PROGDIR:%{_libdir}/xulrunner-%{version_internal}:g" \ - %{SOURCE5} > $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh -chmod 755 $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh -# 64bit classification for GRE config -%ifarch x86_64 s390x ppc64 -mv $RPM_BUILD_ROOT%{_sysconfdir}/gre.d/%{version_internal}.system.conf \ - $RPM_BUILD_ROOT%{_sysconfdir}/gre.d/%{version_internal}-64bit.system.conf -%endif -# ghosts -touch $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/global.reginfo -# install additional locales -%if %localize -rm -f %{_tmppath}/translations.* -for locale in $(awk '{ print $1; }' ../mozilla/browser/locales/shipped-locales); do - case $locale in - ja-JP-mac|en-US) - ;; - *) - make -C toolkit/locales libs-$locale - cp dist/xpi-stage/locale-$locale/chrome/$locale.jar \ - $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/chrome - cp dist/xpi-stage/locale-$locale/chrome/$locale.manifest \ - $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/chrome - # check against the fixed common list and sort into the right filelist - _matched=0 - for _match in ar ca cs da de en-GB es-AR es-CL es-ES fi fr hu it ja ko nb-NO nl pl pt-BR pt-PT ru sv-SE zh-CN zh-TW; do - [ "$_match" = "$locale" ] && _matched=1 - done - [ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other - echo %{_libdir}/xulrunner-%{version_internal}/chrome/$locale.jar \ - >> %{_tmppath}/translations.$_l10ntarget - echo %{_libdir}/xulrunner-%{version_internal}/chrome/$locale.manifest \ - >> %{_tmppath}/translations.$_l10ntarget - esac -done -%endif -# API symlink -ln -sf xulrunner-%{version_internal} $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{apiversion} -# compat links -%if 0%{?ga_version:1} -touch $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{ga_version} -%endif -# excludes -%if %suse_version < 1120 -rm -f $RPM_BUILD_ROOT%{_bindir}/xulrunner -%endif -rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/updater -rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/update.locale -rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/LICENSE -rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/README.txt -rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/dictionaries/en-US* -# autoreg -touch $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/.autoreg -# fdupes -%if %suse_version > 1020 -%fdupes $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal}/ -%fdupes $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/ -%endif -# create breakpad debugsymbols -%if %crashreporter -SYMBOLS_NAME="xulrunner-%{version}-%{release}.%{_arch}-%{suse_version}-symbols" -make buildsymbols \ - SYMBOL_INDEX_NAME="$SYMBOLS_NAME.txt" \ - SYMBOL_ARCHIVE_BASENAME="$SYMBOLS_NAME" -if [ -e dist/*symbols.zip ]; then - mkdir -p $RPM_BUILD_ROOT%{_datadir}/mozilla/ - cp dist/*symbols.zip $RPM_BUILD_ROOT%{_datadir}/mozilla/ -fi -%endif - -%clean -rm -rf $RPM_BUILD_ROOT -%if %localize -rm -rf %{_tmppath}/translations.* -%endif - -%post -/usr/sbin/update-alternatives --install %{_bindir}/xulrunner \ - xulrunner %{_libdir}/xulrunner-%{apiversion}/xulrunner %{uaweight} || : -%{_libdir}/xulrunner-%{apiversion}/add-plugins.sh > /dev/null 2>&1 -exit 0 - -%posttrans -# needed for updates which transition directory to symlink -%if 0%{?ga_version:1} -test -d %{_libdir}/xulrunner-%{ga_version} && rm -rf %{_libdir}/xulrunner-%{ga_version} -ln -sf xulrunner-%{version_internal} %{_libdir}/xulrunner-%{ga_version} -%endif -[ -e %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh ] && \ - %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1 -exit 0 - -%preun -if [ "$1" = "0" ]; then # deinstallation - # that's not quite nice since old versions should be removed on update as well - # but that's problematic for updates w/o raising the version number - /usr/sbin/update-alternatives --remove xulrunner %{_libdir}/xulrunner-%{apiversion}/xulrunner -fi -rm -f %{_libdir}/xulrunner-%{version_internal}/dictionaries/* -exit 0 - -%triggerin -- myspell-dictionary -%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1 -exit 0 - -%triggerpostun -- myspell-dictionary -%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1 -exit 0 - -%post gnome -touch %{_libdir}/xulrunner-%{version_internal}/.autoreg -exit 0 - -%files -%defattr(-,root,root) -%dir %{_libdir}/xulrunner-%{version_internal}/ -%dir %{_libdir}/xulrunner-%{version_internal}/chrome/ -%dir %{_libdir}/xulrunner-%{version_internal}/dictionaries/ -%dir %{_libdir}/xulrunner-%{version_internal}/extensions/ -%{_libdir}/xulrunner-%{version_internal}/chrome/classic.* -%{_libdir}/xulrunner-%{version_internal}/chrome/comm.* -%{_libdir}/xulrunner-%{version_internal}/chrome/en-US.* -%{_libdir}/xulrunner-%{version_internal}/chrome/pippki.* -%{_libdir}/xulrunner-%{version_internal}/chrome/toolkit.* -%{_libdir}/xulrunner-%{version_internal}/chrome/icons/ -%{_libdir}/xulrunner-%{version_internal}/components/ -%exclude %{_libdir}/xulrunner-%{version_internal}/components/libmozgnome.so -%exclude %{_libdir}/xulrunner-%{version_internal}/components/libnkgnomevfs.so -%{_libdir}/xulrunner-%{version_internal}/defaults/ -%dir %{_libdir}/xulrunner-%{version_internal}/greprefs/ -%{_libdir}/xulrunner-%{version_internal}/greprefs/all.js -%{_libdir}/xulrunner-%{version_internal}/greprefs/security-prefs.js -%{_libdir}/xulrunner-%{version_internal}/greprefs/xpinstall.js -%{_libdir}/xulrunner-%{version_internal}/greprefs/all-openSUSE.js -%{_libdir}/xulrunner-%{version_internal}/greprefs/lockdown.js -%{_libdir}/xulrunner-%{version_internal}/icons/ -%{_libdir}/xulrunner-%{version_internal}/modules/ -%{_libdir}/xulrunner-%{version_internal}/plugins/ -%{_libdir}/xulrunner-%{version_internal}/res/ -%{_libdir}/xulrunner-%{version_internal}/*.so -%exclude %{_libdir}/xulrunner-%{version_internal}/libmozjs.so -%{_libdir}/xulrunner-%{version_internal}/.autoreg -%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh -%{_libdir}/xulrunner-%{version_internal}/dependentlibs.list -%{_libdir}/xulrunner-%{version_internal}/mozilla-xremote-client -%{_libdir}/xulrunner-%{version_internal}/plugin-container -%{_libdir}/xulrunner-%{version_internal}/run-mozilla.sh -%{_libdir}/xulrunner-%{version_internal}/xulrunner -%{_libdir}/xulrunner-%{version_internal}/xulrunner-bin -%{_libdir}/xulrunner-%{version_internal}/xulrunner-stub -%{_libdir}/xulrunner-%{version_internal}/platform.ini -# crashreporter files -%if %crashreporter -%{_libdir}/xulrunner-%{version_internal}/crashreporter -%{_libdir}/xulrunner-%{version_internal}/crashreporter.ini -%{_libdir}/xulrunner-%{version_internal}/Throbber-small.gif -%endif -# ghosts -%ghost %{_libdir}/xulrunner-%{version_internal}/global.reginfo -%if %suse_version >= 1120 -%ghost %{_bindir}/xulrunner -%endif -# GRE -%dir %{_sysconfdir}/gre.d/ -%attr(644,root,root) %{_sysconfdir}/gre.d/* -# API symlink -%{_libdir}/xulrunner-%{apiversion} -# compat symlinks -%if 0%{?ga_version:1} -%ghost %{_libdir}/xulrunner-%{ga_version} -%endif - -%files -n mozilla-js192 -%defattr(-,root,root) -%dir %{_libdir}/xulrunner-%{version_internal}/ -%{_libdir}/xulrunner-%{apiversion} -%{_libdir}/xulrunner-%{version_internal}/libmozjs.so - -%files devel -%defattr(-,root,root) -%{_libdir}/xulrunner-%{version_internal}/xpcshell -%{_libdir}/xulrunner-%{version_internal}/xpidl -%{_libdir}/xulrunner-%{version_internal}/xpt_dump -%{_libdir}/xulrunner-%{version_internal}/xpt_link -%{_libdir}/xulrunner-devel-%{version_internal}/ -# FIXME symlink dynamic libs below sdk/lib -%attr(644,root,root) %{_libdir}/pkgconfig/* -%{_includedir}/xulrunner-%{version_internal}/ -%{_datadir}/xulrunner-%{version_internal}/ - -%files gnome -%defattr(-,root,root) -%dir %{_libdir}/xulrunner-%{version_internal}/ -%dir %{_libdir}/xulrunner-%{version_internal}/components/ -%ghost %{_libdir}/xulrunner-%{version_internal}/.autoreg -%{_libdir}/xulrunner-%{version_internal}/components/libmozgnome.so -%{_libdir}/xulrunner-%{version_internal}/components/libnkgnomevfs.so - -%if %localize - -%files translations-common -f %{_tmppath}/translations.common -%defattr(-,root,root) -%dir %{_libdir}/xulrunner-%{version_internal}/ -%dir %{_libdir}/xulrunner-%{version_internal}/chrome/ - -%files translations-other -f %{_tmppath}/translations.other -%defattr(-,root,root) -%dir %{_libdir}/xulrunner-%{version_internal}/ -%dir %{_libdir}/xulrunner-%{version_internal}/chrome/ -%endif - -%if %crashreporter - -%files buildsymbols -%defattr(-,root,root) -%{_datadir}/mozilla/ -%endif - -%changelog diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/toolkit-download-folder.patch --- a/mozilla-xulrunner192/toolkit-download-folder.patch Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -../toolkit-download-folder.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/toolkit-lockdown.js --- a/mozilla-xulrunner192/toolkit-lockdown.js Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -pref("config.lockdown.showsavedpasswords", false); -pref("config.lockdown.savepage", false); -pref("config.lockdown.printing", false); diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/toolkit-ui-lockdown.patch --- a/mozilla-xulrunner192/toolkit-ui-lockdown.patch Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -../toolkit-ui-lockdown.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner192/xulrunner-openSUSE-prefs.js --- a/mozilla-xulrunner192/xulrunner-openSUSE-prefs.js Fri May 21 13:47:16 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -// openSUSE overrides for default settings -pref("layout.word_select.stop_at_punctuation", false); -pref("intl.locale.matchOS", true); diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner193/add-plugins.sh.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mozilla-xulrunner193/add-plugins.sh.in Fri May 21 14:18:47 2010 +0200 @@ -0,0 +1,57 @@ +#! /bin/sh +# Copyright (c) 2008 Wolfgang Rosenauer. All rights reserved. +# + +# check if we are started as root +# only one of UID and USER must be set correctly +if test "$UID" != 0 -a "$USER" != root; then + echo "You must be root to start $0." + exit 1 +fi + +PREFIX="%PROGDIR" + +# dictionaries +MYSPELL=/usr/share/myspell +MOZ_SPELL=$PREFIX/dictionaries +if [ -d $MOZ_SPELL ] ; then + if [ -d $MYSPELL ] ; then + for dict in $MYSPELL/??[-_]??.aff ; do + + # check is it is really the file or it is a string which contain '??_??' + if ! [ -e $dict ] ; then + continue + fi + + # the dict file name + dict_file=`echo ${dict##*/}` + + # the dict file has a valid name + lang=`echo ${dict_file:0:2}` + country=`echo ${dict_file:3:2}` + + # check for .dic file + if [ ! -r $MYSPELL/${lang}[-_]${country}.dic ] ; then + continue + fi + + # create links + if [ ! -r $MOZ_SPELL/${lang}[-_]${country}.aff ] ; then + ln -sf $MYSPELL/${lang}[-_]${country}.aff \ + $MOZ_SPELL/${lang}-${country}.aff + fi + if [ ! -r $MOZ_SPELL/${lang}[-_]${country}.dic ] ; then + ln -sf $MYSPELL/${lang}[-_]${country}.dic \ + $MOZ_SPELL/${lang}-${country}.dic + fi + done + echo "-> added myspell dictionaries" + fi + + # remove broken links + for dict in $MOZ_SPELL/*.{aff,dic} ; do + if ! [ -r $dict ] ; then + rm -f $dict + fi + done +fi diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner193/baselibs.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mozilla-xulrunner193/baselibs.conf Fri May 21 14:18:47 2010 +0200 @@ -0,0 +1,21 @@ +mozilla-xulrunner192 + +/usr/lib(64)?/xulrunner-.* + +/etc/gre.d/.* + recommends "mozilla-xulrunner192-gnome-" + requires "mozilla-js192-" + +mozilla-js192 + +mozilla-xulrunner192-translations-common + +/usr/lib(64)?/xulrunner-.* + requires "mozilla-xulrunner192- = " + supplements "packageand(mozilla-xulrunner192-translations-common:mozilla-xulrunner192-)" + +mozilla-xulrunner192-translations-other + +/usr/lib(64)?/xulrunner-.* + requires "mozilla-xulrunner192- = " + supplements "packageand(mozilla-xulrunner192-translations-other:mozilla-xulrunner192-)" + +mozilla-xulrunner192-gnome + +/usr/lib(64)?/xulrunner-.* + requires "mozilla-xulrunner192- = " diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner193/create-tar.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mozilla-xulrunner193/create-tar.sh Fri May 21 14:18:47 2010 +0200 @@ -0,0 +1,26 @@ +#!/bin/bash + +RELEASE_TAG="FIREFOX_3_6_4_RELEASE" +VERSION="1.9.2.4" + +# mozilla +hg clone http://hg.mozilla.org/releases/mozilla-1.9.2 mozilla +pushd mozilla +hg update -r $RELEASE_TAG +popd +tar cjf xulrunner-source-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla + +# l10n +test ! -d l10n && mkdir l10n +for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do + case $locale in + ja-JP-mac|en-US) + ;; + *) + hg clone http://hg.mozilla.org/releases/l10n-mozilla-1.9.2/$locale l10n/$locale + hg -R l10n/$locale up -C -r $RELEASE_TAG + ;; + esac +done +tar cjf l10n-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n + diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner193/find-external-requires.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mozilla-xulrunner193/find-external-requires.sh Fri May 21 14:18:47 2010 +0200 @@ -0,0 +1,23 @@ +#!/bin/sh + +# Finds requirements provided outside of the current file set + +filelist=`sed "s/[]['\"*?{}]/\\\\\&/g"` + +provides=`echo "$filelist" | /usr/lib/rpm/find-provides` + +{ +for f in $filelist ; do + echo $f | /usr/lib/rpm/find-requires | while read req ; do + found=0 + for p in $provides ; do + if [ "$req" = "$p" ]; then + found=1 + fi + done + if [ "$found" = "0" ]; then + echo $req + fi + done +done +} | sort -u diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner193/gecko-lockdown.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mozilla-xulrunner193/gecko-lockdown.patch Fri May 21 14:18:47 2010 +0200 @@ -0,0 +1,1 @@ +../gecko-lockdown.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner193/idldir.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mozilla-xulrunner193/idldir.patch Fri May 21 14:18:47 2010 +0200 @@ -0,0 +1,1 @@ +../idldir.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner193/mozilla-gconf-backend.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mozilla-xulrunner193/mozilla-gconf-backend.patch Fri May 21 14:18:47 2010 +0200 @@ -0,0 +1,1 @@ +../mozilla-gconf-backend.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner193/mozilla-kde.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mozilla-xulrunner193/mozilla-kde.patch Fri May 21 14:18:47 2010 +0200 @@ -0,0 +1,1 @@ +../mozilla-kde.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner193/mozilla-libproxy.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mozilla-xulrunner193/mozilla-libproxy.patch Fri May 21 14:18:47 2010 +0200 @@ -0,0 +1,1 @@ +../mozilla-libproxy.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner193/mozilla-nongnome-proxies.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mozilla-xulrunner193/mozilla-nongnome-proxies.patch Fri May 21 14:18:47 2010 +0200 @@ -0,0 +1,1 @@ +../mozilla-nongnome-proxies.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner193/mozilla-pkgconfig.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mozilla-xulrunner193/mozilla-pkgconfig.patch Fri May 21 14:18:47 2010 +0200 @@ -0,0 +1,1 @@ +../mozilla-pkgconfig.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner193/mozilla-prefer_plugin_pref.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mozilla-xulrunner193/mozilla-prefer_plugin_pref.patch Fri May 21 14:18:47 2010 +0200 @@ -0,0 +1,1 @@ +../mozilla-prefer_plugin_pref.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner193/mozilla-shared-nss-db.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mozilla-xulrunner193/mozilla-shared-nss-db.patch Fri May 21 14:18:47 2010 +0200 @@ -0,0 +1,1 @@ +../mozilla-shared-nss-db.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner193/mozilla-system-nspr.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mozilla-xulrunner193/mozilla-system-nspr.patch Fri May 21 14:18:47 2010 +0200 @@ -0,0 +1,1 @@ +../mozilla-system-nspr.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner193/mozilla-xulrunner192-rpmlintrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mozilla-xulrunner193/mozilla-xulrunner192-rpmlintrc Fri May 21 14:18:47 2010 +0200 @@ -0,0 +1,1 @@ +addFilter("no-jar-manifest") diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner193/mozilla-xulrunner192.changes --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mozilla-xulrunner193/mozilla-xulrunner192.changes Fri May 21 14:18:47 2010 +0200 @@ -0,0 +1,134 @@ +------------------------------------------------------------------- +Tue May 4 08:03:37 CEST 2010 - wr@rosenauer.org + +- security update to 1.9.2.4 (Lorentz) + * enable crashreporter also for x86-64 + * provide mozilla-runtime to host NPAPI out of process plugins +- removed libproxy debug message (bnc#604711) + +------------------------------------------------------------------- +Mon Apr 26 07:18:09 CEST 2010 - wr@rosenauer.org + +- point alternatives link to the stable version to improve + robustness (bnc#589037) + +------------------------------------------------------------------- +Sat Apr 24 11:38:24 UTC 2010 - coolo@novell.com + +- buildrequire pkg-config to fix provides + +------------------------------------------------------------------- +Thu Apr 1 11:15:38 UTC 2010 - wr@rosenauer.org + +- security update to 1.9.2.3 + * MFSA 2010-25/CVE-2010-1121 (bmo#555109) + Re-use of freed object due to scope confusion + +------------------------------------------------------------------- +Thu Mar 25 20:04:41 CET 2010 - wr@rosenauer.org + +- security update to 1.9.2.2 (bnc#586567) + * MFSA 2010-08/CVE-2010-1028 + WOFF heap corruption due to integer overflow + * MFSA 2010-09/CVE-2010-0164 (bmo#547143) + Deleted frame reuse in multipart/x-mixed-replace image + * MFSA 2010-10/CVE-2010-0170 (bmo#541530) + XSS via plugins and unprotected Location object + * MFSA 2010-11/CVE-2010-0165/CVE-2010-0166/CVE-2010-0167 + Crashes with evidence of memory corruption + * MFSA 2010-12/CVE-2010-0171 (bmo#531364) + XSS using addEventListener and setTimeout on a wrapped object + * MFSA 2010-13/CVE-2010-0168 (bmo#540642) + Content policy bypass with image preloading + * MFSA 2010-14/CVE-2010-0169 (bmo#535806) + Browser chrome defacement via cached XUL stylesheets + * MFSA 2010-15/CVE-2010-0172 (bmo#537862) + Asynchronous Auth Prompt attaches to wrong window + * MFSA 2010-16/CVE-2010-0173/CVE-2010-0174 + Crashes with evidence of memory corruption + * MFSA 2010-18/CVE-2010-0176 (bmo#538308) + Dangling pointer vulnerability in nsTreeContentView + * MFSA 2010-19/CVE-2010-0177 (bmo#538310) + Dangling pointer vulnerability in nsPluginArray + * MFSA 2010-20/CVE-2010-0178 (bmo#546909) + Chrome privilege escalation via forced URL drag and drop + * MFSA 2010-22/CVE-2009-3555 (bmo#545755) + Update NSS to support TLS renegotiation indication + * MFSA 2010-23/CVE-2010-0181 (bmo#452093) + Image src redirect to mailto: URL opens email editor + * MFSA 2010-24/CVE-2010-0182 (bmo#490790) + XMLDocument::load() doesn't check nsIContentPolicy +- general.useragent.locale in profile overrides + intl.locale.matchOS (bmo#542999) +- split mozilla-js192 package which contains libmozjs only + to allow its installation w/o all GUI dependencies + +------------------------------------------------------------------- +Mon Jan 18 09:28:56 CET 2010 - wr@rosenauer.org + +- update to 1.9.2rc2 +- add update-alternatives %ghost file to filelist starting + with 11.2 (%ghost files are conflicting in earlier versions) +- fixed mozilla-plugin.pc (remove obsolete stable reference) + +------------------------------------------------------------------- +Wed Jan 6 14:10:25 CET 2010 - wr@rosenauer.org + +- update to 1.9.2rc1 + * removed obsolete mozilla-breakpad.patch +- expand -translations-* and -gnome filelists to clean up the + filesystem for upgrades and removals correctly +- enable crashreporter and create breakpad buildsymbols package + for mozilla crashreporter (for ix86) +- drop PreReq usage by cleaning up the different Requires tags + +------------------------------------------------------------------- +Thu Dec 24 14:21:02 CET 2009 - wr@rosenauer.org + +- update to 1.9.2b5 +- removed upstreamed mozilla-abi.patch +- integrated mozilla-kde.patch +- use .autoreg file for autoregistration when needed (bnc#440872) +- enable libproxy support from 11.2 on +- renamed -gnomevfs subpackage to -gnome +- readded lockdown patches and preferences +- fix baselibs.conf + +------------------------------------------------------------------- +Tue Nov 10 14:48:39 CET 2009 - wr@rosenauer.org + +- update to 1.9.2b2 +- merge from xulrunner191 package + +------------------------------------------------------------------- +Sun Nov 1 13:10:23 CET 2009 - wr@rosenauer.org + +- update to 1.9.2b1 +- use newer internal cairo for 11.1 and older + +------------------------------------------------------------------- +Sun Oct 18 13:04:22 CEST 2009 - wr@rosenauer.org + +- reworked PreReq list + +------------------------------------------------------------------- +Fri Oct 16 09:14:47 CEST 2009 - wr@rosenauer.org + +- update to snapshot 1.9.2b2pre (20091015) + (entering beta phase) + +------------------------------------------------------------------- +Mon Sep 21 16:43:18 CEST 2009 - wr@rosenauer.org + +- BuildRequire libiw-devel instead of wireless-tools from 11.2 on + +------------------------------------------------------------------- +Wed Sep 16 23:42:58 CEST 2009 - wr@rosenauer.org + +- new snapshot (20090916) + +------------------------------------------------------------------- +Mon Aug 24 17:37:06 CEST 2009 - wr@rosenauer.org + +- first alpha package of XULRunner 1.9.2 + diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner193/mozilla-xulrunner192.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mozilla-xulrunner193/mozilla-xulrunner192.spec Fri May 21 14:18:47 2010 +0200 @@ -0,0 +1,580 @@ +# +# spec file for package mozilla-xulrunner192 (Version 1.9.2.4) +# +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# 2006-2010 Wolfgang Rosenauer +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + + +Name: mozilla-xulrunner192 +BuildRequires: autoconf213 gcc-c++ libcurl-devel libgnomeui-devel libidl-devel libnotify-devel python startup-notification-devel zip pkg-config +# needed for brp-check-bytecode-version (jar, fastjar would do as well) +BuildRequires: unzip +%if %suse_version > 1020 +BuildRequires: fdupes +%endif +%if %suse_version > 1030 +BuildRequires: hunspell-devel +%endif +%if %suse_version > 1100 +BuildRequires: nss-shared-helper-devel +%endif +%if %suse_version > 1110 +BuildRequires: libiw-devel +BuildRequires: libproxy-devel +%else +BuildRequires: wireless-tools +%endif +License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ +Version: 1.9.2.4 +Release: 1 +%define releasedate 2010050300 +%define version_internal 1.9.2.4 +%define apiversion 1.9.2 +%define uaweight 192040 +Summary: Mozilla Runtime Environment 1.9.2 +Url: http://www.mozilla.org +Group: Productivity/Other +Provides: gecko192 +%if %suse_version >= 1110 +# this is needed to match this package with the kde4 helper package without the main package +# having a hard requirement on the kde4 package +%define kde_helper_version 6 +Provides: mozilla-kde4-version = %{kde_helper_version} +%endif +%ifarch %ix86 +Provides: mozilla-xulrunner192-32bit = %{version}-%{release} +%endif +Source: xulrunner-source-%{version}.tar.bz2 +Source1: l10n-%{version}.tar.bz2 +Source2: find-external-requires.sh +Source3: %{name}-rpmlintrc +Source4: xulrunner-openSUSE-prefs.js +Source5: add-plugins.sh.in +Source6: create-tar.sh +Source7: baselibs.conf +Source8: toolkit-lockdown.js +Patch1: toolkit-download-folder.patch +Patch2: mozilla-libproxy.patch +Patch3: mozilla-pkgconfig.patch +Patch4: idldir.patch +Patch5: mozilla-nongnome-proxies.patch +Patch6: mozilla-helper-app.patch +Patch7: mozilla-prefer_plugin_pref.patch +Patch8: mozilla-shared-nss-db.patch +Patch10: mozilla-kde.patch +# PATCH-FEATURE-SLED FATE#302023, FATE#302024 +Patch11: mozilla-gconf-backend.patch +Patch12: gecko-lockdown.patch +Patch13: toolkit-ui-lockdown.patch +# --- +Patch14: mozilla-system-nspr.patch +Patch15: mozilla-ua-locale-pref.patch +Patch16: mozilla-crashreporter-x86_64.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires: mozilla-js192 +Requires(post): update-alternatives coreutils +Requires(preun): update-alternatives coreutils +### build configuration ### +%define crashreporter 1 +%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 +%if %suse_version > 1110 +%define has_system_cairo 1 +%endif +### configuration end ### +%define _use_internal_dependency_generator 0 +%define __find_requires sh %{SOURCE2} +%global provfind sh -c "grep -v 'libsqlite3.so' | %__find_provides" +%global __find_provides %provfind +%if %has_system_nspr +BuildRequires: mozilla-nspr-devel +Requires: mozilla-nspr >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr) +%endif +%if %has_system_nss +BuildRequires: mozilla-nss-devel >= 3.12.6 +Requires: mozilla-nss >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss) +%endif +Recommends: %{name}-gnome + +%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. + + +%package -n mozilla-js192 +License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ +Summary: Mozilla JS 1.8 engine +Group: Productivity/Other + +%description -n mozilla-js192 +JavaScript is the Netscape-developed object scripting language used in millions +of web pages and server applications worldwide. Netscape's JavaScript is a +superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language, +with only mild differences from the published standard. + + +%package devel +License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ +Summary: XULRunner/Gecko SDK 1.9.2 +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 +Requires: %{name} = %{version} + +%description devel +Software Development Kit to embed XUL or Gecko into other applications. + +%if %localize + +%package translations-common +License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ +Summary: Common translations for XULRunner 1.9.2 +Group: System/Localization +Requires: %{name} = %{version} +Provides: locale(%{name}:ar;ca;cs;da;de;en_GB;es_AR;es_CL;es_ES;fi;fr;hu;it;ja;ko;nb_NO;nl;pl;pt_BR;pt_PT;ru;sv_SE;zh_CN;zh_TW) +Obsoletes: %{name}-translations < %{version}-%{release} + +%description translations-common +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 the most common languages but en-US which is +delivered in the main package. + + +%package translations-other +License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ +Summary: Extra translations for XULRunner 1.9.2 +Group: System/Localization +Requires: %{name} = %{version} +Provides: locale(%{name}:af;as;be;bg;bn_BD;bn_IN;cy;el;eo;es_MX;et;eu;fa;fy_NL;ga_IE;gl;gu_IN;he;hi_IN;hr;id;is;ka;kk;kn;ku;lt;lv;mk;ml;mr;nn_NO;oc;or;pa_IN;rm;ro;si;sk;sl;sq;sr;ta;ta_LK;te;th;tr;uk;vi) +Obsoletes: %{name}-translations < %{version}-%{release} + +%description translations-other +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 rarely used languages. +%endif + +%package gnome +License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ +Summary: XULRunner components depending on gnome-vfs +Group: Productivity/Other +Requires: %{name} = %{version}-%{release} +Requires(post): coreutils + +%description gnome +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. + + +%if %crashreporter +%package buildsymbols +License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ +Summary: Breakpad buildsymbols for %{name} +Group: Development/Debug + +%description buildsymbols +This subpackage contains the Breakpad created and compatible debugging +symbols meant for upload to Mozilla's crash collector database. +%endif + +%prep +%setup -n mozilla -q -b 1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 +%patch7 -p1 +%patch8 -p1 +%if %suse_version >= 1110 +%patch10 -p1 +%endif +%patch11 -p1 +%patch12 -p1 +%patch13 -p1 +%patch14 -p1 +# bmo#542999 +%patch15 -p1 +%patch16 -p1 + +%build +%if %suse_version >= 1110 +kdehelperversion=$(cat toolkit/xre/nsKDEUtils.cpp | grep '#define KMOZILLAHELPER_VERSION' | cut -d ' ' -f 3) +if test "$kdehelperversion" != %{kde_helper_version}; then + echo fix kde helper version in the .spec file + exit 1 +fi +%endif +MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal} +export MOZ_BUILD_DATE=%{releasedate} +export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing" +%ifarch ppc64 +export CFLAGS="$CFLAGS -mminimal-toc" +%endif +# 10.3-x86_64 build fails probably because gcc bug +%if %suse_version == 1030 +%ifarch x86_64 +export ac_cv_visibility_hidden="no" +%endif +%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} +mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj +. \$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 --with-l10n-base=../l10n +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-updater +ac_add_options --disable-javaxpcom +ac_add_options --enable-startup-notification +ac_add_options --enable-url-classifier +#ac_add_options --enable-debug +EOF +%if %has_system_nspr +cat << EOF >> $MOZCONFIG +ac_add_options --with-system-nspr +EOF +%endif +%if %has_system_nss +cat << EOF >> $MOZCONFIG +ac_add_options --with-system-nss +EOF +%endif +%if %has_system_cairo +cat << EOF >> $MOZCONFIG +ac_add_options --enable-system-cairo +EOF +%endif +%if %suse_version > 1030 +cat << EOF >> $MOZCONFIG +ac_add_options --enable-system-hunspell +EOF +%endif +#%if %suse_version > 1100 +#cat << EOF >> $MOZCONFIG +#ac_add_options --enable-system-sqlite +#EOF +#%endif +%if %suse_version > 1110 +cat << EOF >> $MOZCONFIG +ac_add_options --enable-libproxy +EOF +%endif +%if ! %crashreporter +cat << EOF >> $MOZCONFIG +ac_add_options --disable-crashreporter +EOF +%endif +make -f client.mk build + +%install +cd ../obj +%makeinstall STRIP=/bin/true +# remove some executable permissions +find $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal} \ + -type f -perm -111 -exec chmod a-x {} \; +find $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/ \ + -name "*.js" -o -name "*.xpm" -o -name "*.png" | xargs chmod a-x +mkdir -p $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/extensions +# fixing SDK dynamic libs (symlink instead of copy) +rm $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/*.so +ln -sf ../../../xulrunner-%{version_internal}/libmozjs.so \ + $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/ +ln -sf ../../../xulrunner-%{version_internal}/libxpcom.so \ + $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/ +ln -sf ../../../xulrunner-%{version_internal}/libxul.so \ + $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/ +# include basic buildenv for xulapps to use +mkdir -p $RPM_BUILD_ROOT%{_datadir}/xulrunner-%{version_internal} +pushd .. +# this list has been compiled by trial and error for prism +tar --exclude=*.cpp --exclude=*.mm \ + -cvjf $RPM_BUILD_ROOT%{_datadir}/xulrunner-%{version_internal}/mozilla-src.tar.bz2 \ + mozilla/configure.in mozilla/Makefile.in mozilla/client.py mozilla/allmakefiles.sh \ + mozilla/config mozilla/client.mk mozilla/aclocal.m4 mozilla/build mozilla/js/src/* \ + mozilla/testing mozilla/toolkit/mozapps/installer mozilla/probes mozilla/memory \ + mozilla/toolkit/xre mozilla/nsprpub/config mozilla/tools mozilla/xpcom/build +popd +# XPI example +#cp -rL dist/xpi-stage/simple $RPM_BUILD_ROOT/%{_libdir}/xulrunner-%{version_internal}/ +# preferences +cp %{SOURCE4} $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/greprefs/all-openSUSE.js +cp %{SOURCE8} $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/greprefs/lockdown.js +# install add-plugins.sh +sed "s:%%PROGDIR:%{_libdir}/xulrunner-%{version_internal}:g" \ + %{SOURCE5} > $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh +chmod 755 $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh +# 64bit classification for GRE config +%ifarch x86_64 s390x ppc64 +mv $RPM_BUILD_ROOT%{_sysconfdir}/gre.d/%{version_internal}.system.conf \ + $RPM_BUILD_ROOT%{_sysconfdir}/gre.d/%{version_internal}-64bit.system.conf +%endif +# ghosts +touch $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/global.reginfo +# install additional locales +%if %localize +rm -f %{_tmppath}/translations.* +for locale in $(awk '{ print $1; }' ../mozilla/browser/locales/shipped-locales); do + case $locale in + ja-JP-mac|en-US) + ;; + *) + make -C toolkit/locales libs-$locale + cp dist/xpi-stage/locale-$locale/chrome/$locale.jar \ + $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/chrome + cp dist/xpi-stage/locale-$locale/chrome/$locale.manifest \ + $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/chrome + # check against the fixed common list and sort into the right filelist + _matched=0 + for _match in ar ca cs da de en-GB es-AR es-CL es-ES fi fr hu it ja ko nb-NO nl pl pt-BR pt-PT ru sv-SE zh-CN zh-TW; do + [ "$_match" = "$locale" ] && _matched=1 + done + [ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other + echo %{_libdir}/xulrunner-%{version_internal}/chrome/$locale.jar \ + >> %{_tmppath}/translations.$_l10ntarget + echo %{_libdir}/xulrunner-%{version_internal}/chrome/$locale.manifest \ + >> %{_tmppath}/translations.$_l10ntarget + esac +done +%endif +# API symlink +ln -sf xulrunner-%{version_internal} $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{apiversion} +# compat links +%if 0%{?ga_version:1} +touch $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{ga_version} +%endif +# excludes +%if %suse_version < 1120 +rm -f $RPM_BUILD_ROOT%{_bindir}/xulrunner +%endif +rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/updater +rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/update.locale +rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/LICENSE +rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/README.txt +rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/dictionaries/en-US* +# autoreg +touch $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/.autoreg +# fdupes +%if %suse_version > 1020 +%fdupes $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal}/ +%fdupes $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/ +%endif +# create breakpad debugsymbols +%if %crashreporter +SYMBOLS_NAME="xulrunner-%{version}-%{release}.%{_arch}-%{suse_version}-symbols" +make buildsymbols \ + SYMBOL_INDEX_NAME="$SYMBOLS_NAME.txt" \ + SYMBOL_ARCHIVE_BASENAME="$SYMBOLS_NAME" +if [ -e dist/*symbols.zip ]; then + mkdir -p $RPM_BUILD_ROOT%{_datadir}/mozilla/ + cp dist/*symbols.zip $RPM_BUILD_ROOT%{_datadir}/mozilla/ +fi +%endif + +%clean +rm -rf $RPM_BUILD_ROOT +%if %localize +rm -rf %{_tmppath}/translations.* +%endif + +%post +/usr/sbin/update-alternatives --install %{_bindir}/xulrunner \ + xulrunner %{_libdir}/xulrunner-%{apiversion}/xulrunner %{uaweight} || : +%{_libdir}/xulrunner-%{apiversion}/add-plugins.sh > /dev/null 2>&1 +exit 0 + +%posttrans +# needed for updates which transition directory to symlink +%if 0%{?ga_version:1} +test -d %{_libdir}/xulrunner-%{ga_version} && rm -rf %{_libdir}/xulrunner-%{ga_version} +ln -sf xulrunner-%{version_internal} %{_libdir}/xulrunner-%{ga_version} +%endif +[ -e %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh ] && \ + %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1 +exit 0 + +%preun +if [ "$1" = "0" ]; then # deinstallation + # that's not quite nice since old versions should be removed on update as well + # but that's problematic for updates w/o raising the version number + /usr/sbin/update-alternatives --remove xulrunner %{_libdir}/xulrunner-%{apiversion}/xulrunner +fi +rm -f %{_libdir}/xulrunner-%{version_internal}/dictionaries/* +exit 0 + +%triggerin -- myspell-dictionary +%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1 +exit 0 + +%triggerpostun -- myspell-dictionary +%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1 +exit 0 + +%post gnome +touch %{_libdir}/xulrunner-%{version_internal}/.autoreg +exit 0 + +%files +%defattr(-,root,root) +%dir %{_libdir}/xulrunner-%{version_internal}/ +%dir %{_libdir}/xulrunner-%{version_internal}/chrome/ +%dir %{_libdir}/xulrunner-%{version_internal}/dictionaries/ +%dir %{_libdir}/xulrunner-%{version_internal}/extensions/ +%{_libdir}/xulrunner-%{version_internal}/chrome/classic.* +%{_libdir}/xulrunner-%{version_internal}/chrome/comm.* +%{_libdir}/xulrunner-%{version_internal}/chrome/en-US.* +%{_libdir}/xulrunner-%{version_internal}/chrome/pippki.* +%{_libdir}/xulrunner-%{version_internal}/chrome/toolkit.* +%{_libdir}/xulrunner-%{version_internal}/chrome/icons/ +%{_libdir}/xulrunner-%{version_internal}/components/ +%exclude %{_libdir}/xulrunner-%{version_internal}/components/libmozgnome.so +%exclude %{_libdir}/xulrunner-%{version_internal}/components/libnkgnomevfs.so +%{_libdir}/xulrunner-%{version_internal}/defaults/ +%dir %{_libdir}/xulrunner-%{version_internal}/greprefs/ +%{_libdir}/xulrunner-%{version_internal}/greprefs/all.js +%{_libdir}/xulrunner-%{version_internal}/greprefs/security-prefs.js +%{_libdir}/xulrunner-%{version_internal}/greprefs/xpinstall.js +%{_libdir}/xulrunner-%{version_internal}/greprefs/all-openSUSE.js +%{_libdir}/xulrunner-%{version_internal}/greprefs/lockdown.js +%{_libdir}/xulrunner-%{version_internal}/icons/ +%{_libdir}/xulrunner-%{version_internal}/modules/ +%{_libdir}/xulrunner-%{version_internal}/plugins/ +%{_libdir}/xulrunner-%{version_internal}/res/ +%{_libdir}/xulrunner-%{version_internal}/*.so +%exclude %{_libdir}/xulrunner-%{version_internal}/libmozjs.so +%{_libdir}/xulrunner-%{version_internal}/.autoreg +%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh +%{_libdir}/xulrunner-%{version_internal}/dependentlibs.list +%{_libdir}/xulrunner-%{version_internal}/mozilla-xremote-client +%{_libdir}/xulrunner-%{version_internal}/plugin-container +%{_libdir}/xulrunner-%{version_internal}/run-mozilla.sh +%{_libdir}/xulrunner-%{version_internal}/xulrunner +%{_libdir}/xulrunner-%{version_internal}/xulrunner-bin +%{_libdir}/xulrunner-%{version_internal}/xulrunner-stub +%{_libdir}/xulrunner-%{version_internal}/platform.ini +# crashreporter files +%if %crashreporter +%{_libdir}/xulrunner-%{version_internal}/crashreporter +%{_libdir}/xulrunner-%{version_internal}/crashreporter.ini +%{_libdir}/xulrunner-%{version_internal}/Throbber-small.gif +%endif +# ghosts +%ghost %{_libdir}/xulrunner-%{version_internal}/global.reginfo +%if %suse_version >= 1120 +%ghost %{_bindir}/xulrunner +%endif +# GRE +%dir %{_sysconfdir}/gre.d/ +%attr(644,root,root) %{_sysconfdir}/gre.d/* +# API symlink +%{_libdir}/xulrunner-%{apiversion} +# compat symlinks +%if 0%{?ga_version:1} +%ghost %{_libdir}/xulrunner-%{ga_version} +%endif + +%files -n mozilla-js192 +%defattr(-,root,root) +%dir %{_libdir}/xulrunner-%{version_internal}/ +%{_libdir}/xulrunner-%{apiversion} +%{_libdir}/xulrunner-%{version_internal}/libmozjs.so + +%files devel +%defattr(-,root,root) +%{_libdir}/xulrunner-%{version_internal}/xpcshell +%{_libdir}/xulrunner-%{version_internal}/xpidl +%{_libdir}/xulrunner-%{version_internal}/xpt_dump +%{_libdir}/xulrunner-%{version_internal}/xpt_link +%{_libdir}/xulrunner-devel-%{version_internal}/ +# FIXME symlink dynamic libs below sdk/lib +%attr(644,root,root) %{_libdir}/pkgconfig/* +%{_includedir}/xulrunner-%{version_internal}/ +%{_datadir}/xulrunner-%{version_internal}/ + +%files gnome +%defattr(-,root,root) +%dir %{_libdir}/xulrunner-%{version_internal}/ +%dir %{_libdir}/xulrunner-%{version_internal}/components/ +%ghost %{_libdir}/xulrunner-%{version_internal}/.autoreg +%{_libdir}/xulrunner-%{version_internal}/components/libmozgnome.so +%{_libdir}/xulrunner-%{version_internal}/components/libnkgnomevfs.so + +%if %localize + +%files translations-common -f %{_tmppath}/translations.common +%defattr(-,root,root) +%dir %{_libdir}/xulrunner-%{version_internal}/ +%dir %{_libdir}/xulrunner-%{version_internal}/chrome/ + +%files translations-other -f %{_tmppath}/translations.other +%defattr(-,root,root) +%dir %{_libdir}/xulrunner-%{version_internal}/ +%dir %{_libdir}/xulrunner-%{version_internal}/chrome/ +%endif + +%if %crashreporter + +%files buildsymbols +%defattr(-,root,root) +%{_datadir}/mozilla/ +%endif + +%changelog diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner193/toolkit-download-folder.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mozilla-xulrunner193/toolkit-download-folder.patch Fri May 21 14:18:47 2010 +0200 @@ -0,0 +1,1 @@ +../toolkit-download-folder.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner193/toolkit-lockdown.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mozilla-xulrunner193/toolkit-lockdown.js Fri May 21 14:18:47 2010 +0200 @@ -0,0 +1,3 @@ +pref("config.lockdown.showsavedpasswords", false); +pref("config.lockdown.savepage", false); +pref("config.lockdown.printing", false); diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner193/toolkit-ui-lockdown.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mozilla-xulrunner193/toolkit-ui-lockdown.patch Fri May 21 14:18:47 2010 +0200 @@ -0,0 +1,1 @@ +../toolkit-ui-lockdown.patch \ No newline at end of file diff -r 4708409c896c -r 93fb7400b957 mozilla-xulrunner193/xulrunner-openSUSE-prefs.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mozilla-xulrunner193/xulrunner-openSUSE-prefs.js Fri May 21 14:18:47 2010 +0200 @@ -0,0 +1,3 @@ +// openSUSE overrides for default settings +pref("layout.word_select.stop_at_punctuation", false); +pref("intl.locale.matchOS", true); diff -r 4708409c896c -r 93fb7400b957 series --- a/series Fri May 21 13:47:16 2010 +0200 +++ b/series Fri May 21 14:18:47 2010 +0200 @@ -1,6 +1,5 @@ # xulrunner/gecko patches mozilla-system-nspr.patch -mozilla-crashreporter-x86_64.patch toolkit-download-folder.patch mozilla-libproxy.patch mozilla-pkgconfig.patch @@ -21,8 +20,6 @@ firefox-linkorder.patch firefox-browser-css.patch firefox-cross-desktop.patch -firefox-no-gnomevfs.patch firefox-appname.patch firefox-kde.patch firefox-ui-lockdown.patch -firefox-crashreporter.patch