xulrunner/xulrunner.spec
author Wolfgang Rosenauer <wr@rosenauer.org>
Sun, 27 Apr 2014 18:01:48 +0200
branchesr24
changeset 728 6820714d53f4
parent 713 3c7719dfcafa
permissions -rw-r--r--
update to 24.5.0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     1
#
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     2
# spec file for package xulrunner
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     3
#
698
8066b2bdabfb update xulrunner to 24.2.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 678
diff changeset
     4
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
8066b2bdabfb update xulrunner to 24.2.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 678
diff changeset
     5
#               2006-2014 Wolfgang Rosenauer
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     6
#
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     7
# All modifications and additions to the file contributed by third parties
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     8
# remain the property of their copyright owners, unless otherwise agreed
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     9
# upon. The license for this file, and modifications and additions to the
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    10
# file, is the same license as for the pristine package itself (unless the
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    11
# license for the pristine package is not an Open Source License, in which
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    12
# case the license is the MIT License). An "Open Source License" is a
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    13
# license that conforms to the Open Source Definition (Version 1.9)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    14
# published by the Open Source Initiative.
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    15
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    16
# Please submit bugfixes or comments via http://bugs.opensuse.org/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    17
#
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    18
713
3c7719dfcafa update to 24.4.0esr
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 701
diff changeset
    19
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    20
%if %suse_version > 1220
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    21
%define gstreamer_ver 0.10
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    22
%else
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    23
%define gstreamer_ver 0.10
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    24
%endif
375
d75cd0dac058 final 10.0 updates (changelog)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 373
diff changeset
    25
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    26
Name:           xulrunner
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    27
BuildRequires:  Mesa-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    28
BuildRequires:  autoconf213
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    29
BuildRequires:  dbus-1-glib-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    30
BuildRequires:  fdupes
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    31
BuildRequires:  gcc-c++
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    32
BuildRequires:  hunspell-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    33
BuildRequires:  libcurl-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    34
BuildRequires:  libgnomeui-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    35
BuildRequires:  libidl-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    36
BuildRequires:  libnotify-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    37
BuildRequires:  nss-shared-helper-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    38
BuildRequires:  pkg-config
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    39
BuildRequires:  python
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    40
BuildRequires:  startup-notification-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    41
BuildRequires:  unzip
401
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 400
diff changeset
    42
BuildRequires:  xorg-x11-libXt-devel
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    43
BuildRequires:  yasm
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    44
BuildRequires:  zip
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    45
%if %suse_version > 1110
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    46
BuildRequires:  libiw-devel
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    47
BuildRequires:  libproxy-devel
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    48
%else
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    49
BuildRequires:  wireless-tools
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    50
%endif
728
6820714d53f4 update to 24.5.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 713
diff changeset
    51
BuildRequires:  mozilla-nspr-devel >= 4.10.2
713
3c7719dfcafa update to 24.4.0esr
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 701
diff changeset
    52
BuildRequires:  mozilla-nss-devel >= 3.15.4
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    53
%if %suse_version > 1210
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    54
BuildRequires:  pkgconfig(gstreamer-%gstreamer_ver)
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    55
BuildRequires:  pkgconfig(gstreamer-app-%gstreamer_ver)
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    56
BuildRequires:  pkgconfig(gstreamer-plugins-base-%gstreamer_ver)
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    57
%endif
728
6820714d53f4 update to 24.5.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 713
diff changeset
    58
Version:        24.5.0
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    59
Release:        0
728
6820714d53f4 update to 24.5.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 713
diff changeset
    60
%define         releasedate 2014042400
6820714d53f4 update to 24.5.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 713
diff changeset
    61
%define         version_internal 24.5.0
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    62
%define         apiversion 24
728
6820714d53f4 update to 24.5.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 713
diff changeset
    63
%define         uaweight 2405000
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    64
Summary:        Mozilla Runtime Environment
456
7b9ab7747a11 License change to MPL-2.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 447
diff changeset
    65
