xulrunner/xulrunner.spec
author Wolfgang Rosenauer <wr@rosenauer.org>
Sat, 28 Sep 2013 13:21:55 +0200
branchfirefox24
changeset 670 0b1f7ee785d3
parent 595 31f273919032
child 678 d0329e10d68c
child 793 a08cc1ab27af
child 876 e893bdc9bf06
child 879 3b986c9dbc5f
permissions -rw-r--r--
update xulrunner base to 24.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
#
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
     4
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
     5
#               2006-2013 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
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    19
%if %suse_version > 1220
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    20
%define gstreamer_ver 0.10
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    21
%else
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    22
%define gstreamer_ver 0.10
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    23
%endif
375
d75cd0dac058 final 10.0 updates (changelog)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 373
diff changeset
    24
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    25
Name:           xulrunner
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    26
BuildRequires:  Mesa-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    27
BuildRequires:  autoconf213
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    28
BuildRequires:  dbus-1-glib-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    29
BuildRequires:  fdupes
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    30
BuildRequires:  gcc-c++
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    31
BuildRequires:  hunspell-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    32
BuildRequires:  libcurl-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    33
BuildRequires:  libgnomeui-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    34
BuildRequires:  libidl-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    35
BuildRequires:  libnotify-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    36
BuildRequires:  nss-shared-helper-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    37
BuildRequires:  pkg-config
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    38
BuildRequires:  python
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    39
BuildRequires:  startup-notification-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    40
BuildRequires:  unzip
401
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 400
diff changeset
    41
BuildRequires:  xorg-x11-libXt-devel
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    42
BuildRequires:  yasm
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    43
BuildRequires:  zip
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    44
%if %suse_version > 1110
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    45
BuildRequires:  libiw-devel
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    46
BuildRequires:  libproxy-devel
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    47
%else
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    48
BuildRequires:  wireless-tools
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    49
%endif
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    50
BuildRequires:  mozilla-nspr-devel >= 4.10
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    51
BuildRequires:  mozilla-nss-devel >= 3.15.1
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    52
%if %suse_version > 1210
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    53
BuildRequires:  pkgconfig(gstreamer-%gstreamer_ver)
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    54
BuildRequires:  pkgconfig(gstreamer-app-%gstreamer_ver)
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    55
BuildRequires:  pkgconfig(gstreamer-plugins-base-%gstreamer_ver)
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    56
%endif
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    57
Version:        24.0
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    58
Release:        0
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    59
%define         releasedate 2013091000
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    60
%define         version_internal 24.0
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    61
%define         apiversion 24
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    62
%define         uaweight 2400000
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    63
Summary:        Mozilla Runtime Environment
456
7b9ab7747a11 License change to MPL-2.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 447
diff changeset
    64
License:        MPL-2.0
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    65
Group:          Productivity/Other
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    66
Url:            http://www.mozilla.org/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    67
Provides:       gecko
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    68
%ifarch %ix86
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    69
Provides:       xulrunner-32bit = %{version}-%{release}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    70
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    71
Source:         xulrunner-%{version}-source.tar.bz2
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    72
Source1:        l10n-%{version}.tar.bz2
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    73
Source2:        find-external-requires.sh
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    74
Source3:        %{name}-rpmlintrc
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    75
Source4:        xulrunner-openSUSE-prefs.js
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    76
Source5:        add-plugins.sh.in
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    77
Source6:        create-tar.sh
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    78
Source7:        baselibs.conf
375
d75cd0dac058 final 10.0 updates (changelog)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 373
diff changeset
    79
Source8:        source-stamp.txt
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    80
Source9:        compare-locales.tar.bz2
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    81
Patch1:         toolkit-download-folder.patch
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    82
Patch2:         mozilla-pkgconfig.patch
556
a30fcfcd2e53 manual merge from firefox16 changes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 554
diff changeset
    83
Patch3:         mozilla-idldir.patch
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    84
Patch4:         mozilla-nongnome-proxies.patch
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    85
Patch5:         mozilla-prefer_plugin_pref.patch
438
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
    86
Patch6:         mozilla-language.patch
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
    87
Patch7:         mozilla-ntlm-full-path.patch
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
    88
Patch9:         mozilla-sle11.patch
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    89
Patch10:        mozilla-ppc.patch
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    90
Patch11:        mozilla-libproxy-compat.patch
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    91
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    92
Requires:       mozilla-js = %{version}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    93
Requires(post):  update-alternatives coreutils
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    94
Requires(preun): update-alternatives coreutils
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    95
Provides:       xulrunner-esr = %{version}
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
    96
