xulrunner/xulrunner.spec
author Wolfgang Rosenauer <wr@rosenauer.org>
Wed, 14 Sep 2011 15:25:07 +0200
branchfirefox6
changeset 323 e641c7753d18
parent 318 1fb357225f09
child 324 c6ab0c6a483b
permissions -rw-r--r--
(non-working) first run over new xulrunner spec
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
#
323
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
     2
# spec file for package xulrunner
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     3
#
208
37a3246f9d7e snapshot 20100105
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 206
diff changeset
     4
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
37a3246f9d7e snapshot 20100105
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 206
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
# norootforbuild
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    20
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    21
323
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
    22
Name:           xulrunner
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
    23
BuildRequires:  Mesa-devel autoconf213 dbus-1-glib-devel fdupes gcc-c++ libcurl-devel libgnomeui-devel libidl-devel libnotify-devel python startup-notification-devel unzip pkg-config yasm nss-shared-helper-devel zip
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    24
%if %suse_version > 1110
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    25
BuildRequires:  libiw-devel
20
148671c3abcb Enable libproxy support
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 18
diff changeset
    26
BuildRequires:  libproxy-devel
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    27
%else
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    28
BuildRequires:  wireless-tools
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    29
%endif
323
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
    30
BuildRequires:  mozilla-nspr-devel >= 4.8.8
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
    31
BuildRequires:  mozilla-nss-devel >= 3.12.10
247
71521dfedb0b license update: MPLv1.1 or GPLv2+ or LGPLv2+
cfarrell@novell.com
parents: 245
diff changeset
    32
License:        MPLv1.1 or GPLv2+ or LGPLv2+
323
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
    33
Version:        6.0.2
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    34
Release:        1
323
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
    35
%define         releasedate 2011091300
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
    36
%define         version_internal 6.0.2
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
    37
%define         apiversion 6
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
    38
%define         uaweight 600000
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
    39
Summary:        Mozilla Runtime Environment
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
    40
Url:            http://www.mozilla.org/
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    41
Group:          Productivity/Other
323
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
    42
Provides:       gecko
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    43
%ifarch %ix86
323
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
    44
Provides:       xulrunner-32bit = %{version}-%{release}
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    45
%endif
323
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
    46
Source:         xulrunner-%{version}-source.tar.bz2
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    47
Source1:        l10n-%{version}.tar.bz2
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    48
Source2:        find-external-requires.sh
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    49
Source3:        %{name}-rpmlintrc
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    50
Source4:        xulrunner-openSUSE-prefs.js
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    51
Source5:        add-plugins.sh.in
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    52
Source6:        create-tar.sh
23
c62859a2fd22 Add baselibs.conf to source rpm
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 21
diff changeset
    53
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
    54
Source8:        toolkit-lockdown.js
154
e8d6420a4212 integrate compare-locales into build to merge missing translations with en-US
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
    55
Source9:        compare-locales.tar.bz2
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    56
Patch1:         toolkit-download-folder.patch
148
a1c91c60ce75 Serialize xulrunner patch numbers
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 147
diff changeset
    57
Patch2:         mozilla-pkgconfig.patch
a1c91c60ce75 Serialize xulrunner patch numbers
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 147
diff changeset
    58
Patch3:         idldir.patch
a1c91c60ce75 Serialize xulrunner patch numbers
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 147
diff changeset
    59
Patch4:         mozilla-nongnome-proxies.patch
a1c91c60ce75 Serialize xulrunner patch numbers
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 147
diff changeset
    60
Patch5:         mozilla-prefer_plugin_pref.patch
a1c91c60ce75 Serialize xulrunner patch numbers
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 147
diff changeset
    61
Patch6:         mozilla-shared-nss-db.patch
a1c91c60ce75 Serialize xulrunner patch numbers
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 147
diff changeset
    62
Patch7:         mozilla-kde.patch
237
676030198746 reapply mozilla-cairo-lcd.patch
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 236
diff changeset
    63
Patch8:         mozilla-cairo-lcd.patch
323
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
    64
Patch9:        mozilla-language.patch
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
    65
Patch10:        mozilla-cairo-return.patch
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
    66
Patch11:        mozilla-ntlm-full-path.patch
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    67
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
323
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
    68
Requires:       mozilla-js = %{version}
45
f4afdb80c73c Get rid of legacy PreReq in xulrunner package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 44
diff changeset
    69