License:        MPL-2.0
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    66
Group:          Productivity/Other
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    67
Url:            http://www.mozilla.org/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    68
Provides:       gecko
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    69
%ifarch %ix86
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    70
Provides:       xulrunner-32bit = %{version}-%{release}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    71
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    72
Source:         xulrunner-%{version}-source.tar.bz2
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    73
Source1:        l10n-%{version}.tar.bz2
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    74
Source2:        find-external-requires.sh
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    75
Source3:        %{name}-rpmlintrc
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    76
Source4:        xulrunner-openSUSE-prefs.js
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    77
Source5:        add-plugins.sh.in
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    78
Source6:        create-tar.sh
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    79
Source7:        baselibs.conf
375
d75cd0dac058 final 10.0 updates (changelog)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 373
diff changeset
    80
Source8:        source-stamp.txt
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    81
Source9:        compare-locales.tar.bz2
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    82
Patch1:         toolkit-download-folder.patch
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    83
Patch2:         mozilla-pkgconfig.patch
556
a30fcfcd2e53 manual merge from firefox16 changes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 554
diff changeset
    84
Patch3:         mozilla-idldir.patch
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    85
Patch4:         mozilla-nongnome-proxies.patch
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    86
Patch5:         mozilla-prefer_plugin_pref.patch
438
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
    87
Patch6:         mozilla-language.patch
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
    88
Patch7:         mozilla-ntlm-full-path.patch
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
    89
Patch9:         mozilla-sle11.patch
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    90
Patch10:        mozilla-ppc.patch
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    91
Patch11:        mozilla-libproxy-compat.patch
713
3c7719dfcafa update to 24.4.0esr
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 701
diff changeset
    92
Patch12:        mozilla-ppc64le-libffi.patch
3c7719dfcafa update to 24.4.0esr
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 701
diff changeset
    93
Patch13:        mozilla-ppc64le-xpcom.patch
3c7719dfcafa update to 24.4.0esr
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 701
diff changeset
    94
Patch14:        mozilla-ppc64le-generic.patch
3c7719dfcafa update to 24.4.0esr
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 701
diff changeset
    95
Patch15:        mozilla-ppc64le-skia.patch
3c7719dfcafa update to 24.4.0esr
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 701
diff changeset
    96
Patch16:        xulrunner-langpack-build.patch
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    97
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    98
Requires:       mozilla-js = %{version}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    99
Requires(post):  update-alternatives coreutils
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   100
Requires(preun): update-alternatives coreutils
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   101
Provides:       xulrunner-esr = %{version}
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   102
Obsoletes:      xulrunner-esr < 24.0
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   103
### build configuration ###
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   104
%define has_system_nspr  1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   105
%define has_system_nss   1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   106
%define has_system_cairo 0
713
3c7719dfcafa update to 24.4.0esr
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 701
diff changeset
   107
%define localize 0
698
8066b2bdabfb update xulrunner to 24.2.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 678
diff changeset
   108