Obsoletes:      xulrunner-esr < 24.0
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    97
### build configuration ###
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    98
%define has_system_nspr  1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    99
%define has_system_nss   1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   100
%define has_system_cairo 0
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   101
%define localize 1
535
cba7622bad5d ARM fixes
Dirk M?ller <dmueller@suse.com>
parents: 533
diff changeset
   102
%ifarch ppc ppc64 s390 s390x ia64 %arm
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   103
%define crashreporter    0
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   104
%else
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   105
%define crashreporter    1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   106
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   107
### configuration end ###
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   108
%define _use_internal_dependency_generator 0
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   109
%define __find_requires sh %{SOURCE2}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   110
%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
   111
%global __find_provides %provfind
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   112
%if %has_system_nspr
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   113
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
   114
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   115
%if %has_system_nss
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   116
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
   117
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   118
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   119
%description
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   120
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
   121
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
   122
Thunderbird.
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   123
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
%package -n mozilla-js
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   126
Summary:        Mozilla JS engine
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   127
Group:          Productivity/Other
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   128
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   129
%description -n mozilla-js
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   130
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
   131
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
   132
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
   133
with only mild differences from the published standard.
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
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   136
%package devel
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   137
Summary:        XULRunner/Gecko SDK
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   138
Group:          Development/Libraries/Other
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   139
%if %has_system_nspr
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   140
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
   141
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   142
%if %has_system_nss
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   143
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
   144
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   145
Requires:       %{name} = %{version}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   146
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   147
%description devel
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   148
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
   149
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   150
%if %localize
334
1256d8842872 update to version 7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 325
diff changeset
   151
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   152
%package translations-common
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   153
Summary:        Common translations for XULRunner
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   154
Group:          System/Localization
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   155
Requires:       %{name} = %{version}
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   156
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
   157
Obsoletes:      %{name}-translations < %{version}-%{release}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   158
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   159
%description translations-common
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   160
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
   161
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
   162
Thunderbird.
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   163
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   164
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
   165
delivered in the main package.
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   166
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   167
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   168
%package translations-other
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   169
Summary:        Extra translations for XULRunner
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   170
Group:          System/Localization
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   171
Requires:       %{name} = %{version}
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   172
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
   173
Obsoletes:      %{name}-translations < %{version}-%{release}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   174
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   175
%description translations-other
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   176
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
   177
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
   178
Thunderbird.
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   179
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   180
This package contains rarely used languages.
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   181
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   182
334
1256d8842872 update to version 7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 325
diff changeset
   183
%if %crashreporter
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   184
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   185
%package buildsymbols
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   186
Summary:        Breakpad buildsymbols for %{name}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   187
Group:          Development/Debug
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   188
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   189
%description buildsymbols
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   190
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
   191
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
   192
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   193
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   194
%prep
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   195
%setup -n mozilla -q -b 1 -b 9
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   196
%patch1 -p1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   197
%patch2 -p1
556
a30fcfcd2e53 manual merge from firefox16 changes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 554
diff changeset
   198
%patch3 -p1
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   199
%patch4 -p1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   200
%patch5 -p1
438
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
   201
%patch6 -p1
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
   202
%patch7 -p1
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
   203
%if %suse_version < 1120
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   204
%patch9 -p1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   205
%endif
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   206
%patch10 -p1
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   207
%patch11 -p1
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   208
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   209
%build
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   210
# no need to add build time to binaries
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   211
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
   212
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   213
TIME="\"$(date -d "${modified}" "+%%R")\""
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   214
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
   215
#
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   216
MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   217
export MOZ_BUILD_DATE=%{releasedate}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   218
export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing"
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   219
%ifarch ppc64
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   220
export CFLAGS="$CFLAGS -mminimal-toc"
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   221
%endif
535
cba7622bad5d ARM fixes
Dirk M?ller <dmueller@suse.com>
parents: 533
diff changeset
   222
export LDFLAGS=" -Wl,-rpath -Wl,${MOZ_APP_DIR}"
cba7622bad5d ARM fixes
Dirk M?ller <dmueller@suse.com>
parents: 533
diff changeset
   223
%ifarch %arm
cba7622bad5d ARM fixes
Dirk M?ller <dmueller@suse.com>
parents: 533
diff changeset
   224
# debug symbols require too much memory during build
cba7622bad5d ARM fixes
Dirk M?ller <dmueller@suse.com>
parents: 533
diff changeset
   225
