mozilla-xulrunner192/mozilla-xulrunner192.spec
author Wolfgang Rosenauer <wr@rosenauer.org>
Sun, 18 Dec 2011 19:03:56 +0100
branchmozilla-1.9.2
changeset 362 92e81e89dc95
parent 348 ebdb6a9e0132
child 365 243bca1c121b
permissions -rw-r--r--
update to 1.9.2.25/3.6.25
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     1
#
240
ec8f4a658086 update for 1.9.2.16/3.6.16
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 234
diff changeset
     2
# spec file for package mozilla-xulrunner192
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     3
#
222
db4d70b9a7a4 update to 1.9.2.14/3.6.14
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 204
diff changeset
     4
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
db4d70b9a7a4 update to 1.9.2.14/3.6.14
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 204
diff changeset
     5
#               2006-2011 Wolfgang Rosenauer
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     6
#
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     7
# All modifications and additions to the file contributed by third parties
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     8
# remain the property of their copyright owners, unless otherwise agreed
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     9
# upon. The license for this file, and modifications and additions to the
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    10
# file, is the same license as for the pristine package itself (unless the
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    11
# license for the pristine package is not an Open Source License, in which
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    12
# case the license is the MIT License). An "Open Source License" is a
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    13
# license that conforms to the Open Source Definition (Version 1.9)
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    14
# published by the Open Source Initiative.
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    15
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    16
# Please submit bugfixes or comments via http://bugs.opensuse.org/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    17
#
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    18
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    19
Name:           mozilla-xulrunner192
362
92e81e89dc95 update to 1.9.2.25/3.6.25
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 348
diff changeset
    20
BuildRequires:  autoconf213
92e81e89dc95 update to 1.9.2.25/3.6.25
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 348
diff changeset
    21
BuildRequires:  dbus-1-glib-devel
92e81e89dc95 update to 1.9.2.25/3.6.25
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 348
diff changeset
    22
BuildRequires:  gcc-c++
92e81e89dc95 update to 1.9.2.25/3.6.25
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 348
diff changeset
    23
BuildRequires:  libcurl-devel
92e81e89dc95 update to 1.9.2.25/3.6.25
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 348
diff changeset
    24
BuildRequires:  libgnomeui-devel
92e81e89dc95 update to 1.9.2.25/3.6.25
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 348
diff changeset
    25
BuildRequires:  libidl-devel
92e81e89dc95 update to 1.9.2.25/3.6.25
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 348
diff changeset
    26
BuildRequires:  libnotify-devel
92e81e89dc95 update to 1.9.2.25/3.6.25
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 348
diff changeset
    27
BuildRequires:  pkg-config
92e81e89dc95 update to 1.9.2.25/3.6.25
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 348
diff changeset
    28
BuildRequires:  python
92e81e89dc95 update to 1.9.2.25/3.6.25
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 348
diff changeset
    29
BuildRequires:  startup-notification-devel
92e81e89dc95 update to 1.9.2.25/3.6.25
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 348
diff changeset
    30
BuildRequires:  zip
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    31
# needed for brp-check-bytecode-version (jar, fastjar would do as well)
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    32
BuildRequires:  unzip
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    33
%if %suse_version > 1020
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    34
BuildRequires:  fdupes
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    35
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    36
%if %suse_version > 1030
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    37
BuildRequires:  hunspell-devel
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    38
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    39
%if %suse_version > 1100
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    40
BuildRequires:  nss-shared-helper-devel
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    41
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    42
%if %suse_version > 1110
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    43
BuildRequires:  libiw-devel
20
148671c3abcb Enable libproxy support
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 18
diff changeset
    44
BuildRequires:  libproxy-devel
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    45
%else
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    46
BuildRequires:  wireless-tools
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    47
%endif
362
92e81e89dc95 update to 1.9.2.25/3.6.25
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 348
diff changeset
    48
Version:        1.9.2.25
92e81e89dc95 update to 1.9.2.25/3.6.25
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 348
diff changeset
    49
Release:        0
92e81e89dc95 update to 1.9.2.25/3.6.25
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 348
diff changeset
    50
%define         releasedate 2011121600
92e81e89dc95 update to 1.9.2.25/3.6.25
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 348
diff changeset
    51
%define         version_internal 1.9.2.25
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    52
%define         apiversion 1.9.2
362
92e81e89dc95 update to 1.9.2.25/3.6.25
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 348
diff changeset
    53
%define         uaweight 192250
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    54
Summary:        Mozilla Runtime Environment 1.9.2
362
92e81e89dc95 update to 1.9.2.25/3.6.25
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 348
diff changeset
    55
License:        MPL-1.1 or GPL-2.0+ or LGPL-2.1+
92e81e89dc95 update to 1.9.2.25/3.6.25
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 348
diff changeset
    56
Group:          Productivity/Other
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    57
Url:            http://www.mozilla.org
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    58
Provides:       gecko192
11
32afe3be5990 Integrate mozilla-kde patch in xulrunner192 and some cleanup
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 7
diff changeset
    59
%if %suse_version >= 1110
32afe3be5990 Integrate mozilla-kde patch in xulrunner192 and some cleanup
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 7
diff changeset
    60
# this is needed to match this package with the kde4 helper package without the main package
32afe3be5990 Integrate mozilla-kde patch in xulrunner192 and some cleanup
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 7
diff changeset
    61
# having a hard requirement on the kde4 package
32afe3be5990 Integrate mozilla-kde patch in xulrunner192 and some cleanup
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 7
diff changeset
    62
%define kde_helper_version 6
15
8d0eafdb2e08 Rename virtual provides to match latest kde integration package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 14
diff changeset
    63