%ifarch ppc ppc64 ppc64le s390 s390x ia64 %arm aarch64
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   109
%define crashreporter    0
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   110
%else
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   111
%define crashreporter    1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   112
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   113
### configuration end ###
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   114
%define _use_internal_dependency_generator 0
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   115
%define __find_requires sh %{SOURCE2}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   116
%global provfind sh -c "grep -Ev 'mozsqlite3|dbusservice|unixprint' | %__find_provides"
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   117
%global __find_provides %provfind
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   118
%if %has_system_nspr
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   119
Requires:       mozilla-nspr >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   120
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   121
%if %has_system_nss
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   122
Requires:       mozilla-nss >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   123
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   124
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   125
%description
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   126
XULRunner is a single installable package that can be used to bootstrap
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   127
multiple XUL+XPCOM applications that are as rich as Firefox and
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   128
Thunderbird.
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   129
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   130
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   131
%package -n mozilla-js
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   132
Summary:        Mozilla JS engine
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   133
Group:          Productivity/Other
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   134
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   135
%description -n mozilla-js
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   136
JavaScript is the Netscape-developed object scripting language used in millions
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   137
of web pages and server applications worldwide. Netscape's JavaScript is a
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   138
superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   139
with only mild differences from the published standard.
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   140
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   141
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   142
%package devel
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   143
Summary:        XULRunner/Gecko SDK
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   144
Group:          Development/Libraries/Other
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   145
%if %has_system_nspr
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   146
Requires:       mozilla-nspr-devel >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr-devel)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   147
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   148
%if %has_system_nss
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   149
Requires:       mozilla-nss-devel >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss-devel)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   150
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   151
Requires:       %{name} = %{version}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   152
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   153
%description devel
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   154
Software Development Kit to embed XUL or Gecko into other applications.
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   155
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   156
%if %localize
334
1256d8842872 update to version 7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 325
diff changeset
   157
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   158
%package translations-common
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   159
Summary:        Common translations for XULRunner
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   160
Group:          System/Localization
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   161
Requires:       %{name} = %{version}
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   162
Provides:       locale(%{name}:ar;ca;cs;da;de;el;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)
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   163
Obsoletes:      %{name}-translations < %{version}-%{release}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   164
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   165
%description translations-common
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   166
XULRunner is a single installable package that can be used to bootstrap
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   167
multiple XUL+XPCOM applications that are as rich as Firefox and
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   168
Thunderbird.
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   169
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   170
This package contains the most common languages but en-US which is
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   171
delivered in the main package.
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   172
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   173
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   174
%package translations-other
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   175
Summary:        Extra translations for XULRunner
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   176
Group:          System/Localization
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   177
Requires:       %{name} = %{version}
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   178
Provides:       locale(%{name}:ach;af;ak;as;ast;be;bg;bn_BD;bn_IN;br;bs;csb;cy;en_ZA;eo;es_MX;et;eu;fa;ff;fy_NL;ga_IE;gd;gl;gu_IN;he;hi_IN;hr;hy_AM;id;is;kk;km;kn;ku;lg;lij;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;vi;zu)
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   179
Obsoletes:      %{name}-translations < %{version}-%{release}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   180
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   181
%description translations-other
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   182
XULRunner is a single installable package that can be used to bootstrap
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   183
multiple XUL+XPCOM applications that are as rich as Firefox and
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   184
Thunderbird.
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   185
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   186
This package contains rarely used languages.
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   187
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   188
334
1256d8842872 update to version 7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 325
diff changeset
   189
%if %crashreporter
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   190
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   191
%package buildsymbols
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   192
Summary:        Breakpad buildsymbols for %{name}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   193
Group:          Development/Debug
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   194
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   195
%description buildsymbols
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   196
This subpackage contains the Breakpad created and compatible debugging
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   197
symbols meant for upload to Mozilla's crash collector database.
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   198
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   199
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   200
%prep
713
3c7719dfcafa update to 24.4.0esr
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 701
diff changeset
   201
%if %{localize}
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   202
%setup -n mozilla -q -b 1 -b 9
713
3c7719dfcafa update to 24.4.0esr
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 701
diff changeset
   203
%else
3c7719dfcafa update to 24.4.0esr
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 701
diff changeset
   204
%setup -n mozilla -q
3c7719dfcafa update to 24.4.0esr
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 701
diff changeset
   205
%endif
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   206
%patch1 -p1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   207
%patch2 -p1
556
a30fcfcd2e53 manual merge from firefox16 changes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 554
diff changeset
   208
%patch3 -p1
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   209
%patch4 -p1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   210
%patch5 -p1
438
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
   211
%patch6 -p1
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
   212
%patch7 -p1
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
   213
%if %suse_version < 1120
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   214
%patch9 -p1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   215
%endif
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   216
%patch10 -p1
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   217
%patch11 -p1
713
3c7719dfcafa update to 24.4.0esr
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 701
diff changeset
   218
%patch12 -p1
3c7719dfcafa update to 24.4.0esr
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 701
diff changeset
   219
%patch13 -p1
3c7719dfcafa update to 24.4.0esr
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 701
diff changeset
   220
%patch14 -p1
701
ab93666f5ff7 xulrunner locale build fixes (incomplete)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 698
diff changeset
   221
%patch15 -p1
713
3c7719dfcafa update to 24.4.0esr
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 701
diff changeset
   222
%patch16 -p1
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   223
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   224
%build
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   225
# no need to add build time to binaries
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   226
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   227
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   228
TIME="\"$(date -d "${modified}" "+%%R")\""
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   229
find . -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} +
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   230
#
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   231
MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   232
export MOZ_BUILD_DATE=%{releasedate}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   233
export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing"
698
8066b2bdabfb update xulrunner to 24.2.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 678
diff changeset
   234
%ifarch ppc64 ppc64le
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   235
export CFLAGS="$CFLAGS -mminimal-toc"
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   236
%endif
535
cba7622bad5d ARM fixes
Dirk M?ller <dmueller@suse.com>
parents: 533
diff changeset
   237