export CFLAGS="${CFLAGS/-g/}"
cba7622bad5d ARM fixes
Dirk M?ller <dmueller@suse.com>
parents: 533
diff changeset
   226
LDFLAGS+="-Wl,--reduce-memory-overheads -Wl,--no-keep-memory"
cba7622bad5d ARM fixes
Dirk M?ller <dmueller@suse.com>
parents: 533
diff changeset
   227
%endif
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   228
export CXXFLAGS="$CFLAGS"
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   229
export MOZCONFIG=$RPM_BUILD_DIR/mozconfig
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   230
export MOZILLA_OFFICIAL=1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   231
export BUILD_OFFICIAL=1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   232
export MOZ_MILESTONE_RELEASE=1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   233
#
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   234
cat << EOF > $MOZCONFIG
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   235
mk_add_options MOZILLA_OFFICIAL=1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   236
mk_add_options BUILD_OFFICIAL=1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   237
mk_add_options MOZ_MILESTONE_RELEASE=1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   238
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
   239
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   240
. \$topsrcdir/xulrunner/config/mozconfig
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   241
ac_add_options --prefix=%{_prefix}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   242
ac_add_options --libdir=%{_libdir}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   243
ac_add_options --sysconfdir=%{_sysconfdir}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   244
ac_add_options --mandir=%{_mandir}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   245
ac_add_options --includedir=%{_includedir}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   246
ac_add_options --enable-optimize
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   247
ac_add_options --enable-extensions=default
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   248
#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
   249
#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
   250
ac_add_options --with-system-zlib
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   251
ac_add_options --with-l10n-base=$RPM_BUILD_DIR/l10n
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   252
ac_add_options --disable-tests
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   253
ac_add_options --disable-mochitest
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   254
ac_add_options --disable-installer
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   255
ac_add_options --disable-updater
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   256
ac_add_options --disable-javaxpcom
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   257
ac_add_options --enable-system-hunspell
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   258
ac_add_options --enable-startup-notification
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   259
ac_add_options --enable-shared-js
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   260
#ac_add_options --enable-debug
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   261
EOF
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   262
%if %suse_version > 1130
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   263
cat << EOF >> $MOZCONFIG
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   264
ac_add_options --disable-gnomevfs
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   265
ac_add_options --enable-gio
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   266
EOF
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   267
%endif
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   268
%if %suse_version < 1220
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   269
cat << EOF >> $MOZCONFIG
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   270
ac_add_options --disable-gstreamer
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   271
EOF
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   272
%endif
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   273
%if %has_system_nspr
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   274
cat << EOF >> $MOZCONFIG
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   275
ac_add_options --with-system-nspr
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   276
EOF
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   277
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   278
%if %has_system_nss
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   279
cat << EOF >> $MOZCONFIG
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   280
ac_add_options --with-system-nss
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   281
EOF
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   282
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   283
%if %has_system_cairo
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   284
cat << EOF >> $MOZCONFIG
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   285
ac_add_options --enable-system-cairo
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   286
EOF
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   287
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   288
%if %suse_version > 1110
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   289
cat << EOF >> $MOZCONFIG
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   290
ac_add_options --enable-libproxy
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   291
EOF
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   292
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   293
%if ! %crashreporter
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   294
cat << EOF >> $MOZCONFIG
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   295
ac_add_options --disable-crashreporter
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   296
EOF
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   297
%endif
404
5f3bccaf6d52 provide browser(npapi)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 401
diff changeset
   298
# ARM
371
ead21d122ed0 introduce --disable-neon option and use on ARM
Joop Boonen <joop.boonen@opensuse.org>
parents: 370
diff changeset
   299
%ifarch %arm
ead21d122ed0 introduce --disable-neon option and use on ARM
Joop Boonen <joop.boonen@opensuse.org>
parents: 370
diff changeset
   300
cat << EOF >> $MOZCONFIG
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   301
ac_add_options --disable-neon
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   302
EOF
404
5f3bccaf6d52 provide browser(npapi)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 401
diff changeset
   303
%endif
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   304
%ifnarch %ix86 x86_64
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   305
cat << EOF >> $MOZCONFIG
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   306
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
   307
EOF
ead21d122ed0 introduce --disable-neon option and use on ARM
Joop Boonen <joop.boonen@opensuse.org>
parents: 370
diff changeset
   308
%endif
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   309
make -f client.mk build
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   310
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   311
%install
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   312
cd ../obj
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   313
# preferences (to package in omni.jar)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   314
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
   315
