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