export LDFLAGS=" -Wl,-rpath -Wl,${MOZ_APP_DIR}"
cba7622bad5d ARM fixes
Dirk M?ller <dmueller@suse.com>
parents: 533
diff changeset
   238
%ifarch %arm
cba7622bad5d ARM fixes
Dirk M?ller <dmueller@suse.com>
parents: 533
diff changeset
   239
# debug symbols require too much memory during build
cba7622bad5d ARM fixes
Dirk M?ller <dmueller@suse.com>
parents: 533
diff changeset
   240
export CFLAGS="${CFLAGS/-g/}"
cba7622bad5d ARM fixes
Dirk M?ller <dmueller@suse.com>
parents: 533
diff changeset
   241
LDFLAGS+="-Wl,--reduce-memory-overheads -Wl,--no-keep-memory"
cba7622bad5d ARM fixes
Dirk M?ller <dmueller@suse.com>
parents: 533
diff changeset
   242
%endif
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   243
export CXXFLAGS="$CFLAGS"
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   244
export MOZCONFIG=$RPM_BUILD_DIR/mozconfig
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   245
export MOZILLA_OFFICIAL=1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   246
export BUILD_OFFICIAL=1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   247
export MOZ_MILESTONE_RELEASE=1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   248
#
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   249
cat << EOF > $MOZCONFIG
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   250
mk_add_options MOZILLA_OFFICIAL=1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   251
mk_add_options BUILD_OFFICIAL=1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   252
mk_add_options MOZ_MILESTONE_RELEASE=1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   253
mk_add_options MOZ_MAKE_FLAGS=%{?jobs:-j%jobs}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   254
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   255
. \$topsrcdir/xulrunner/config/mozconfig
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   256
ac_add_options --prefix=%{_prefix}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   257
ac_add_options --libdir=%{_libdir}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   258
ac_add_options --sysconfdir=%{_sysconfdir}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   259
ac_add_options --mandir=%{_mandir}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   260
ac_add_options --includedir=%{_includedir}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   261
ac_add_options --enable-optimize
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   262
ac_add_options --enable-extensions=default
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   263
#ac_add_options --with-system-jpeg # mozilla uses internal libjpeg-turbo now
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   264
#ac_add_options --with-system-png  # no APNG support
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   265
ac_add_options --with-system-zlib
713
3c7719dfcafa update to 24.4.0esr
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 701
diff changeset
   266
%if %{localize}
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   267
ac_add_options --with-l10n-base=$RPM_BUILD_DIR/l10n
713
3c7719dfcafa update to 24.4.0esr
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 701
diff changeset
   268
%endif
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   269
ac_add_options --disable-tests
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   270
ac_add_options --disable-mochitest
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   271
ac_add_options --disable-installer
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   272
ac_add_options --disable-updater
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   273
ac_add_options --disable-javaxpcom
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   274
ac_add_options --enable-system-hunspell
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   275
ac_add_options --enable-startup-notification
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   276
ac_add_options --enable-shared-js
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   277
#ac_add_options --enable-debug
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   278
EOF
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   279
%if %suse_version > 1130
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   280
cat << EOF >> $MOZCONFIG
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   281
ac_add_options --disable-gnomevfs
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   282
ac_add_options --enable-gio
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   283
EOF
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   284
%endif
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   285
%if %suse_version < 1220
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   286
cat << EOF >> $MOZCONFIG
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   287
ac_add_options --disable-gstreamer
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   288
EOF
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   289
%endif
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   290
%if %has_system_nspr
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   291
cat << EOF >> $MOZCONFIG
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   292
ac_add_options --with-system-nspr
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   293
EOF
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   294
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   295
%if %has_system_nss
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   296
cat << EOF >> $MOZCONFIG
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   297
ac_add_options --with-system-nss
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   298
EOF
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   299
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   300
%if %has_system_cairo
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   301
cat << EOF >> $MOZCONFIG
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   302
ac_add_options --enable-system-cairo
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   303
EOF
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   304
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   305
%if %suse_version > 1110
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   306
cat << EOF >> $MOZCONFIG
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   307
ac_add_options --enable-libproxy
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   308
EOF
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   309
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   310
%if ! %crashreporter
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   311
cat << EOF >> $MOZCONFIG
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   312
ac_add_options --disable-crashreporter
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   313
EOF
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   314
%endif
404
5f3bccaf6d52 provide browser(npapi)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 401
diff changeset
   315