%makeinstall STRIP=/bin/true
334
1256d8842872 update to version 7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 325
diff changeset
   316
# xpt.py is not executable
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
   317
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
   318
# remove some executable permissions
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   319
find $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal} \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   320
     -type f -perm -111 -exec chmod a-x {} \;
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   321
find $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/ \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   322
     -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
   323
# remove mkdir.done files from installed base
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   324
#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
   325
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
   326
# fixing SDK dynamic libs (symlink instead of copy)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   327
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
   328
ln -sf ../../../xulrunner-%{version_internal}/libmozjs.so \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   329
       $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
   330
ln -sf ../../../xulrunner-%{version_internal}/libxul.so \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   331
       $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
   332
# include basic buildenv for xulapps to use
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   333
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
   334
pushd ..
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   335
# 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
   336
tar --exclude=*.cpp --exclude=*.mm \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   337
   -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
   338
    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
   339
    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
   340
    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
   341
    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
   342
popd
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   343
# install add-plugins.sh
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   344
sed "s:%%PROGDIR:%{_libdir}/xulrunner-%{version_internal}:g" \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   345
  %{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
   346
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
   347
# ghosts
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   348
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
   349
# install additional locales
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   350
%if %localize
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   351
rm -f %{_tmppath}/translations.*
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   352
touch %{_tmppath}/translations.{common,other}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   353
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
   354
  case $locale in
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   355
   ja-JP-mac|en-US)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   356
      ;;
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   357
   *)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   358
      pushd $RPM_BUILD_DIR/compare-locales
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   359
      PYTHONPATH=lib \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   360
        scripts/compare-locales -m ../l10n-merged/$locale \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   361
	../mozilla/toolkit/locales/l10n.ini ../l10n $locale
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   362
      popd
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   363
      LOCALE_MERGEDIR=$RPM_BUILD_DIR/l10n-merged/$locale \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   364
      make -C toolkit/locales langpack-$locale
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   365
      cp dist/xpi-stage/locale-$locale \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   366
         $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
   367
      # remove prefs and profile defaults from langpack
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   368
      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
   369
      # 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
   370
      _matched=0
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   371
      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
   372
        [ "$_match" = "$locale" ] && _matched=1
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   373
      done
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   374
      [ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   375
      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
   376
         >> %{_tmppath}/translations.$_l10ntarget
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   377
  esac
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   378
done
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   379
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   380
# API symlink
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   381
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
   382
# compat links
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   383
%if 0%{?ga_version:1}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   384
touch $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{ga_version}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   385
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   386
# excludes
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   387
%if %suse_version < 1120
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   388
rm -f $RPM_BUILD_ROOT%{_bindir}/xulrunner
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   389
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   390
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
   391
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
   392
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
   393
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
   394
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
   395
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
   396
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
   397
# fdupes
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   398
%fdupes $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal}/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   399
%fdupes $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   400
# create breakpad debugsymbols
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   401
%if %crashreporter
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   402
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
   403