Provides:       mozilla-kde4-version = %{kde_helper_version}
11
32afe3be5990 Integrate mozilla-kde patch in xulrunner192 and some cleanup
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 7
diff changeset
    64
%endif
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    65
%ifarch %ix86
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    66
Provides:       mozilla-xulrunner192-32bit = %{version}-%{release}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    67
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    68
Source:         xulrunner-source-%{version}.tar.bz2
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    69
Source1:        l10n-%{version}.tar.bz2
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    70
Source2:        find-external-requires.sh
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    71
Source3:        %{name}-rpmlintrc
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    72
Source4:        xulrunner-openSUSE-prefs.js
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    73
Source5:        add-plugins.sh.in
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    74
Source6:        create-tar.sh
23
c62859a2fd22 Add baselibs.conf to source rpm
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 21
diff changeset
    75
Source7:        baselibs.conf
36
c55ce8284eb3 Apply the used lockdown preferences. Otherwise JS code throws exceptions which break stuff. (bnc#567131)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 32
diff changeset
    76
Source8:        toolkit-lockdown.js
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    77
Patch1:         toolkit-download-folder.patch
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    78
Patch2:         mozilla-libproxy.patch
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    79
Patch3:         mozilla-pkgconfig.patch
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    80
Patch4:         idldir.patch
11
32afe3be5990 Integrate mozilla-kde patch in xulrunner192 and some cleanup
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 7
diff changeset
    81
Patch5:         mozilla-nongnome-proxies.patch
299
9a09a02dff60 update to 1.9.2.20/3.6.20
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 278
diff changeset
    82
Patch6:         mozilla-dump_syms-static.patch
11
32afe3be5990 Integrate mozilla-kde patch in xulrunner192 and some cleanup
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 7
diff changeset
    83
Patch7:         mozilla-prefer_plugin_pref.patch
32afe3be5990 Integrate mozilla-kde patch in xulrunner192 and some cleanup
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 7
diff changeset
    84
Patch8:         mozilla-shared-nss-db.patch
32afe3be5990 Integrate mozilla-kde patch in xulrunner192 and some cleanup
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 7
diff changeset
    85
Patch10:        mozilla-kde.patch
24
ca988be0905b Update and integrate new lockdown patches.
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 23
diff changeset
    86
# PATCH-FEATURE-SLED FATE#302023, FATE#302024
ca988be0905b Update and integrate new lockdown patches.
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 23
diff changeset
    87
Patch11:        mozilla-gconf-backend.patch
ca988be0905b Update and integrate new lockdown patches.
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 23
diff changeset
    88
Patch12:        gecko-lockdown.patch
ca988be0905b Update and integrate new lockdown patches.
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 23
diff changeset
    89
Patch13:        toolkit-ui-lockdown.patch
122
4270a8c31485 honor LANGUAGE environment variable for UI locale (bmo#583793)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 118
diff changeset
    90
# ---
118
deb8fdcf4792 add lcd filter patch for cairo
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 112
diff changeset
    91
Patch14:        mozilla-cairo-lcd.patch
60
10828c29ade2 Remove obsolete patch
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 59
diff changeset
    92
Patch15:        mozilla-ua-locale-pref.patch
122
4270a8c31485 honor LANGUAGE environment variable for UI locale (bmo#583793)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 118
diff changeset
    93
Patch16:        mozilla-locale.patch
151
4b31c799a73f fix build with latest Gnome
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 143
diff changeset
    94
Patch17:        mozilla-gdk-pixbuf.patch
159
416b9e491c6f Changelog update
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 151
diff changeset
    95
Patch18:        mozilla-prlog.patch
227
9f0ffc441295 mozilla-ntlm-full-path.patch
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 222
diff changeset
    96
Patch19:        mozilla-ntlm-full-path.patch
274
e86384773149 gcc 4.6 buildfixes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 273
diff changeset
    97
Patch20:        mozilla-gcc46.patch
299
9a09a02dff60 update to 1.9.2.20/3.6.20
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 278
diff changeset
    98
Patch21:        mozilla-implicit-declarations.patch
9a09a02dff60 update to 1.9.2.20/3.6.20
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 278
diff changeset
    99
Patch22:        mozilla-curl.patch
300
dff60ff6dfce recognize linux3 as platform for symbolstore.py
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 299
diff changeset
   100
Patch23:        mozilla-linux3.patch
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   101
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
90
791f19dc8023 require same version of mozilla-js192
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 89
diff changeset
   102
Requires:       mozilla-js192 = %{version}
45
f4afdb80c73c Get rid of legacy PreReq in xulrunner package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 44
diff changeset
   103
Requires(post):  update-alternatives coreutils
f4afdb80c73c Get rid of legacy PreReq in xulrunner package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 44
diff changeset
   104
Requires(preun): update-alternatives coreutils
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   105
### build configuration ###
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   106
%define has_system_nspr  0
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   107
%define has_system_nss   0
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   108
%define has_system_cairo 0
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   109
%define localize 1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   110
%if %suse_version > 1030 || 0%{?opensuse_bs}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   111
%define has_system_nspr  1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   112
%define has_system_nss   1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   113
%endif
109
2bfb3c461caf handle other archs
Marcus Meissner <meissner@suse.de>
parents: 107
diff changeset
   114
%ifarch ppc ppc64 s390 s390x ia64
2bfb3c461caf handle other archs
Marcus Meissner <meissner@suse.de>
parents: 107
diff changeset
   115
%define crashreporter    0
2bfb3c461caf handle other archs
Marcus Meissner <meissner@suse.de>
parents: 107
diff changeset
   116
%define plugincontainer  0
2bfb3c461caf handle other archs
Marcus Meissner <meissner@suse.de>
parents: 107
diff changeset
   117
%else
2bfb3c461caf handle other archs
Marcus Meissner <meissner@suse.de>
parents: 107
diff changeset
   118
%define crashreporter    1
2bfb3c461caf handle other archs
Marcus Meissner <meissner@suse.de>
parents: 107
diff changeset
   119
%define plugincontainer  1
2bfb3c461caf handle other archs
Marcus Meissner <meissner@suse.de>
parents: 107
diff changeset
   120
%endif
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   121
### configuration end ###
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   122
%define _use_internal_dependency_generator 0
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   123
%define __find_requires sh %{SOURCE2}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   124
%global provfind sh -c "grep -v 'libsqlite3.so' | %__find_provides"
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   125
%global __find_provides %provfind
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   126
%if %has_system_nspr
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   127
BuildRequires:  mozilla-nspr-devel
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   128
Requires:       mozilla-nspr >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr)
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   129
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   130
%if %has_system_nss
176
692686ab9228 1.9.2.11/3.6.11rc
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 174
diff changeset
   131
BuildRequires:  mozilla-nss-devel >= 3.12.8
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   132
Requires:       mozilla-nss >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss)
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   133
%endif
21
5b8b22d50d90 Rename -gnomevfs subpackage to -gnome
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 20
diff changeset
   134
Recommends:     %{name}-gnome
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   135
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   136
%description
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   137
XULRunner is a single installable package that can be used to bootstrap
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   138
multiple XUL+XPCOM applications that are as rich as Firefox and
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   139
Thunderbird.
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   140
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   141
61
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   142
%package -n mozilla-js192
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   143
Summary:        Mozilla JS 1.8 engine
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   144
Group:          Productivity/Other
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   145
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   146
%description -n mozilla-js192
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   147
JavaScript is the Netscape-developed object scripting language used in millions
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   148
of web pages and server applications worldwide. Netscape's JavaScript is a
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   149
superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
240
ec8f4a658086 update for 1.9.2.16/3.6.16
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 234
diff changeset
   150
with only mild differences from the published standard.
61
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   151
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   152
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   153
%package devel
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   154
Summary:        XULRunner/Gecko SDK 1.9.2
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   155
Group:          Development/Libraries/Other
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   156
%if %has_system_nspr
240
ec8f4a658086 update for 1.9.2.16/3.6.16
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 234
diff changeset
   157
Requires:       mozilla-nspr-devel >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr-devel)
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   158
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   159
%if %has_system_nss
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   160
Requires:       mozilla-nss-devel >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss-devel)
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   161
%endif
45
f4afdb80c73c Get rid of legacy PreReq in xulrunner package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 44
diff changeset
   162