# ARM
371
ead21d122ed0 introduce --disable-neon option and use on ARM
Joop Boonen <joop.boonen@opensuse.org>
parents: 370
diff changeset
   316
%ifarch %arm
ead21d122ed0 introduce --disable-neon option and use on ARM
Joop Boonen <joop.boonen@opensuse.org>
parents: 370
diff changeset
   317
cat << EOF >> $MOZCONFIG
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   318
ac_add_options --disable-neon
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   319
EOF
404
5f3bccaf6d52 provide browser(npapi)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 401
diff changeset
   320
%endif
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   321
%ifnarch %ix86 x86_64
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   322
cat << EOF >> $MOZCONFIG
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   323
ac_add_options --disable-webrtc
371
ead21d122ed0 introduce --disable-neon option and use on ARM
Joop Boonen <joop.boonen@opensuse.org>
parents: 370
diff changeset
   324
EOF
ead21d122ed0 introduce --disable-neon option and use on ARM
Joop Boonen <joop.boonen@opensuse.org>
parents: 370
diff changeset
   325
%endif
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   326
make -f client.mk build
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   327
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   328
%install
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   329
cd ../obj
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   330
# preferences (to package in omni.jar)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   331
cp %{SOURCE4} dist/bin/defaults/pref/all-openSUSE.js
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   332
%makeinstall STRIP=/bin/true
334
1256d8842872 update to version 7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 325
diff changeset
   333
# xpt.py is not executable
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
   334