Requires(post):  update-alternatives coreutils
f4afdb80c73c Get rid of legacy PreReq in xulrunner package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 44
diff changeset
    70
Requires(preun): update-alternatives coreutils
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    71
### build configuration ###
82
53627cc14959 build against system NSPR again
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 80
diff changeset
    72
%define has_system_nspr  1
77
f2df98836e17 More 1.9.2->1.9.3 patch rebasing and version changes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 76
diff changeset
    73
%define has_system_nss   1
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    74
%define has_system_cairo 0
102
a74c3d7ce5ae Adjust api version to 2.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 100
diff changeset
    75
%define localize 1
110
2b53a61aefd3 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 108
diff changeset
    76
%ifarch ppc ppc64 s390 s390x ia64
2b53a61aefd3 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 108
diff changeset
    77
%define crashreporter    0
2b53a61aefd3 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 108
diff changeset
    78
%define plugincontainer  0
2b53a61aefd3 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 108
diff changeset
    79
%else
2b53a61aefd3 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 108
diff changeset
    80
%define crashreporter    1
2b53a61aefd3 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 108
diff changeset
    81
%define plugincontainer  1
2b53a61aefd3 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 108
diff changeset
    82
%endif
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    83
### configuration end ###
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    84
%define _use_internal_dependency_generator 0
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    85
%define __find_requires sh %{SOURCE2}
91
38ffd1ff8094 Reversioning to 2.0b/4.0b (no package name change yet)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 87
diff changeset
    86
%global provfind sh -c "grep -Ev 'mozsqlite3|dbusservice|unixprint' | %__find_provides"
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    87
%global __find_provides %provfind
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    88
%if %has_system_nspr
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    89
Requires:       mozilla-nspr >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr)
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    90
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    91
%if %has_system_nss
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    92
Requires:       mozilla-nss >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss)
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    93
%endif
21
5b8b22d50d90 Rename -gnomevfs subpackage to -gnome
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 20
diff changeset
    94
Recommends:     %{name}-gnome
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    95
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    96
%description
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    97
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
    98
multiple XUL+XPCOM applications that are as rich as Firefox and
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    99
Thunderbird.
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   100
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   101
323
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
   102
%package -n mozilla-js
247
71521dfedb0b license update: MPLv1.1 or GPLv2+ or LGPLv2+
cfarrell@novell.com
parents: 245
diff changeset
   103
License:        MPLv1.1 or GPLv2+ or LGPLv2+
323
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
   104
Summary:        Mozilla JS engine
61
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   105
Group:          Productivity/Other
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   106
323
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
   107
%description -n mozilla-js
61
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   108
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
   109
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
   110
superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
224
f6a61d48d483 JS is version 1.8.5 in Gecko2.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 220
diff changeset
   111
with only mild differences from the published standard.
61
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   112
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   113
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   114
%package devel
247
71521dfedb0b license update: MPLv1.1 or GPLv2+ or LGPLv2+
cfarrell@novell.com
parents: 245
diff changeset
   115
License:        MPLv1.1 or GPLv2+ or LGPLv2+
323
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
   116
Summary:        XULRunner/Gecko SDK
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   117
Group:          Development/Libraries/Other
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   118
%if %has_system_nspr
224
f6a61d48d483 JS is version 1.8.5 in Gecko2.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 220
diff changeset
   119
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
   120
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   121
%if %has_system_nss
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   122
Requires:       mozilla-nss-devel >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss-devel)
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   123
%endif
45
f4afdb80c73c Get rid of legacy PreReq in xulrunner package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 44
diff changeset
   124
Requires:       %{name} = %{version}
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   125
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   126
%description devel
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   127
Software Development Kit to embed XUL or Gecko into other applications.
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   128
43
3a1561dda105 Patch mozilla-central breakpad code into 1.9.2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 42
diff changeset
   129
%if %localize
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   130
%package translations-common
247
71521dfedb0b license update: MPLv1.1 or GPLv2+ or LGPLv2+
cfarrell@novell.com
parents: 245
diff changeset
   131
License:        MPLv1.1 or GPLv2+ or LGPLv2+
323
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
   132
Summary:        Common translations for XULRunner
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   133
Group:          System/Localization
45
f4afdb80c73c Get rid of legacy PreReq in xulrunner package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 44
diff changeset
   134
Requires:       %{name} = %{version}
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   135
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
   136