Requires:       %{name} = %{version}
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   163
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   164
%description devel
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   165
Software Development Kit to embed XUL or Gecko into other applications.
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   166
43
3a1561dda105 Patch mozilla-central breakpad code into 1.9.2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 42
diff changeset
   167
%if %localize
63
9213a0672227 Update to 1.9.2.3/3.6.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 61
diff changeset
   168
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   169
%package translations-common
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   170
Summary:        Common translations for XULRunner 1.9.2
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   171
Group:          System/Localization
45
f4afdb80c73c Get rid of legacy PreReq in xulrunner package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 44
diff changeset
   172
Requires:       %{name} = %{version}
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   173
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)
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   174
Obsoletes:      %{name}-translations < %{version}-%{release}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   175
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   176
%description translations-common
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   177
XULRunner is a single installable package that can be used to bootstrap
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   178
multiple XUL+XPCOM applications that are as rich as Firefox and
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   179
Thunderbird.
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   180
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   181
This package contains the most common languages but en-US which is
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   182
delivered in the main package.
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   183
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   184
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   185
%package translations-other
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   186
Summary:        Extra translations for XULRunner 1.9.2
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   187
Group:          System/Localization
45
f4afdb80c73c Get rid of legacy PreReq in xulrunner package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 44
diff changeset
   188
Requires:       %{name} = %{version}
46
c743908ffe6f Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 45
diff changeset
   189
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)
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   190
Obsoletes:      %{name}-translations < %{version}-%{release}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   191
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   192
%description translations-other
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   193
XULRunner is a single installable package that can be used to bootstrap
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   194
multiple XUL+XPCOM applications that are as rich as Firefox and
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   195
Thunderbird.
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   196
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   197
This package contains rarely used languages.
43
3a1561dda105 Patch mozilla-central breakpad code into 1.9.2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 42
diff changeset
   198
%endif
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   199
21
5b8b22d50d90 Rename -gnomevfs subpackage to -gnome
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 20
diff changeset
   200
%package gnome
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   201
Summary:        XULRunner components depending on gnome-vfs
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   202
Group:          Productivity/Other
45
f4afdb80c73c Get rid of legacy PreReq in xulrunner package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 44
diff changeset
   203
Requires:       %{name} = %{version}-%{release}
f4afdb80c73c Get rid of legacy PreReq in xulrunner package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 44
diff changeset
   204
Requires(post): coreutils
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   205
21
5b8b22d50d90 Rename -gnomevfs subpackage to -gnome
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 20
diff changeset
   206
%description gnome
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   207
This subpackage contains the Necko Gnome-VFS and Gnome components which
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   208
rely on the gnome-vfs subsystem to be installed. They are recommended
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   209
for full desktop integration but not mandatory for small disk footprint
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   210
KDE installations for example.
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   211
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   212
41
fb795017b95f Fix %if crashreporter statements
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 38
diff changeset
   213
