mozilla-xulrunner192/mozilla-xulrunner192.spec
changeset 66 7c4c13361550
parent 65 6a711ebb385d
child 67 a05eb1c8699f
equal deleted inserted replaced
56:6c1feeed3314 66:7c4c13361550
     1 #
     1 #
     2 # spec file for package mozilla-xulrunner192 (Version 1.9.2.0)
     2 # spec file for package mozilla-xulrunner192 (Version 1.9.2.4)
     3 #
     3 #
     4 # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
     4 # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
     5 #               2006-2010 Wolfgang Rosenauer
     5 #               2006-2010 Wolfgang Rosenauer
     6 #
     6 #
     7 # All modifications and additions to the file contributed by third parties
     7 # All modifications and additions to the file contributed by third parties
    37 BuildRequires:  libproxy-devel
    37 BuildRequires:  libproxy-devel
    38 %else
    38 %else
    39 BuildRequires:  wireless-tools
    39 BuildRequires:  wireless-tools
    40 %endif
    40 %endif
    41 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
    41 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
    42 Version:        1.9.2.0
    42 Version:        1.9.2.4
    43 Release:        1
    43 Release:        1
    44 %define         releasedate 2010011500
    44 %define         releasedate 2010041000
    45 %define         version_internal 1.9.2.0
    45 %define         version_internal 1.9.2.4pre
    46 %define         apiversion 1.9.2
    46 %define         apiversion 1.9.2
    47 %define         uaweight 192000
    47 %define         uaweight 192040
    48 Summary:        Mozilla Runtime Environment 1.9.2
    48 Summary:        Mozilla Runtime Environment 1.9.2
    49 Url:            http://www.mozilla.org
    49 Url:            http://www.mozilla.org
    50 Group:          Productivity/Other
    50 Group:          Productivity/Other
    51 Provides:       gecko192
    51 Provides:       gecko192
    52 %if %suse_version >= 1110
    52 %if %suse_version >= 1110
    73 Patch4:         idldir.patch
    73 Patch4:         idldir.patch
    74 Patch5:         mozilla-nongnome-proxies.patch
    74 Patch5:         mozilla-nongnome-proxies.patch
    75 Patch6:         mozilla-helper-app.patch
    75 Patch6:         mozilla-helper-app.patch
    76 Patch7:         mozilla-prefer_plugin_pref.patch
    76 Patch7:         mozilla-prefer_plugin_pref.patch
    77 Patch8:         mozilla-shared-nss-db.patch
    77 Patch8:         mozilla-shared-nss-db.patch
    78 Patch9:         mozilla-startup-notification.patch
       
    79 Patch10:        mozilla-kde.patch
    78 Patch10:        mozilla-kde.patch
    80 # PATCH-FEATURE-SLED FATE#302023, FATE#302024
    79 # PATCH-FEATURE-SLED FATE#302023, FATE#302024
    81 Patch11:        mozilla-gconf-backend.patch
    80 Patch11:        mozilla-gconf-backend.patch
    82 Patch12:        gecko-lockdown.patch
    81 Patch12:        gecko-lockdown.patch
    83 Patch13:        toolkit-ui-lockdown.patch
    82 Patch13:        toolkit-ui-lockdown.patch
    84 # ---
    83 # ---
    85 Patch14:        mozilla-breakpad-update.patch
    84 Patch14:        mozilla-system-nspr.patch
    86 Patch15:        mozilla-milestone.patch
    85 Patch15:        mozilla-ua-locale-pref.patch
       
    86 Patch16:        mozilla-crashreporter-x86_64.patch
    87 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
    87 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
       
    88 Requires:       mozilla-js192
    88 Requires(post):  update-alternatives coreutils
    89 Requires(post):  update-alternatives coreutils
    89 Requires(preun): update-alternatives coreutils
    90 Requires(preun): update-alternatives coreutils
    90 ### build configuration ###
    91 ### build configuration ###
    91 %ifarch %ix86
       
    92 %define crashreporter    1
    92 %define crashreporter    1
    93 %else
       
    94 %define crashreporter    0
       
    95 %endif
       
    96 %define has_system_nspr  0
    93 %define has_system_nspr  0
    97 %define has_system_nss   0
    94 %define has_system_nss   0
    98 %define has_system_cairo 0
    95 %define has_system_cairo 0
    99 %define localize 1
    96 %define localize 1
   100 %if %suse_version > 1030 || 0%{?opensuse_bs}
    97 %if %suse_version > 1030 || 0%{?opensuse_bs}
   112 %if %has_system_nspr
   109 %if %has_system_nspr
   113 BuildRequires:  mozilla-nspr-devel
   110 BuildRequires:  mozilla-nspr-devel
   114 Requires:       mozilla-nspr >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr)
   111 Requires:       mozilla-nspr >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr)
   115 %endif
   112 %endif
   116 %if %has_system_nss
   113 %if %has_system_nss
   117 BuildRequires:  mozilla-nss-devel >= 3.12.3
   114 BuildRequires:  mozilla-nss-devel >= 3.12.6
   118 Requires:       mozilla-nss >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss)
   115 Requires:       mozilla-nss >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss)
   119 %endif
   116 %endif
   120 Recommends:     %{name}-gnome
   117 Recommends:     %{name}-gnome
   121 
   118 
   122 %description
   119 %description
   123 XULRunner is a single installable package that can be used to bootstrap
   120 XULRunner is a single installable package that can be used to bootstrap
   124 multiple XUL+XPCOM applications that are as rich as Firefox and
   121 multiple XUL+XPCOM applications that are as rich as Firefox and
   125 Thunderbird.
   122 Thunderbird.
   126 
   123 
   127 
   124 
       
   125 %package -n mozilla-js192
       
   126 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
       
   127 Summary:        Mozilla JS 1.8 engine
       
   128 Group:          Productivity/Other
       
   129 
       
   130 %description -n mozilla-js192
       
   131 JavaScript is the Netscape-developed object scripting language used in millions
       
   132 of web pages and server applications worldwide. Netscape's JavaScript is a
       
   133 superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
       
   134 with only mild differences from the published standard. 
       
   135 
       
   136 
   128 %package devel
   137 %package devel
   129 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
   138 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
   130 Summary:        XULRunner/Gecko SDK 1.9.2
   139 Summary:        XULRunner/Gecko SDK 1.9.2
   131 Group:          Development/Libraries/Other
   140 Group:          Development/Libraries/Other
   132 %if %has_system_nspr
   141 %if %has_system_nspr
   139 
   148 
   140 %description devel
   149 %description devel
   141 Software Development Kit to embed XUL or Gecko into other applications.
   150 Software Development Kit to embed XUL or Gecko into other applications.
   142 
   151 
   143 %if %localize
   152 %if %localize
       
   153 
   144 %package translations-common
   154 %package translations-common
   145 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
   155 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
   146 Summary:        Common translations for XULRunner 1.9.2
   156 Summary:        Common translations for XULRunner 1.9.2
   147 Group:          System/Localization
   157 Group:          System/Localization
   148 Requires:       %{name} = %{version}
   158 Requires:       %{name} = %{version}
   196 
   206 
   197 %description buildsymbols
   207 %description buildsymbols
   198 This subpackage contains the Breakpad created and compatible debugging
   208 This subpackage contains the Breakpad created and compatible debugging
   199 symbols meant for upload to Mozilla's crash collector database.
   209 symbols meant for upload to Mozilla's crash collector database.
   200 %endif
   210 %endif
   201 
       
   202 
   211 
   203 %prep
   212 %prep
   204 %setup -n mozilla -q -b 1
   213 %setup -n mozilla -q -b 1
   205 %patch1 -p1
   214 %patch1 -p1
   206 %patch2 -p1
   215 %patch2 -p1
   208 %patch4 -p1
   217 %patch4 -p1
   209 %patch5 -p1
   218 %patch5 -p1
   210 %patch6 -p1
   219 %patch6 -p1
   211 %patch7 -p1
   220 %patch7 -p1
   212 %patch8 -p1
   221 %patch8 -p1
   213 %patch9 -p1
       
   214 %if %suse_version >= 1110
   222 %if %suse_version >= 1110
   215 %patch10 -p1
   223 %patch10 -p1
   216 %endif
   224 %endif
   217 %patch11 -p1
   225 %patch11 -p1
   218 %patch12 -p1
   226 %patch12 -p1
   219 %patch13 -p1
   227 %patch13 -p1
   220 %patch14 -p1
   228 %patch14 -p1
       
   229 # bmo#542999
   221 %patch15 -p1
   230 %patch15 -p1
       
   231 %patch16 -p1
   222 
   232 
   223 %build
   233 %build
   224 %if %suse_version >= 1110
   234 %if %suse_version >= 1110
   225 kdehelperversion=$(cat toolkit/xre/nsKDEUtils.cpp | grep '#define KMOZILLAHELPER_VERSION' | cut -d ' ' -f 3)
   235 kdehelperversion=$(cat toolkit/xre/nsKDEUtils.cpp | grep '#define KMOZILLAHELPER_VERSION' | cut -d ' ' -f 3)
   226 if test "$kdehelperversion" != %{kde_helper_version}; then
   236 if test "$kdehelperversion" != %{kde_helper_version}; then
   229 fi
   239 fi
   230 %endif
   240 %endif
   231 MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal}
   241 MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal}
   232 export MOZ_BUILD_DATE=%{releasedate}
   242 export MOZ_BUILD_DATE=%{releasedate}
   233 export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing"
   243 export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing"
   234 %if %crashreporter
       
   235 export CFLAGS="$CFLAGS -gstabs+"
       
   236 %endif
       
   237 %ifarch ppc64
   244 %ifarch ppc64
   238 export CFLAGS="$CFLAGS -mminimal-toc"
   245 export CFLAGS="$CFLAGS -mminimal-toc"
   239 %endif
   246 %endif
   240 # 10.3-x86_64 build fails probably because gcc bug
   247 # 10.3-x86_64 build fails probably because gcc bug
   241 %if %suse_version == 1030
   248 %if %suse_version == 1030
   490 %{_libdir}/xulrunner-%{version_internal}/icons/
   497 %{_libdir}/xulrunner-%{version_internal}/icons/
   491 %{_libdir}/xulrunner-%{version_internal}/modules/
   498 %{_libdir}/xulrunner-%{version_internal}/modules/
   492 %{_libdir}/xulrunner-%{version_internal}/plugins/
   499 %{_libdir}/xulrunner-%{version_internal}/plugins/
   493 %{_libdir}/xulrunner-%{version_internal}/res/
   500 %{_libdir}/xulrunner-%{version_internal}/res/
   494 %{_libdir}/xulrunner-%{version_internal}/*.so
   501 %{_libdir}/xulrunner-%{version_internal}/*.so
       
   502 %exclude %{_libdir}/xulrunner-%{version_internal}/libmozjs.so
   495 %{_libdir}/xulrunner-%{version_internal}/.autoreg
   503 %{_libdir}/xulrunner-%{version_internal}/.autoreg
   496 %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh
   504 %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh
   497 %{_libdir}/xulrunner-%{version_internal}/dependentlibs.list
   505 %{_libdir}/xulrunner-%{version_internal}/dependentlibs.list
   498 %{_libdir}/xulrunner-%{version_internal}/mozilla-xremote-client
   506 %{_libdir}/xulrunner-%{version_internal}/mozilla-xremote-client
       
   507 %{_libdir}/xulrunner-%{version_internal}/mozilla-runtime
   499 %{_libdir}/xulrunner-%{version_internal}/run-mozilla.sh
   508 %{_libdir}/xulrunner-%{version_internal}/run-mozilla.sh
   500 %{_libdir}/xulrunner-%{version_internal}/xulrunner
   509 %{_libdir}/xulrunner-%{version_internal}/xulrunner
   501 %{_libdir}/xulrunner-%{version_internal}/xulrunner-bin
   510 %{_libdir}/xulrunner-%{version_internal}/xulrunner-bin
   502 %{_libdir}/xulrunner-%{version_internal}/xulrunner-stub
   511 %{_libdir}/xulrunner-%{version_internal}/xulrunner-stub
   503 %{_libdir}/xulrunner-%{version_internal}/platform.ini
   512 %{_libdir}/xulrunner-%{version_internal}/platform.ini
   520 # compat symlinks
   529 # compat symlinks
   521 %if 0%{?ga_version:1} 
   530 %if 0%{?ga_version:1} 
   522 %ghost %{_libdir}/xulrunner-%{ga_version}
   531 %ghost %{_libdir}/xulrunner-%{ga_version}
   523 %endif
   532 %endif
   524 
   533 
       
   534 %files -n mozilla-js192
       
   535 %defattr(-,root,root)
       
   536 %dir %{_libdir}/xulrunner-%{version_internal}/
       
   537 %{_libdir}/xulrunner-%{apiversion}
       
   538 %{_libdir}/xulrunner-%{version_internal}/libmozjs.so
       
   539 
   525 %files devel
   540 %files devel
   526 %defattr(-,root,root)
   541 %defattr(-,root,root)
   527 %{_libdir}/xulrunner-%{version_internal}/xpcshell
   542 %{_libdir}/xulrunner-%{version_internal}/xpcshell
   528 %{_libdir}/xulrunner-%{version_internal}/xpidl
   543 %{_libdir}/xulrunner-%{version_internal}/xpidl
   529 %{_libdir}/xulrunner-%{version_internal}/xpt_dump
   544 %{_libdir}/xulrunner-%{version_internal}/xpt_dump
   541 %ghost %{_libdir}/xulrunner-%{version_internal}/.autoreg
   556 %ghost %{_libdir}/xulrunner-%{version_internal}/.autoreg
   542 %{_libdir}/xulrunner-%{version_internal}/components/libmozgnome.so
   557 %{_libdir}/xulrunner-%{version_internal}/components/libmozgnome.so
   543 %{_libdir}/xulrunner-%{version_internal}/components/libnkgnomevfs.so
   558 %{_libdir}/xulrunner-%{version_internal}/components/libnkgnomevfs.so
   544 
   559 
   545 %if %localize
   560 %if %localize
       
   561 
   546 %files translations-common -f %{_tmppath}/translations.common
   562 %files translations-common -f %{_tmppath}/translations.common
   547 %defattr(-,root,root)
   563 %defattr(-,root,root)
   548 %dir %{_libdir}/xulrunner-%{version_internal}/
   564 %dir %{_libdir}/xulrunner-%{version_internal}/
   549 %dir %{_libdir}/xulrunner-%{version_internal}/chrome/
   565 %dir %{_libdir}/xulrunner-%{version_internal}/chrome/
   550 
   566 
   553 %dir %{_libdir}/xulrunner-%{version_internal}/
   569 %dir %{_libdir}/xulrunner-%{version_internal}/
   554 %dir %{_libdir}/xulrunner-%{version_internal}/chrome/
   570 %dir %{_libdir}/xulrunner-%{version_internal}/chrome/
   555 %endif
   571 %endif
   556 
   572 
   557 %if %crashreporter
   573 %if %crashreporter
       
   574 
   558 %files buildsymbols
   575 %files buildsymbols
   559 %defattr(-,root,root)
   576 %defattr(-,root,root)
   560 %{_datadir}/mozilla/
   577 %{_datadir}/mozilla/
   561 %endif
   578 %endif
   562 
   579