Obsoletes:      %{name}-translations < %{version}-%{release}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   137
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   138
%description translations-common
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   139
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
   140
multiple XUL+XPCOM applications that are as rich as Firefox and
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   141
Thunderbird.
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   142
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   143
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
   144
delivered in the main package.
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   145
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   146
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   147
%package translations-other
247
71521dfedb0b license update: MPLv1.1 or GPLv2+ or LGPLv2+
cfarrell@novell.com
parents: 245
diff changeset
   148
License:        MPLv1.1 or GPLv2+ or LGPLv2+
323
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
   149
Summary:        Extra translations for XULRunner
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   150
Group:          System/Localization
45
f4afdb80c73c Get rid of legacy PreReq in xulrunner package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 44
diff changeset
   151
Requires:       %{name} = %{version}
237
676030198746 reapply mozilla-cairo-lcd.patch
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 236
diff changeset
   152
Provides:       locale(%{name}:af;ak;ast;be;bg;bn_BD;br;bs;cy;el;en_ZA;eo;es_MX;et;eu;fa;fy_NL;ga_IE;gd;gl;gu_IN;he;hi_IN;hr;hy_AM;id;is;kk;kn;ku;lg;lt;lv;mai;mk;ml;mr;nn_NO;nso;or;pa_IN;rm;ro;si;sk;sl;son;sq;sr;ta;ta_LK;te;th;tr;uk;zu)
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   153
Obsoletes:      %{name}-translations < %{version}-%{release}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   154
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   155
%description translations-other
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   156
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
   157
multiple XUL+XPCOM applications that are as rich as Firefox and
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   158
Thunderbird.
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   159
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   160
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
   161
%endif
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   162
21
5b8b22d50d90 Rename -gnomevfs subpackage to -gnome
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 20
diff changeset
   163
%package gnome
247
71521dfedb0b license update: MPLv1.1 or GPLv2+ or LGPLv2+
cfarrell@novell.com
parents: 245
diff changeset
   164
License:        MPLv1.1 or GPLv2+ or LGPLv2+
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   165
Summary:        XULRunner components depending on gnome-vfs
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   166
Group:          Productivity/Other
45
f4afdb80c73c Get rid of legacy PreReq in xulrunner package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 44
diff changeset
   167
Requires:       %{name} = %{version}-%{release}
f4afdb80c73c Get rid of legacy PreReq in xulrunner package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 44
diff changeset
   168
Requires(post): coreutils
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   169
21
5b8b22d50d90 Rename -gnomevfs subpackage to -gnome
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 20
diff changeset
   170
%description gnome
236
a4f5954df3a3 update for 2.0/4.0rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 232
diff changeset
   171
This subpackage contains the Gnome components which rely on certain
a4f5954df3a3 update for 2.0/4.0rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 232
diff changeset
   172
Gnome subsystems to be installed. They are recommended for full
a4f5954df3a3 update for 2.0/4.0rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 232
diff changeset
   173
desktop integration but not mandatory for small disk footprint
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   174
KDE installations for example.
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
41
fb795017b95f Fix %if crashreporter statements
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 38
diff changeset
   177
%if %crashreporter
28
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   178
%package buildsymbols
247
71521dfedb0b license update: MPLv1.1 or GPLv2+ or LGPLv2+
cfarrell@novell.com
parents: 245
diff changeset
   179
License:        MPLv1.1 or GPLv2+ or LGPLv2+
28
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   180
Summary:        Breakpad buildsymbols for %{name}
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   181
Group:          Development/Debug
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   182
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   183
%description buildsymbols
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   184
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
   185
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
   186
%endif
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   187
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   188
%prep
154
e8d6420a4212 integrate compare-locales into build to merge missing translations with en-US
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   189
%setup -n mozilla -q -b 1 -b 9
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   190
%patch1 -p1
148
a1c91c60ce75 Serialize xulrunner patch numbers
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 147
diff changeset
   191
%patch2 -p1
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   192
%patch3 -p1
7
18af63e87953 Fix patch depth
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 4
diff changeset
   193
%patch4 -p1
11
32afe3be5990 Integrate mozilla-kde patch in xulrunner192 and some cleanup
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 7
diff changeset
   194
%patch5 -p1
148
a1c91c60ce75 Serialize xulrunner patch numbers
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 147
diff changeset
   195
%patch6 -p1
7
18af63e87953 Fix patch depth
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 4
diff changeset
   196