%if %crashreporter
183
15e53a96c9ca changelogs
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 176
diff changeset
   214
28
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   215
%package buildsymbols
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   216
Summary:        Breakpad buildsymbols for %{name}
308
a5cece1da91f xulrunner 1.9.2.22 update
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 300
diff changeset
   217
Group:          Development/Tools/Other
28
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   218
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   219
%description buildsymbols
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   220
This subpackage contains the Breakpad created and compatible debugging
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   221
symbols meant for upload to Mozilla's crash collector database.
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   222
%endif
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   223
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   224
%prep
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   225
%setup -n mozilla -q -b 1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   226
%patch1 -p1
11
32afe3be5990 Integrate mozilla-kde patch in xulrunner192 and some cleanup
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 7
diff changeset
   227
%patch2 -p1
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   228
%patch3 -p1
7
18af63e87953 Fix patch depth
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 4
diff changeset
   229
%patch4 -p1
11
32afe3be5990 Integrate mozilla-kde patch in xulrunner192 and some cleanup
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 7
diff changeset
   230
%patch5 -p1
299
9a09a02dff60 update to 1.9.2.20/3.6.20
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 278
diff changeset
   231
%patch6 -p1
7
18af63e87953 Fix patch depth
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 4
diff changeset
   232
%patch7 -p1
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   233
%patch8 -p1
16
3a19b2e94737 Fix build correctly this time
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 15
diff changeset
   234
%if %suse_version >= 1110
11
32afe3be5990 Integrate mozilla-kde patch in xulrunner192 and some cleanup
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 7
diff changeset
   235
%patch10 -p1
16
3a19b2e94737 Fix build correctly this time
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 15
diff changeset
   236
%endif
32
e26339117f38 Enable lockdown patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 28
diff changeset
   237
%patch11 -p1
e26339117f38 Enable lockdown patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 28
diff changeset
   238
%patch12 -p1
e26339117f38 Enable lockdown patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 28
diff changeset
   239
%patch13 -p1
118
deb8fdcf4792 add lcd filter patch for cairo
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 112
diff changeset
   240
%patch14 -p1
60
10828c29ade2 Remove obsolete patch
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 59
diff changeset
   241
# bmo#542999
46
c743908ffe6f Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 45
diff changeset
   242