make buildsymbols \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   404
  SYMBOL_INDEX_NAME="$SYMBOLS_NAME.txt" \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   405
  SYMBOL_FULL_ARCHIVE_BASENAME="$SYMBOLS_NAME-full" \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   406
  SYMBOL_ARCHIVE_BASENAME="$SYMBOLS_NAME"
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   407
if [ -e dist/*symbols.zip ]; then
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   408
  mkdir -p $RPM_BUILD_ROOT%{_datadir}/mozilla/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   409
  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
   410
fi
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   411
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   412
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   413
%clean
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   414
rm -rf $RPM_BUILD_ROOT
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   415
%if %localize
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   416
rm -rf %{_tmppath}/translations.*
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   417
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   418
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   419
%post
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   420
/usr/sbin/update-alternatives --install %{_bindir}/xulrunner \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   421
  xulrunner %{_libdir}/xulrunner-%{apiversion}/xulrunner %{uaweight} || :
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   422
%{_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
   423
exit 0
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   424
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   425
%posttrans
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   426
# needed for updates which transition directory to symlink
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   427
%if 0%{?ga_version:1}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   428
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
   429
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
   430
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   431
[ -e %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh ] && \
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   432
  %{_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
   433
exit 0
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   434
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   435
%preun
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   436
if [ "$1" = "0" ]; then # deinstallation
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   437
  # 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
   438
  # 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
   439
  /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
   440
fi
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   441
rm -f %{_libdir}/xulrunner-%{version_internal}/dictionaries/*
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   442
exit 0
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   443
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   444
%triggerin -- myspell-dictionary
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   445
%{_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
   446
exit 0
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   447
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   448
%triggerpostun -- myspell-dictionary
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
%files
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   453
%defattr(-,root,root)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   454
%dir %{_libdir}/xulrunner-%{version_internal}/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   455
%dir %{_libdir}/xulrunner-%{version_internal}/chrome/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   456
%dir %{_libdir}/xulrunner-%{version_internal}/dictionaries/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   457
%dir %{_libdir}/xulrunner-%{version_internal}/extensions/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   458
%{_libdir}/xulrunner-%{version_internal}/chrome/icons/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   459
%{_libdir}/xulrunner-%{version_internal}/components/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   460
%{_libdir}/xulrunner-%{version_internal}/*.so
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   461
%exclude %{_libdir}/xulrunner-%{version_internal}/libmozjs.so
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   462
%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   463
%{_libdir}/xulrunner-%{version_internal}/chrome.manifest
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   464
%{_libdir}/xulrunner-%{version_internal}/dependentlibs.list
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   465
%{_libdir}/xulrunner-%{version_internal}/mozilla-xremote-client
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   466
%{_libdir}/xulrunner-%{version_internal}/plugin-container
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   467
%{_libdir}/xulrunner-%{version_internal}/xulrunner
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   468
%{_libdir}/xulrunner-%{version_internal}/xulrunner-stub
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   469
%{_libdir}/xulrunner-%{version_internal}/platform.ini
373
db704efaedab Firefox 10.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 372
diff changeset
   470
%{_libdir}/xulrunner-%{version_internal}/omni.ja
508
3e7bfc2dd452 merge changes from firefox14
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 507
diff changeset
   471
%{_libdir}/xulrunner-%{version_internal}/README.xulrunner
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   472
# crashreporter files
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   473
%if %crashreporter
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   474
%{_libdir}/xulrunner-%{version_internal}/crashreporter
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   475
%{_libdir}/xulrunner-%{version_internal}/crashreporter.ini
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   476
%{_libdir}/xulrunner-%{version_internal}/Throbber-small.gif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   477
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   478
# ghosts
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   479
%ghost %{_libdir}/xulrunner-%{version_internal}/global.reginfo
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   480
%if %suse_version >= 1120
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   481
%ghost %{_bindir}/xulrunner
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   482
%endif
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
   483
# API symlink (already in mozilla-js)
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
   484
#%{_libdir}/xulrunner-%{apiversion}
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   485
# compat symlinks
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   486
%if 0%{?ga_version:1}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   487
%ghost %{_libdir}/xulrunner-%{ga_version}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   488
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   489
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   490
%files -n mozilla-js
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   491
%defattr(-,root,root)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   492
%dir %{_libdir}/xulrunner-%{version_internal}/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   493
%{_libdir}/xulrunner-%{apiversion}
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   494
%{_libdir}/xulrunner-%{version_internal}/libmozjs.so
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   495
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   496
%files devel
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   497
%defattr(-,root,root)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   498
%{_libdir}/xulrunner-devel-%{version_internal}/
670
0b1f7ee785d3 update xulrunner base to 24.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 595
diff changeset
   499
%{_libdir}/xulrunner-%{version_internal}/js-gdb.py
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   500
# FIXME symlink dynamic libs below sdk/lib
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   501
%attr(644,root,root) %{_libdir}/pkgconfig/*
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   502
%{_includedir}/xulrunner-%{version_internal}/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   503
%{_datadir}/xulrunner-%{version_internal}/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   504
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   505
%if %localize
334
1256d8842872 update to version 7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 325
diff changeset
   506
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   507
%files translations-common -f %{_tmppath}/translations.common
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   508
%defattr(-,root,root)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   509
%dir %{_libdir}/xulrunner-%{version_internal}/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   510
%dir %{_libdir}/xulrunner-%{version_internal}/chrome/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   511
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   512
%files translations-other -f %{_tmppath}/translations.other
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   513
%defattr(-,root,root)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   514
%dir %{_libdir}/xulrunner-%{version_internal}/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   515
%dir %{_libdir}/xulrunner-%{version_internal}/chrome/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   516
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   517
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   518
%if %crashreporter
334
1256d8842872 update to version 7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 325
diff changeset
   519
325
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   520
%files buildsymbols
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   521
%defattr(-,root,root)
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   522
%{_datadir}/mozilla/
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   523
%endif
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   524
f5966ab369fb manual forward merge xulrunner from firefox6 branch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   525
%changelog