%patch7 -p1
237
676030198746 reapply mozilla-cairo-lcd.patch
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 236
diff changeset
   197
%patch8 -p1
323
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
   198
%patch9 -p1
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
   199
%patch10 -p1
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
   200
%patch11 -p1
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   201
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   202
%build
323
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
   203
# no need to add build time to binaries
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
   204
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
   205
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
   206
TIME="\"$(date -d "${modified}" "+%%R")\""
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
   207
find . -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} +
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
   208
#
232
156406e2b62d not so nice hack to match upstream Firefox' useragent/buildid (measurement against fingerprinting)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 230
diff changeset
   209
source other-licenses/branding/firefox/configure.sh
156406e2b62d not so nice hack to match upstream Firefox' useragent/buildid (measurement against fingerprinting)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 230
diff changeset
   210
unset MOZ_APP_DISPLAYNAME
156406e2b62d not so nice hack to match upstream Firefox' useragent/buildid (measurement against fingerprinting)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 230
diff changeset
   211
export MOZ_UA_BUILDID
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   212
MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   213
export MOZ_BUILD_DATE=%{releasedate}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   214
export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing"
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   215
%ifarch ppc64
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   216
export CFLAGS="$CFLAGS -mminimal-toc"
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   217
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   218
export CXXFLAGS="$CFLAGS"
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   219
export LDFLAGS="-Wl,-rpath -Wl,${MOZ_APP_DIR}"
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   220
export MOZCONFIG=$RPM_BUILD_DIR/mozconfig
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   221
export MOZILLA_OFFICIAL=1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   222
export BUILD_OFFICIAL=1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   223
export MOZ_MILESTONE_RELEASE=1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   224
#
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   225
cat << EOF > $MOZCONFIG
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   226
mk_add_options MOZILLA_OFFICIAL=1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   227
mk_add_options BUILD_OFFICIAL=1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   228
mk_add_options MOZ_MILESTONE_RELEASE=1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   229
mk_add_options MOZ_MAKE_FLAGS=%{?jobs:-j%jobs}
55
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   230
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   231
. \$topsrcdir/xulrunner/config/mozconfig
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   232
ac_add_options --prefix=%{_prefix}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   233
ac_add_options --libdir=%{_libdir}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   234
ac_add_options --sysconfdir=%{_sysconfdir}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   235
ac_add_options --mandir=%{_mandir}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   236
ac_add_options --includedir=%{_includedir}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   237
ac_add_options --enable-optimize
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   238
ac_add_options --enable-extensions=default
254
9269bbf93e0c use internal libjpeg-turbo
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 251
diff changeset
   239
#ac_add_options --with-system-jpeg # mozilla uses internal libjpeg-turbo now
9269bbf93e0c use internal libjpeg-turbo
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 251
diff changeset
   240
#ac_add_options --with-system-png  # no APNG support
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   241
ac_add_options --with-system-zlib
323
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
   242
ac_add_options --with-l10n-base=$RPM_BUILD_DIR/l10n
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   243
ac_add_options --disable-tests
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   244
ac_add_options --disable-mochitest
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   245
ac_add_options --disable-installer
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   246
ac_add_options --disable-updater
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   247
ac_add_options --disable-javaxpcom
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   248
ac_add_options --enable-startup-notification
138
d04c09ee4ce4 Update for 2.0/4.0b4
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 129
diff changeset
   249
ac_add_options --enable-shared-js
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   250
#ac_add_options --enable-debug
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   251
EOF
187
569c12e2aff9 Use gio instead of gnome-vfs after 11.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 186
diff changeset
   252
%if %suse_version > 1130
569c12e2aff9 Use gio instead of gnome-vfs after 11.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 186
diff changeset
   253
cat << EOF >> $MOZCONFIG
569c12e2aff9 Use gio instead of gnome-vfs after 11.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 186
diff changeset
   254
ac_add_options --disable-gnomevfs
569c12e2aff9 Use gio instead of gnome-vfs after 11.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 186
diff changeset
   255
ac_add_options --enable-gio
569c12e2aff9 Use gio instead of gnome-vfs after 11.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 186
diff changeset
   256
EOF
569c12e2aff9 Use gio instead of gnome-vfs after 11.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 186
diff changeset
   257