%patch15 -p1
122
4270a8c31485 honor LANGUAGE environment variable for UI locale (bmo#583793)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 118
diff changeset
   243
%patch16 -p1
151
4b31c799a73f fix build with latest Gnome
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 143
diff changeset
   244
%patch17 -p1
159
416b9e491c6f Changelog update
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 151
diff changeset
   245
%patch18 -p1
227
9f0ffc441295 mozilla-ntlm-full-path.patch
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 222
diff changeset
   246
%patch19 -p1
274
e86384773149 gcc 4.6 buildfixes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 273
diff changeset
   247
%patch20 -p1
299
9a09a02dff60 update to 1.9.2.20/3.6.20
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 278
diff changeset
   248
%patch21 -p1
9a09a02dff60 update to 1.9.2.20/3.6.20
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 278
diff changeset
   249
%patch22 -p1
300
dff60ff6dfce recognize linux3 as platform for symbolstore.py
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 299
diff changeset
   250
%patch23 -p1
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   251
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   252
%build
11
32afe3be5990 Integrate mozilla-kde patch in xulrunner192 and some cleanup
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 7
diff changeset
   253
%if %suse_version >= 1110
32afe3be5990 Integrate mozilla-kde patch in xulrunner192 and some cleanup
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 7
diff changeset
   254
kdehelperversion=$(cat toolkit/xre/nsKDEUtils.cpp | grep '#define KMOZILLAHELPER_VERSION' | cut -d ' ' -f 3)
32afe3be5990 Integrate mozilla-kde patch in xulrunner192 and some cleanup
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 7
diff changeset
   255
if test "$kdehelperversion" != %{kde_helper_version}; then
32afe3be5990 Integrate mozilla-kde patch in xulrunner192 and some cleanup
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 7
diff changeset
   256
  echo fix kde helper version in the .spec file
32afe3be5990 Integrate mozilla-kde patch in xulrunner192 and some cleanup
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 7
diff changeset
   257
  exit 1
32afe3be5990 Integrate mozilla-kde patch in xulrunner192 and some cleanup
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 7
diff changeset
   258
fi
32afe3be5990 Integrate mozilla-kde patch in xulrunner192 and some cleanup
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 7
diff changeset
   259
%endif
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   260
MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   261
export MOZ_BUILD_DATE=%{releasedate}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   262
export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing"
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   263
%ifarch ppc64
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   264
export CFLAGS="$CFLAGS -mminimal-toc"
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   265
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   266
# 10.3-x86_64 build fails probably because gcc bug
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   267
%if %suse_version == 1030
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   268
%ifarch x86_64
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   269
export ac_cv_visibility_hidden="no"
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   270
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   271
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   272
export CXXFLAGS="$CFLAGS"
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   273
export LDFLAGS="-Wl,-rpath -Wl,${MOZ_APP_DIR}"
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   274
export MOZCONFIG=$RPM_BUILD_DIR/mozconfig
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   275
export MOZILLA_OFFICIAL=1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   276
export BUILD_OFFICIAL=1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   277
export MOZ_MILESTONE_RELEASE=1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   278
#
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   279
cat << EOF > $MOZCONFIG
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   280
mk_add_options MOZILLA_OFFICIAL=1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   281
mk_add_options BUILD_OFFICIAL=1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   282
mk_add_options MOZ_MILESTONE_RELEASE=1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   283
mk_add_options MOZ_MAKE_FLAGS=%{?jobs:-j%jobs}
55
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   284
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   285
. \$topsrcdir/xulrunner/config/mozconfig
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   286
ac_add_options --prefix=%{_prefix}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   287
ac_add_options --libdir=%{_libdir}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   288
ac_add_options --sysconfdir=%{_sysconfdir}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   289
ac_add_options --mandir=%{_mandir}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   290
ac_add_options --includedir=%{_includedir}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   291
ac_add_options --enable-optimize
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   292
ac_add_options --enable-extensions=default
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   293
ac_add_options --with-system-jpeg
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   294
#ac_add_options --with-system-png # no APNG support
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   295
ac_add_options --with-system-zlib
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   296
ac_add_options --with-l10n-base=../l10n
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   297
ac_add_options --disable-tests
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   298
ac_add_options --disable-mochitest
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   299
ac_add_options --disable-installer
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   300
ac_add_options --disable-updater
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   301
ac_add_options --disable-javaxpcom
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   302
ac_add_options --enable-startup-notification
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   303
ac_add_options --enable-url-classifier
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   304
#ac_add_options --enable-debug
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   305
EOF
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   306
%if %has_system_nspr
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   307
cat << EOF >> $MOZCONFIG
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   308
ac_add_options --with-system-nspr
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   309
EOF
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   310
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   311
%if %has_system_nss
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   312
cat << EOF >> $MOZCONFIG
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   313
ac_add_options --with-system-nss
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   314
EOF
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   315
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   316
%if %has_system_cairo
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   317
cat << EOF >> $MOZCONFIG
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   318
ac_add_options --enable-system-cairo
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   319
EOF
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   320
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   321
%if %suse_version > 1030
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   322
cat << EOF >> $MOZCONFIG
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   323
ac_add_options --enable-system-hunspell
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   324
EOF
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   325
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   326
#%if %suse_version > 1100
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   327
#cat << EOF >> $MOZCONFIG
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   328
#ac_add_options --enable-system-sqlite
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   329
#EOF
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   330
#%endif
20
148671c3abcb Enable libproxy support
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 18
diff changeset
   331
%if %suse_version > 1110
148671c3abcb Enable libproxy support
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 18
diff changeset
   332
cat << EOF >> $MOZCONFIG
148671c3abcb Enable libproxy support
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 18
diff changeset
   333
ac_add_options --enable-libproxy
148671c3abcb Enable libproxy support
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 18
diff changeset
   334
EOF
148671c3abcb Enable libproxy support
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 18
diff changeset
   335
%endif
42
6ee6583389c7 Fix crashreporter build option finally
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 41
diff changeset
   336
%if ! %crashreporter
6ee6583389c7 Fix crashreporter build option finally
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 41
diff changeset
   337
cat << EOF >> $MOZCONFIG
6ee6583389c7 Fix crashreporter build option finally
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 41
diff changeset
   338
ac_add_options --disable-crashreporter
6ee6583389c7 Fix crashreporter build option finally
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 41
diff changeset
   339
EOF
6ee6583389c7 Fix crashreporter build option finally
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 41
diff changeset
   340
%endif
109
2bfb3c461caf handle other archs
Marcus Meissner <meissner@suse.de>
parents: 107
diff changeset
   341
%if ! %plugincontainer
2bfb3c461caf handle other archs
Marcus Meissner <meissner@suse.de>
parents: 107
diff changeset
   342
cat << EOF >> $MOZCONFIG
2bfb3c461caf handle other archs
Marcus Meissner <meissner@suse.de>
parents: 107
diff changeset
   343
# Chromium IPC is not ported to Power,S/390 and Itanium (currently just x86,x86_64 and arm)
2bfb3c461caf handle other archs
Marcus Meissner <meissner@suse.de>
parents: 107
diff changeset
   344
ac_add_options --disable-ipc
2bfb3c461caf handle other archs
Marcus Meissner <meissner@suse.de>
parents: 107
diff changeset
   345
EOF
2bfb3c461caf handle other archs
Marcus Meissner <meissner@suse.de>
parents: 107
diff changeset
   346
%endif
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   347
make -f client.mk build
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   348
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   349
%install
55
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   350
cd ../obj
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   351
%makeinstall STRIP=/bin/true
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   352
# remove some executable permissions
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   353
find $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal} \
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   354
     -type f -perm -111 -exec chmod a-x {} \;
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   355
find $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/ \
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   356
     -name "*.js" -o -name "*.xpm" -o -name "*.png" | xargs chmod a-x
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   357
mkdir -p $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/extensions
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   358
# fixing SDK dynamic libs (symlink instead of copy)
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   359
rm $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/*.so
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   360
ln -sf ../../../xulrunner-%{version_internal}/libmozjs.so \
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   361
       $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   362
ln -sf ../../../xulrunner-%{version_internal}/libxpcom.so \
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   363
       $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   364
ln -sf ../../../xulrunner-%{version_internal}/libxul.so \
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   365
       $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/
55
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   366
# include basic buildenv for xulapps to use
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   367
mkdir -p $RPM_BUILD_ROOT%{_datadir}/xulrunner-%{version_internal}
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   368
pushd ..
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   369
# this list has been compiled by trial and error for prism
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   370
tar --exclude=*.cpp --exclude=*.mm \
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   371
   -cvjf $RPM_BUILD_ROOT%{_datadir}/xulrunner-%{version_internal}/mozilla-src.tar.bz2 \
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   372
    mozilla/configure.in mozilla/Makefile.in mozilla/client.py mozilla/allmakefiles.sh \
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   373
    mozilla/config mozilla/client.mk mozilla/aclocal.m4 mozilla/build mozilla/js/src/* \
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   374
    mozilla/testing mozilla/toolkit/mozapps/installer mozilla/probes mozilla/memory \
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   375
    mozilla/toolkit/xre mozilla/nsprpub/config mozilla/tools mozilla/xpcom/build
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   376
popd
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   377
# XPI example
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   378
#cp -rL dist/xpi-stage/simple $RPM_BUILD_ROOT/%{_libdir}/xulrunner-%{version_internal}/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   379
# preferences
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   380
cp %{SOURCE4} $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/greprefs/all-openSUSE.js
36
c55ce8284eb3 Apply the used lockdown preferences. Otherwise JS code throws exceptions which break stuff. (bnc#567131)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 32
diff changeset
   381
cp %{SOURCE8} $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/greprefs/lockdown.js
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   382
# install add-plugins.sh
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   383
sed "s:%%PROGDIR:%{_libdir}/xulrunner-%{version_internal}:g" \
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   384
  %{SOURCE5} > $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   385
chmod 755 $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   386
# 64bit classification for GRE config
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   387
%ifarch x86_64 s390x ppc64
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   388
mv $RPM_BUILD_ROOT%{_sysconfdir}/gre.d/%{version_internal}.system.conf \
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   389
   $RPM_BUILD_ROOT%{_sysconfdir}/gre.d/%{version_internal}-64bit.system.conf
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   390
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   391
# ghosts
50
00ee07727e73 Files managed by update-alternatives should be packaged as %ghost files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 46
diff changeset
   392
touch $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/global.reginfo
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   393
# install additional locales
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   394
%if %localize
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   395
rm -f %{_tmppath}/translations.*
55
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   396
for locale in $(awk '{ print $1; }' ../mozilla/browser/locales/shipped-locales); do
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   397
  case $locale in
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   398
   ja-JP-mac|en-US)
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   399
      ;;
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   400
   *)
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   401
      make -C toolkit/locales libs-$locale
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   402
      cp dist/xpi-stage/locale-$locale/chrome/$locale.jar \
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   403
         $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/chrome
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   404
      cp dist/xpi-stage/locale-$locale/chrome/$locale.manifest \
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   405
         $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/chrome
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   406
      # check against the fixed common list and sort into the right filelist
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   407
      _matched=0
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   408
      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
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   409
        [ "$_match" = "$locale" ] && _matched=1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   410
      done
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   411
      [ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   412
      echo %{_libdir}/xulrunner-%{version_internal}/chrome/$locale.jar \
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   413
         >> %{_tmppath}/translations.$_l10ntarget
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   414
      echo %{_libdir}/xulrunner-%{version_internal}/chrome/$locale.manifest \
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   415
         >> %{_tmppath}/translations.$_l10ntarget
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   416
  esac
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   417
done
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   418
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   419
# API symlink
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   420
ln -sf xulrunner-%{version_internal} $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{apiversion}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   421
# compat links
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   422
%if 0%{?ga_version:1}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   423
touch $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{ga_version}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   424
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   425
# excludes
51
a87b1d6c6d53 Non-conflicting %ghost files are only supported in RPM since 11.2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 50
diff changeset
   426
%if %suse_version < 1120
a87b1d6c6d53 Non-conflicting %ghost files are only supported in RPM since 11.2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 50
diff changeset
   427
rm -f $RPM_BUILD_ROOT%{_bindir}/xulrunner
a87b1d6c6d53 Non-conflicting %ghost files are only supported in RPM since 11.2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 50
diff changeset
   428
%endif
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   429
rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/updater
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   430
rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/update.locale
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   431
rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/LICENSE
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   432
rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/README.txt
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   433
rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/dictionaries/en-US*
17
d4ffecc006bb use .autoreg file for autoregistration when needed (bnc#440872)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 16
diff changeset
   434
# autoreg
d4ffecc006bb use .autoreg file for autoregistration when needed (bnc#440872)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 16
diff changeset
   435
touch $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/.autoreg
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   436
# fdupes
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   437
%if %suse_version > 1020
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   438
%fdupes $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal}/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   439
%fdupes $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   440
%endif
28
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   441
# create breakpad debugsymbols
41
fb795017b95f Fix %if crashreporter statements
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 38
diff changeset
   442
%if %crashreporter
56
6c1feeed3314 Remove non-working mozilla-crash-annotation.patch
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 55
diff changeset
   443
SYMBOLS_NAME="xulrunner-%{version}-%{release}.%{_arch}-%{suse_version}-symbols"
6c1feeed3314 Remove non-working mozilla-crash-annotation.patch
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 55
diff changeset
   444
make buildsymbols \
6c1feeed3314 Remove non-working mozilla-crash-annotation.patch
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 55
diff changeset
   445
  SYMBOL_INDEX_NAME="$SYMBOLS_NAME.txt" \
6c1feeed3314 Remove non-working mozilla-crash-annotation.patch
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 55
diff changeset
   446
  SYMBOL_ARCHIVE_BASENAME="$SYMBOLS_NAME"
6c1feeed3314 Remove non-working mozilla-crash-annotation.patch
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 55
diff changeset
   447
if [ -e dist/*symbols.zip ]; then
28
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   448
  mkdir -p $RPM_BUILD_ROOT%{_datadir}/mozilla/
56
6c1feeed3314 Remove non-working mozilla-crash-annotation.patch
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 55
diff changeset
   449
  cp dist/*symbols.zip $RPM_BUILD_ROOT%{_datadir}/mozilla/
28
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   450
fi
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   451
%endif
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   452
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   453
%clean
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   454
rm -rf $RPM_BUILD_ROOT
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   455
%if %localize
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   456
rm -rf %{_tmppath}/translations.*
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   457
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   458
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   459
%post
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   460
/usr/sbin/update-alternatives --install %{_bindir}/xulrunner \
72
09df8552b796 Update for 3.6.4build2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 71
diff changeset
   461
  xulrunner %{_libdir}/xulrunner-%{apiversion}/xulrunner %{uaweight} || :
71
ae404bc8e61f Linking to the stable api "link" makes patch version downgrades working with update alternatives (bnc#589037)
Michal Vyskocil <mvyskocil@novell.com>
parents: 70
diff changeset
   462
%{_libdir}/xulrunner-%{apiversion}/add-plugins.sh > /dev/null 2>&1
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   463
exit 0
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   464
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   465
%posttrans
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   466
# needed for updates which transition directory to symlink
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   467
%if 0%{?ga_version:1} 
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   468
test -d %{_libdir}/xulrunner-%{ga_version} && rm -rf %{_libdir}/xulrunner-%{ga_version}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   469
ln -sf xulrunner-%{version_internal} %{_libdir}/xulrunner-%{ga_version}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   470
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   471
[ -e %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh ] && \
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   472
  %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   473
exit 0
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   474
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   475
%preun
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   476
if [ "$1" = "0" ]; then # deinstallation
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   477
  # that's not quite nice since old versions should be removed on update as well
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   478
  # but that's problematic for updates w/o raising the version number
71
ae404bc8e61f Linking to the stable api "link" makes patch version downgrades working with update alternatives (bnc#589037)
Michal Vyskocil <mvyskocil@novell.com>
parents: 70
diff changeset
   479
  /usr/sbin/update-alternatives --remove xulrunner %{_libdir}/xulrunner-%{apiversion}/xulrunner
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   480
fi
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   481
rm -f %{_libdir}/xulrunner-%{version_internal}/dictionaries/*
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   482
exit 0
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   483
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   484
%triggerin -- myspell-dictionary
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   485
%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   486
exit 0
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   487
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   488
%triggerpostun -- myspell-dictionary
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   489
%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   490
exit 0
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   491
21
5b8b22d50d90 Rename -gnomevfs subpackage to -gnome
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 20
diff changeset
   492
%post gnome
17
d4ffecc006bb use .autoreg file for autoregistration when needed (bnc#440872)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 16
diff changeset
   493
touch %{_libdir}/xulrunner-%{version_internal}/.autoreg
d4ffecc006bb use .autoreg file for autoregistration when needed (bnc#440872)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 16
diff changeset
   494
exit 0
d4ffecc006bb use .autoreg file for autoregistration when needed (bnc#440872)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 16
diff changeset
   495
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   496
%files
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   497
%defattr(-,root,root)
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   498
%dir %{_libdir}/xulrunner-%{version_internal}/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   499
%dir %{_libdir}/xulrunner-%{version_internal}/chrome/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   500
%dir %{_libdir}/xulrunner-%{version_internal}/dictionaries/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   501
%dir %{_libdir}/xulrunner-%{version_internal}/extensions/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   502
%{_libdir}/xulrunner-%{version_internal}/chrome/classic.*
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   503
%{_libdir}/xulrunner-%{version_internal}/chrome/comm.*
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   504
%{_libdir}/xulrunner-%{version_internal}/chrome/en-US.*
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   505
%{_libdir}/xulrunner-%{version_internal}/chrome/pippki.*
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   506
%{_libdir}/xulrunner-%{version_internal}/chrome/toolkit.*
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   507
%{_libdir}/xulrunner-%{version_internal}/chrome/icons/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   508
%{_libdir}/xulrunner-%{version_internal}/components/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   509
%exclude %{_libdir}/xulrunner-%{version_internal}/components/libmozgnome.so
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   510
%exclude %{_libdir}/xulrunner-%{version_internal}/components/libnkgnomevfs.so
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   511
%{_libdir}/xulrunner-%{version_internal}/defaults/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   512
%dir %{_libdir}/xulrunner-%{version_internal}/greprefs/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   513
%{_libdir}/xulrunner-%{version_internal}/greprefs/all.js
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   514
%{_libdir}/xulrunner-%{version_internal}/greprefs/security-prefs.js
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   515
%{_libdir}/xulrunner-%{version_internal}/greprefs/xpinstall.js
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   516
%{_libdir}/xulrunner-%{version_internal}/greprefs/all-openSUSE.js
38
343296cfecd2 Fix filelist and changelog
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 36
diff changeset
   517
%{_libdir}/xulrunner-%{version_internal}/greprefs/lockdown.js
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   518
%{_libdir}/xulrunner-%{version_internal}/icons/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   519
%{_libdir}/xulrunner-%{version_internal}/modules/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   520
%{_libdir}/xulrunner-%{version_internal}/plugins/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   521
%{_libdir}/xulrunner-%{version_internal}/res/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   522
%{_libdir}/xulrunner-%{version_internal}/*.so
61
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   523
%exclude %{_libdir}/xulrunner-%{version_internal}/libmozjs.so
17
d4ffecc006bb use .autoreg file for autoregistration when needed (bnc#440872)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 16
diff changeset
   524
%{_libdir}/xulrunner-%{version_internal}/.autoreg
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   525
%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   526
%{_libdir}/xulrunner-%{version_internal}/dependentlibs.list
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   527
%{_libdir}/xulrunner-%{version_internal}/mozilla-xremote-client
109
2bfb3c461caf handle other archs
Marcus Meissner <meissner@suse.de>
parents: 107
diff changeset
   528
%if %plugincontainer
69
c249083f2e1f mozilla-runtime renamed to plugin-container
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 68
diff changeset
   529
%{_libdir}/xulrunner-%{version_internal}/plugin-container
109
2bfb3c461caf handle other archs
Marcus Meissner <meissner@suse.de>
parents: 107
diff changeset
   530
%endif
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   531
%{_libdir}/xulrunner-%{version_internal}/run-mozilla.sh
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   532
%{_libdir}/xulrunner-%{version_internal}/xulrunner
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   533
%{_libdir}/xulrunner-%{version_internal}/xulrunner-bin
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   534
%{_libdir}/xulrunner-%{version_internal}/xulrunner-stub
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   535
%{_libdir}/xulrunner-%{version_internal}/platform.ini
28
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   536
# crashreporter files
41
fb795017b95f Fix %if crashreporter statements
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 38
diff changeset
   537
%if %crashreporter
28
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   538
%{_libdir}/xulrunner-%{version_internal}/crashreporter
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   539
%{_libdir}/xulrunner-%{version_internal}/crashreporter.ini
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   540
%{_libdir}/xulrunner-%{version_internal}/Throbber-small.gif
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   541
%endif
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   542
# ghosts
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   543
%ghost %{_libdir}/xulrunner-%{version_internal}/global.reginfo
51
a87b1d6c6d53 Non-conflicting %ghost files are only supported in RPM since 11.2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 50
diff changeset
   544
%if %suse_version >= 1120
50
00ee07727e73 Files managed by update-alternatives should be packaged as %ghost files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 46
diff changeset
   545
%ghost %{_bindir}/xulrunner
51
a87b1d6c6d53 Non-conflicting %ghost files are only supported in RPM since 11.2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 50
diff changeset
   546
%endif
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   547
# GRE
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   548
%dir %{_sysconfdir}/gre.d/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   549
%attr(644,root,root) %{_sysconfdir}/gre.d/*
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   550
# API symlink
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   551
%{_libdir}/xulrunner-%{apiversion}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   552
# compat symlinks
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   553
%if 0%{?ga_version:1} 
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   554
%ghost %{_libdir}/xulrunner-%{ga_version}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   555
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   556
61
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   557
%files -n mozilla-js192
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   558
%defattr(-,root,root)
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   559
%dir %{_libdir}/xulrunner-%{version_internal}/
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   560
%{_libdir}/xulrunner-%{apiversion}
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   561
%{_libdir}/xulrunner-%{version_internal}/libmozjs.so
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   562
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   563
%files devel
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   564
%defattr(-,root,root)
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   565
%{_libdir}/xulrunner-%{version_internal}/xpcshell
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   566
%{_libdir}/xulrunner-%{version_internal}/xpidl
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   567
%{_libdir}/xulrunner-%{version_internal}/xpt_dump
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   568
%{_libdir}/xulrunner-%{version_internal}/xpt_link
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   569
%{_libdir}/xulrunner-devel-%{version_internal}/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   570
# FIXME symlink dynamic libs below sdk/lib
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   571
%attr(644,root,root) %{_libdir}/pkgconfig/*
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   572
%{_includedir}/xulrunner-%{version_internal}/
55
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   573
%{_datadir}/xulrunner-%{version_internal}/
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   574
21
5b8b22d50d90 Rename -gnomevfs subpackage to -gnome
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 20
diff changeset
   575
%files gnome
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   576
%defattr(-,root,root)
44
f8e8bc740b10 Tentative fix for incomplete cleanup at upgrade or removal
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 43
diff changeset
   577
%dir %{_libdir}/xulrunner-%{version_internal}/
f8e8bc740b10 Tentative fix for incomplete cleanup at upgrade or removal
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 43
diff changeset
   578
%dir %{_libdir}/xulrunner-%{version_internal}/components/
45
f4afdb80c73c Get rid of legacy PreReq in xulrunner package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 44
diff changeset
   579
%ghost %{_libdir}/xulrunner-%{version_internal}/.autoreg
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   580
%{_libdir}/xulrunner-%{version_internal}/components/libmozgnome.so
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   581
%{_libdir}/xulrunner-%{version_internal}/components/libnkgnomevfs.so
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   582
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   583
%if %localize
63
9213a0672227 Update to 1.9.2.3/3.6.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 61
diff changeset
   584
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   585
%files translations-common -f %{_tmppath}/translations.common
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   586
%defattr(-,root,root)
44
f8e8bc740b10 Tentative fix for incomplete cleanup at upgrade or removal
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 43
diff changeset
   587
%dir %{_libdir}/xulrunner-%{version_internal}/
f8e8bc740b10 Tentative fix for incomplete cleanup at upgrade or removal
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 43
diff changeset
   588
%dir %{_libdir}/xulrunner-%{version_internal}/chrome/
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   589
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   590
%files translations-other -f %{_tmppath}/translations.other
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   591
%defattr(-,root,root)
44
f8e8bc740b10 Tentative fix for incomplete cleanup at upgrade or removal
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 43
diff changeset
   592
%dir %{_libdir}/xulrunner-%{version_internal}/
f8e8bc740b10 Tentative fix for incomplete cleanup at upgrade or removal
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 43
diff changeset
   593
%dir %{_libdir}/xulrunner-%{version_internal}/chrome/
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   594
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   595
41
fb795017b95f Fix %if crashreporter statements
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 38
diff changeset
   596
%if %crashreporter
63
9213a0672227 Update to 1.9.2.3/3.6.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 61
diff changeset
   597
28
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   598
%files buildsymbols
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   599
%defattr(-,root,root)
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   600
%{_datadir}/mozilla/
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   601
%endif
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   602
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   603
%changelog