chmod a+x $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/bin/*.py
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   335
# remove some executable permissions
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   336
find $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal} \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   337
     -type f -perm -111 -exec chmod a-x {} \;
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   338
find $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/ \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   339
     -name "*.js" -o -name "*.xpm" -o -name "*.png" | xargs chmod a-x
585
5a44d417c9b5 prepare for Beta 18 phase
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 556
diff changeset
   340
# remove mkdir.done files from installed base
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   341
#find $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal} -name ".mkdir.done" | xargs rm
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   342
mkdir -p $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/extensions
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   343
# fixing SDK dynamic libs (symlink instead of copy)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   344
rm $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/*.so
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   345
ln -sf ../../../xulrunner-%{version_internal}/libmozjs.so \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   346
       $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   347
ln -sf ../../../xulrunner-%{version_internal}/libxul.so \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   348
       $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   349
# include basic buildenv for xulapps to use
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   350
mkdir -p $RPM_BUILD_ROOT%{_datadir}/xulrunner-%{version_internal}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   351
pushd ..
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   352
# this list has been compiled by trial and error for prism
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   353
tar --exclude=*.cpp --exclude=*.mm \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   354
   -cvjf $RPM_BUILD_ROOT%{_datadir}/xulrunner-%{version_internal}/mozilla-src.tar.bz2 \
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   355
    mozilla/configure.in mozilla/Makefile.in mozilla/client.py \
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   356
    mozilla/config mozilla/client.mk mozilla/aclocal.m4 mozilla/build mozilla/js/src/* \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   357
    mozilla/testing mozilla/toolkit/mozapps/installer mozilla/probes mozilla/memory \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   358
    mozilla/toolkit/xre mozilla/nsprpub/config mozilla/tools mozilla/xpcom/build
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   359
popd
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   360
# install add-plugins.sh
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   361
sed "s:%%PROGDIR:%{_libdir}/xulrunner-%{version_internal}:g" \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   362
  %{SOURCE5} > $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   363
chmod 755 $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   364
# ghosts
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   365
touch $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/global.reginfo
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   366
# install additional locales
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   367
%if %localize
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   368
rm -f %{_tmppath}/translations.*
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   369
touch %{_tmppath}/translations.{common,other}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   370
for locale in $(awk '{ print $1; }' ../mozilla/browser/locales/shipped-locales); do
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   371
  case $locale in
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   372
   ja-JP-mac|en-US)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   373
      ;;
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   374
   *)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   375
      pushd $RPM_BUILD_DIR/compare-locales
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   376
      PYTHONPATH=lib \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   377
        scripts/compare-locales -m ../l10n-merged/$locale \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   378
	../mozilla/toolkit/locales/l10n.ini ../l10n $locale
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   379
      popd
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   380
      LOCALE_MERGEDIR=$RPM_BUILD_DIR/l10n-merged/$locale \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   381
      make -C toolkit/locales langpack-$locale
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   382
      cp dist/xpi-stage/locale-$locale \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   383
         $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/extensions/langpack-$locale@firefox.mozilla.org
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   384
      # remove prefs and profile defaults from langpack
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   385
      rm -rf $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/extensions/langpack-$locale@firefox.mozilla.org/defaults
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   386
      # check against the fixed common list and sort into the right filelist
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   387
      _matched=0
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   388
      for _match in ar ca cs da de el 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
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   389
        [ "$_match" = "$locale" ] && _matched=1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   390
      done
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   391
      [ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   392
      echo %{_libdir}/xulrunner-%{version_internal}/extensions/langpack-$locale@firefox.mozilla.org \ \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   393
         >> %{_tmppath}/translations.$_l10ntarget
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   394
  esac
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   395
done
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   396
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   397
# API symlink
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   398
ln -sf xulrunner-%{version_internal} $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{apiversion}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   399
# compat links
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   400
%if 0%{?ga_version:1}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   401
touch $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{ga_version}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   402
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   403
# excludes
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   404
%if %suse_version < 1120
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   405
rm -f $RPM_BUILD_ROOT%{_bindir}/xulrunner
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   406
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   407
rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/updater
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   408
rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/update.locale
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   409
rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/LICENSE
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   410
rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/README.txt
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   411
rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/dictionaries/en-US*
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   412
rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/nspr-config
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   413
rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/mozilla-plugin.pc
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   414
# fdupes
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   415
%fdupes $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal}/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   416
%fdupes $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   417
# create breakpad debugsymbols
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   418
%if %crashreporter
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   419
SYMBOLS_NAME="xulrunner-%{version}-%{release}.%{_arch}-%{suse_version}-symbols"
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   420
make buildsymbols \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   421
  SYMBOL_INDEX_NAME="$SYMBOLS_NAME.txt" \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   422
  SYMBOL_FULL_ARCHIVE_BASENAME="$SYMBOLS_NAME-full" \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   423
  SYMBOL_ARCHIVE_BASENAME="$SYMBOLS_NAME"
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   424
if [ -e dist/*symbols.zip ]; then
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   425
  mkdir -p $RPM_BUILD_ROOT%{_datadir}/mozilla/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   426
  cp dist/*symbols.zip $RPM_BUILD_ROOT%{_datadir}/mozilla/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   427
fi
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   428
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   429
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   430
%clean
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   431
rm -rf $RPM_BUILD_ROOT
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   432
%if %localize
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   433
rm -rf %{_tmppath}/translations.*
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   434
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   435
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   436
%post
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   437
/usr/sbin/update-alternatives --install %{_bindir}/xulrunner \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   438
  xulrunner %{_libdir}/xulrunner-%{apiversion}/xulrunner %{uaweight} || :
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   439
%{_libdir}/xulrunner-%{apiversion}/add-plugins.sh > /dev/null 2>&1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   440
exit 0
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   441
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   442
%posttrans
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   443
# needed for updates which transition directory to symlink
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   444
%if 0%{?ga_version:1}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   445
test -d %{_libdir}/xulrunner-%{ga_version} && rm -rf %{_libdir}/xulrunner-%{ga_version}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   446
ln -sf xulrunner-%{version_internal} %{_libdir}/xulrunner-%{ga_version}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   447
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   448
[ -e %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh ] && \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   449
  %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   450
exit 0
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   451
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   452
%preun
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   453
if [ "$1" = "0" ]; then # deinstallation
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   454
  # that's not quite nice since old versions should be removed on update as well
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   455
  # but that's problematic for updates w/o raising the version number
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   456
  /usr/sbin/update-alternatives --remove xulrunner %{_libdir}/xulrunner-%{apiversion}/xulrunner
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   457
fi
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   458
rm -f %{_libdir}/xulrunner-%{version_internal}/dictionaries/*
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   459
exit 0
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   460
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   461
%triggerin -- myspell-dictionary
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   462
%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   463
exit 0
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   464
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   465
%triggerpostun -- myspell-dictionary
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   466
%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   467
exit 0
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   468
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   469
%files
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   470
%defattr(-,root,root)
713
3c7719dfcafa update to 24.4.0esr
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 701
diff changeset
   471
%doc %attr(644,root,root) LICENSE
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   472
%dir %{_libdir}/xulrunner-%{version_internal}/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   473
%dir %{_libdir}/xulrunner-%{version_internal}/chrome/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   474
%dir %{_libdir}/xulrunner-%{version_internal}/dictionaries/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   475
%dir %{_libdir}/xulrunner-%{version_internal}/extensions/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   476
%{_libdir}/xulrunner-%{version_internal}/chrome/icons/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   477
%{_libdir}/xulrunner-%{version_internal}/components/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   478
%{_libdir}/xulrunner-%{version_internal}/*.so
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   479
%exclude %{_libdir}/xulrunner-%{version_internal}/libmozjs.so
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   480
%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   481
%{_libdir}/xulrunner-%{version_internal}/chrome.manifest
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   482
%{_libdir}/xulrunner-%{version_internal}/dependentlibs.list
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   483
%{_libdir}/xulrunner-%{version_internal}/mozilla-xremote-client
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   484
%{_libdir}/xulrunner-%{version_internal}/plugin-container
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   485
%{_libdir}/xulrunner-%{version_internal}/xulrunner
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   486
%{_libdir}/xulrunner-%{version_internal}/xulrunner-stub
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   487
%{_libdir}/xulrunner-%{version_internal}/platform.ini
373
db704efaedab Firefox 10.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 372
diff changeset
   488
%{_libdir}/xulrunner-%{version_internal}/omni.ja
508
3e7bfc2dd452 merge changes from firefox14
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 507
diff changeset
   489
%{_libdir}/xulrunner-%{version_internal}/README.xulrunner
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   490
# crashreporter files
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   491
%if %crashreporter
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   492
%{_libdir}/xulrunner-%{version_internal}/crashreporter
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   493
%{_libdir}/xulrunner-%{version_internal}/crashreporter.ini
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   494
%{_libdir}/xulrunner-%{version_internal}/Throbber-small.gif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   495
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   496
# ghosts
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   497
%ghost %{_libdir}/xulrunner-%{version_internal}/global.reginfo
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   498
%if %suse_version >= 1120
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   499
%ghost %{_bindir}/xulrunner
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   500
%endif
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
   501
# API symlink (already in mozilla-js)
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
   502
#%{_libdir}/xulrunner-%{apiversion}
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   503
# compat symlinks
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   504
%if 0%{?ga_version:1}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   505
%ghost %{_libdir}/xulrunner-%{ga_version}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   506
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   507
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   508
%files -n mozilla-js
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   509
%defattr(-,root,root)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   510
%dir %{_libdir}/xulrunner-%{version_internal}/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   511
%{_libdir}/xulrunner-%{apiversion}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   512
%{_libdir}/xulrunner-%{version_internal}/libmozjs.so
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   513
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   514
%files devel
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   515
%defattr(-,root,root)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   516
%{_libdir}/xulrunner-devel-%{version_internal}/
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   517
%{_libdir}/xulrunner-%{version_internal}/js-gdb.py
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   518
# FIXME symlink dynamic libs below sdk/lib
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   519
%attr(644,root,root) %{_libdir}/pkgconfig/*
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   520
%{_includedir}/xulrunner-%{version_internal}/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   521
%{_datadir}/xulrunner-%{version_internal}/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   522
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   523
%if %localize
334
1256d8842872 update to version 7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 325
diff changeset
   524
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   525
%files translations-common -f %{_tmppath}/translations.common
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   526
%defattr(-,root,root)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   527
%dir %{_libdir}/xulrunner-%{version_internal}/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   528
%dir %{_libdir}/xulrunner-%{version_internal}/chrome/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   529
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   530
%files translations-other -f %{_tmppath}/translations.other
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   531
%defattr(-,root,root)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   532
%dir %{_libdir}/xulrunner-%{version_internal}/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   533
%dir %{_libdir}/xulrunner-%{version_internal}/chrome/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   534
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   535
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   536
%if %crashreporter
334
1256d8842872 update to version 7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 325
diff changeset
   537
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   538
%files buildsymbols
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   539
%defattr(-,root,root)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   540
%{_datadir}/mozilla/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   541
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   542
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   543
%changelog