%endif
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   258
%if %has_system_nspr
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   259
cat << EOF >> $MOZCONFIG
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   260
ac_add_options --with-system-nspr
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   261
EOF
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   262
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   263
%if %has_system_nss
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   264
cat << EOF >> $MOZCONFIG
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   265
ac_add_options --with-system-nss
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   266
EOF
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   267
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   268
%if %has_system_cairo
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   269
cat << EOF >> $MOZCONFIG
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   270
ac_add_options --enable-system-cairo
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   271
EOF
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   272
%endif
20
148671c3abcb Enable libproxy support
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 18
diff changeset
   273
%if %suse_version > 1110
148671c3abcb Enable libproxy support
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 18
diff changeset
   274
cat << EOF >> $MOZCONFIG
148671c3abcb Enable libproxy support
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 18
diff changeset
   275
ac_add_options --enable-libproxy
148671c3abcb Enable libproxy support
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 18
diff changeset
   276
EOF
148671c3abcb Enable libproxy support
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 18
diff changeset
   277
%endif
42
6ee6583389c7 Fix crashreporter build option finally
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 41
diff changeset
   278
%if ! %crashreporter
6ee6583389c7 Fix crashreporter build option finally
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 41
diff changeset
   279
cat << EOF >> $MOZCONFIG
6ee6583389c7 Fix crashreporter build option finally
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 41
diff changeset
   280
ac_add_options --disable-crashreporter
6ee6583389c7 Fix crashreporter build option finally
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 41
diff changeset
   281
EOF
6ee6583389c7 Fix crashreporter build option finally
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 41
diff changeset
   282
%endif
110
2b53a61aefd3 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 108
diff changeset
   283
%if ! %plugincontainer
2b53a61aefd3 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 108
diff changeset
   284
cat << EOF >> $MOZCONFIG
2b53a61aefd3 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 108
diff changeset
   285
# Chromium IPC is not ported to Power,S/390 and Itanium (currently just x86,x86_64 and arm)
2b53a61aefd3 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 108
diff changeset
   286
ac_add_options --disable-ipc
2b53a61aefd3 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 108
diff changeset
   287
EOF
2b53a61aefd3 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 108
diff changeset
   288
%endif
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   289
make -f client.mk build
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   290
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   291
%install
55
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   292
cd ../obj
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   293
%makeinstall STRIP=/bin/true
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   294
# remove some executable permissions
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   295
find $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal} \
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   296
     -type f -perm -111 -exec chmod a-x {} \;
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   297
find $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/ \
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   298
     -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
   299
mkdir -p $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/extensions
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   300
# fixing SDK dynamic libs (symlink instead of copy)
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   301
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
   302
ln -sf ../../../xulrunner-%{version_internal}/libmozjs.so \
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   303
       $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   304
ln -sf ../../../xulrunner-%{version_internal}/libxpcom.so \
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   305
       $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   306
ln -sf ../../../xulrunner-%{version_internal}/libxul.so \
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   307
       $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
   308
# include basic buildenv for xulapps to use
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   309
mkdir -p $RPM_BUILD_ROOT%{_datadir}/xulrunner-%{version_internal}
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   310
pushd ..
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   311
# 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
   312
tar --exclude=*.cpp --exclude=*.mm \
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   313
   -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
   314
    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
   315
    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
   316
    mozilla/testing mozilla/toolkit/mozapps/installer mozilla/probes mozilla/memory \
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   317
    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
   318
popd
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   319
# XPI example
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   320
#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
   321
# preferences
78
e0271a18500f mozilla-xulrunner193: initial compiling version (not all patches rebased yet)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 77
diff changeset
   322
cp %{SOURCE4} $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/defaults/pref/all-openSUSE.js
e0271a18500f mozilla-xulrunner193: initial compiling version (not all patches rebased yet)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 77
diff changeset
   323
cp %{SOURCE8} $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/defaults/pref/lockdown.js
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   324
# install add-plugins.sh
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   325
sed "s:%%PROGDIR:%{_libdir}/xulrunner-%{version_internal}:g" \
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   326
  %{SOURCE5} > $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   327
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
   328
# ghosts
50
00ee07727e73 Files managed by update-alternatives should be packaged as %ghost files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 46
diff changeset
   329
touch $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/global.reginfo
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   330
# install additional locales
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   331
%if %localize
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   332
rm -f %{_tmppath}/translations.*
78
e0271a18500f mozilla-xulrunner193: initial compiling version (not all patches rebased yet)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 77
diff changeset
   333
touch %{_tmppath}/translations.{common,other}
55
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   334
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
   335
  case $locale in
230
e4846f1b81c5 real update to 4.0b12
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 229
diff changeset
   336
   ja-JP-mac|en-US|bn-IN)
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   337
      ;;
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   338
   *)
154
e8d6420a4212 integrate compare-locales into build to merge missing translations with en-US
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   339
      pushd $RPM_BUILD_DIR/compare-locales
e8d6420a4212 integrate compare-locales into build to merge missing translations with en-US
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   340
      PYTHONPATH=lib \
e8d6420a4212 integrate compare-locales into build to merge missing translations with en-US
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   341
        scripts/compare-locales -m ../l10n-merged/$locale \
e8d6420a4212 integrate compare-locales into build to merge missing translations with en-US
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   342
	../mozilla/toolkit/locales/l10n.ini ../l10n $locale
e8d6420a4212 integrate compare-locales into build to merge missing translations with en-US
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   343
      popd
e8d6420a4212 integrate compare-locales into build to merge missing translations with en-US
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   344
      LOCALE_MERGEDIR=../l10n-merged \
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   345
      make -C toolkit/locales libs-$locale
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   346
      cp dist/xpi-stage/locale-$locale/chrome/$locale.jar \
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   347
         $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/chrome
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   348
      cp dist/xpi-stage/locale-$locale/chrome/$locale.manifest \
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   349
         $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/chrome
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   350
      # 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
   351
      _matched=0
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   352
      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
   353
        [ "$_match" = "$locale" ] && _matched=1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   354
      done
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   355
      [ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   356
      echo %{_libdir}/xulrunner-%{version_internal}/chrome/$locale.jar \
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   357
         >> %{_tmppath}/translations.$_l10ntarget
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   358
      echo %{_libdir}/xulrunner-%{version_internal}/chrome/$locale.manifest \
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   359
         >> %{_tmppath}/translations.$_l10ntarget
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   360
  esac
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   361
done
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   362
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   363
# API symlink
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   364
ln -sf xulrunner-%{version_internal} $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{apiversion}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   365
# compat links
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   366
%if 0%{?ga_version:1}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   367
touch $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{ga_version}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   368
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   369
# excludes
51
a87b1d6c6d53 Non-conflicting %ghost files are only supported in RPM since 11.2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 50
diff changeset
   370
%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
   371
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
   372
%endif
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   373
rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/updater
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   374
rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/update.locale
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   375
rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/LICENSE
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   376
rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/README.txt
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   377
rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/dictionaries/en-US*
78
e0271a18500f mozilla-xulrunner193: initial compiling version (not all patches rebased yet)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 77
diff changeset
   378
rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/nspr-config
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   379
# fdupes
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   380
%fdupes $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal}/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   381
%fdupes $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/
28
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   382
# create breakpad debugsymbols
41
fb795017b95f Fix %if crashreporter statements
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 38
diff changeset
   383
%if %crashreporter
56
6c1feeed3314 Remove non-working mozilla-crash-annotation.patch
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 55
diff changeset
   384
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
   385
make buildsymbols \
6c1feeed3314 Remove non-working mozilla-crash-annotation.patch
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 55
diff changeset
   386
  SYMBOL_INDEX_NAME="$SYMBOLS_NAME.txt" \
146
cf1c79206520 buildsymbols target creates a second zip archive
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 141
diff changeset
   387
  SYMBOL_FULL_ARCHIVE_BASENAME="$SYMBOLS_NAME-full" \
56
6c1feeed3314 Remove non-working mozilla-crash-annotation.patch
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 55
diff changeset
   388
  SYMBOL_ARCHIVE_BASENAME="$SYMBOLS_NAME"
6c1feeed3314 Remove non-working mozilla-crash-annotation.patch
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 55
diff changeset
   389
if [ -e dist/*symbols.zip ]; then
28
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   390
  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
   391
  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
   392
fi
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   393
%endif
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   394
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   395
%clean
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   396
rm -rf $RPM_BUILD_ROOT
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   397
%if %localize
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   398
rm -rf %{_tmppath}/translations.*
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   399
%endif
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
%post
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   402
/usr/sbin/update-alternatives --install %{_bindir}/xulrunner \
72
09df8552b796 Update for 3.6.4build2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 71
diff changeset
   403
  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
   404
%{_libdir}/xulrunner-%{apiversion}/add-plugins.sh > /dev/null 2>&1
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   405
exit 0
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   406
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   407
%posttrans
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   408
# needed for updates which transition directory to symlink
203
3820fe99f0fe Update to latest snapshot (20101207)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 200
diff changeset
   409
%if 0%{?ga_version:1}
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   410
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
   411
ln -sf xulrunner-%{version_internal} %{_libdir}/xulrunner-%{ga_version}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   412
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   413
[ -e %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh ] && \
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   414
  %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   415
exit 0
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   416
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   417
%preun
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   418
if [ "$1" = "0" ]; then # deinstallation
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   419
  # 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
   420
  # 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
   421
  /usr/sbin/update-alternatives --remove xulrunner %{_libdir}/xulrunner-%{apiversion}/xulrunner
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   422
fi
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   423
rm -f %{_libdir}/xulrunner-%{version_internal}/dictionaries/*
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   424
exit 0
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   425
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   426
%triggerin -- myspell-dictionary
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   427
%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   428
exit 0
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   429
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   430
%triggerpostun -- myspell-dictionary
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   431
%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   432
exit 0
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   433
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   434
%files
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   435
%defattr(-,root,root)
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   436
%dir %{_libdir}/xulrunner-%{version_internal}/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   437
%dir %{_libdir}/xulrunner-%{version_internal}/chrome/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   438
%dir %{_libdir}/xulrunner-%{version_internal}/dictionaries/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   439
%dir %{_libdir}/xulrunner-%{version_internal}/extensions/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   440
%{_libdir}/xulrunner-%{version_internal}/chrome/en-US.*
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   441
%{_libdir}/xulrunner-%{version_internal}/chrome/pippki.*
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   442
%{_libdir}/xulrunner-%{version_internal}/chrome/toolkit.*
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   443
%{_libdir}/xulrunner-%{version_internal}/chrome/icons/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   444
%{_libdir}/xulrunner-%{version_internal}/components/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   445
%exclude %{_libdir}/xulrunner-%{version_internal}/components/libmozgnome.so
187
569c12e2aff9 Use gio instead of gnome-vfs after 11.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 186
diff changeset
   446
%if %suse_version <= 1130
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   447
%exclude %{_libdir}/xulrunner-%{version_internal}/components/libnkgnomevfs.so
187
569c12e2aff9 Use gio instead of gnome-vfs after 11.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 186
diff changeset
   448
%endif
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   449
%{_libdir}/xulrunner-%{version_internal}/defaults/
78
e0271a18500f mozilla-xulrunner193: initial compiling version (not all patches rebased yet)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 77
diff changeset
   450
%{_libdir}/xulrunner-%{version_internal}/greprefs.js
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   451
%{_libdir}/xulrunner-%{version_internal}/icons/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   452
%{_libdir}/xulrunner-%{version_internal}/modules/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   453
%{_libdir}/xulrunner-%{version_internal}/plugins/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   454
%{_libdir}/xulrunner-%{version_internal}/res/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   455
%{_libdir}/xulrunner-%{version_internal}/*.so
61
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   456
%exclude %{_libdir}/xulrunner-%{version_internal}/libmozjs.so
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   457
%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh
129
f04040741d84 New file (chrome.manifest) for component registration
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 128
diff changeset
   458
%{_libdir}/xulrunner-%{version_internal}/chrome.manifest
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   459
%{_libdir}/xulrunner-%{version_internal}/dependentlibs.list
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   460
%{_libdir}/xulrunner-%{version_internal}/mozilla-xremote-client
110
2b53a61aefd3 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 108
diff changeset
   461
%if %plugincontainer
69
c249083f2e1f mozilla-runtime renamed to plugin-container
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 68
diff changeset
   462
%{_libdir}/xulrunner-%{version_internal}/plugin-container
110
2b53a61aefd3 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 108
diff changeset
   463
%endif
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   464
%{_libdir}/xulrunner-%{version_internal}/run-mozilla.sh
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   465
%{_libdir}/xulrunner-%{version_internal}/xulrunner
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   466
%{_libdir}/xulrunner-%{version_internal}/xulrunner-bin
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   467
%{_libdir}/xulrunner-%{version_internal}/xulrunner-stub
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   468
%{_libdir}/xulrunner-%{version_internal}/platform.ini
28
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   469
# crashreporter files
41
fb795017b95f Fix %if crashreporter statements
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 38
diff changeset
   470
%if %crashreporter
28
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   471
%{_libdir}/xulrunner-%{version_internal}/crashreporter
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   472
%{_libdir}/xulrunner-%{version_internal}/crashreporter.ini
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   473
%{_libdir}/xulrunner-%{version_internal}/Throbber-small.gif
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   474
%endif
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   475
# ghosts
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   476
%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
   477
%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
   478
%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
   479
%endif
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   480
# API symlink
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   481
%{_libdir}/xulrunner-%{apiversion}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   482
# compat symlinks
187
569c12e2aff9 Use gio instead of gnome-vfs after 11.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 186
diff changeset
   483
%if 0%{?ga_version:1}
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   484
%ghost %{_libdir}/xulrunner-%{ga_version}
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   485
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   486
323
e641c7753d18 (non-working) first run over new xulrunner spec
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 318
diff changeset
   487
%files -n mozilla-js
61
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   488
%defattr(-,root,root)
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   489
%dir %{_libdir}/xulrunner-%{version_internal}/
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   490
%{_libdir}/xulrunner-%{apiversion}
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   491
%{_libdir}/xulrunner-%{version_internal}/libmozjs.so
d50fe7d29320 Split mozilla-js192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 60
diff changeset
   492
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   493
%files devel
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   494
%defattr(-,root,root)
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   495
%{_libdir}/xulrunner-%{version_internal}/xpcshell
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   496
%{_libdir}/xulrunner-%{version_internal}/xpidl
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   497
%{_libdir}/xulrunner-%{version_internal}/xpt_dump
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   498
%{_libdir}/xulrunner-%{version_internal}/xpt_link
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   499
%{_libdir}/xulrunner-devel-%{version_internal}/
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   500
# FIXME symlink dynamic libs below sdk/lib
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   501
%attr(644,root,root) %{_libdir}/pkgconfig/*
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   502
%{_includedir}/xulrunner-%{version_internal}/
55
5297865de947 Sync with released package:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 52
diff changeset
   503
%{_datadir}/xulrunner-%{version_internal}/
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   504
21
5b8b22d50d90 Rename -gnomevfs subpackage to -gnome
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 20
diff changeset
   505
%files gnome
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   506
%defattr(-,root,root)
44
f8e8bc740b10 Tentative fix for incomplete cleanup at upgrade or removal
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 43
diff changeset
   507
%dir %{_libdir}/xulrunner-%{version_internal}/
f8e8bc740b10 Tentative fix for incomplete cleanup at upgrade or removal
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 43
diff changeset
   508
%dir %{_libdir}/xulrunner-%{version_internal}/components/
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   509
%{_libdir}/xulrunner-%{version_internal}/components/libmozgnome.so
187
569c12e2aff9 Use gio instead of gnome-vfs after 11.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 186
diff changeset
   510
%if %suse_version <= 1130
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   511
%{_libdir}/xulrunner-%{version_internal}/components/libnkgnomevfs.so
187
569c12e2aff9 Use gio instead of gnome-vfs after 11.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 186
diff changeset
   512
%endif
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   513
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   514
%if %localize
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   515
%files translations-common -f %{_tmppath}/translations.common
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   516
%defattr(-,root,root)
44
f8e8bc740b10 Tentative fix for incomplete cleanup at upgrade or removal
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 43
diff changeset
   517
%dir %{_libdir}/xulrunner-%{version_internal}/
f8e8bc740b10 Tentative fix for incomplete cleanup at upgrade or removal
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 43
diff changeset
   518
%dir %{_libdir}/xulrunner-%{version_internal}/chrome/
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   519
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   520
%files translations-other -f %{_tmppath}/translations.other
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   521
%defattr(-,root,root)
44
f8e8bc740b10 Tentative fix for incomplete cleanup at upgrade or removal
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 43
diff changeset
   522
%dir %{_libdir}/xulrunner-%{version_internal}/
f8e8bc740b10 Tentative fix for incomplete cleanup at upgrade or removal
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 43
diff changeset
   523
%dir %{_libdir}/xulrunner-%{version_internal}/chrome/
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   524
%endif
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   525
41
fb795017b95f Fix %if crashreporter statements
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 38
diff changeset
   526
%if %crashreporter
28
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   527
%files buildsymbols
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   528
%defattr(-,root,root)
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   529
%{_datadir}/mozilla/
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   530
%endif
ed2afa8e733c Enable crashreporter and buildsymbols subpackage for %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 24
diff changeset
   531
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   532
%changelog