MozillaFirefox/MozillaFirefox.spec
author Wolfgang Rosenauer <wr@rosenauer.org>
Sun, 10 Jun 2012 21:03:27 +0200
changeset 468 22a70eb49a43
parent 467 a9baaad57fa4
child 471 73b631ab214b
permissions -rw-r--r--
Aurora 15 build1 (20120609)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     1
#
236
a4f5954df3a3 update for 2.0/4.0rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 230
diff changeset
     2
# spec file for package MozillaFirefox
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     3
#
370
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 369
diff changeset
     4
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 369
diff changeset
     5
#               2006-2012 Wolfgang Rosenauer
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     6
#
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     7
# All modifications and additions to the file contributed by third parties
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     8
# remain the property of their copyright owners, unless otherwise agreed
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     9
# upon. The license for this file, and modifications and additions to the
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    10
# file, is the same license as for the pristine package itself (unless the
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    11
# license for the pristine package is not an Open Source License, in which
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    12
# case the license is the MIT License). An "Open Source License" is a
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    13
# license that conforms to the Open Source Definition (Version 1.9)
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    14
# published by the Open Source Initiative.
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    15
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    16
# Please submit bugfixes or comments via http://bugs.opensuse.org/
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    17
#
17b1dd932700 Add MozillaFirefox package
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
463
916711b0f1d6 merge latest 14.0 changes to Aurora 15.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 462
diff changeset
    20
%define major 14
916711b0f1d6 merge latest 14.0 changes to Aurora 15.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 462
diff changeset
    21
%define mainver %major.98
916711b0f1d6 merge latest 14.0 changes to Aurora 15.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 462
diff changeset
    22
%define update_channel aurora
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    23
126
7b356805729c remove the 4 suffix (no parallel installation starting with beta4)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 123
diff changeset
    24
Name:           MozillaFirefox
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    25
BuildRequires:  Mesa-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    26
BuildRequires:  autoconf213
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    27
BuildRequires:  dbus-1-glib-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    28
BuildRequires:  fdupes
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    29
BuildRequires:  gcc-c++
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    30
BuildRequires:  libcurl-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    31
BuildRequires:  libgnomeui-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    32
BuildRequires:  libidl-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    33
BuildRequires:  libnotify-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    34
BuildRequires:  python
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    35
BuildRequires:  startup-notification-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    36
BuildRequires:  unzip
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    37
BuildRequires:  update-desktop-files
401
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 400
diff changeset
    38
BuildRequires:  xorg-x11-libXt-devel
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    39
BuildRequires:  yasm
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    40
BuildRequires:  zip
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    41
%if %suse_version > 1110
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    42
BuildRequires:  libiw-devel
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
    43
BuildRequires:  libproxy-devel
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    44
%else
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    45
BuildRequires:  wireless-tools
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    46
%endif
463
916711b0f1d6 merge latest 14.0 changes to Aurora 15.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 462
diff changeset
    47
BuildRequires:  mozilla-nspr-devel >= 4.9.1
916711b0f1d6 merge latest 14.0 changes to Aurora 15.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 462
diff changeset
    48
BuildRequires:  mozilla-nss-devel >= 3.13.5
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
    49
BuildRequires:  nss-shared-helper-devel
444
6525a220a096 fixed build with changed install directories (defaults/pref -> defaults/preferences)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 438
diff changeset
    50
%if %suse_version > 1140
6525a220a096 fixed build with changed install directories (defaults/pref -> defaults/preferences)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 438
diff changeset
    51
BuildRequires:  pkgconfig(gstreamer-0.10)
6525a220a096 fixed build with changed install directories (defaults/pref -> defaults/preferences)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 438
diff changeset
    52
BuildRequires:  pkgconfig(gstreamer-app-0.10)
6525a220a096 fixed build with changed install directories (defaults/pref -> defaults/preferences)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 438
diff changeset
    53
BuildRequires:  pkgconfig(gstreamer-plugins-base-0.10)
6525a220a096 fixed build with changed install directories (defaults/pref -> defaults/preferences)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 438
diff changeset
    54
%endif
368
8891dd9439a1 finalized Firefox 10.0b1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 367
diff changeset
    55
Version:        %{mainver}
375
d75cd0dac058 final 10.0 updates (changelog)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 373
diff changeset
    56
Release:        0
462
2d86bdb4277f 14.0b6 (Aurora->Beta)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 457
diff changeset
    57
%define         releasedate 2012060500
401
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 400
diff changeset
    58
Provides:       firefox = %{mainver}
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 400
diff changeset
    59
Provides:       firefox = %{version}-%{release}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    60
Provides:       web_browser
404
5f3bccaf6d52 provide browser(npapi)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 401
diff changeset
    61
Provides:       browser(npapi)
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
    62
# this is needed to match this package with the kde4 helper package without the main package
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
    63
# having a hard requirement on the kde4 package
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
    64
%define kde_helper_version 6
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
    65
Provides:       mozilla-kde4-version = %{kde_helper_version}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    66
Summary:        Mozilla Firefox Web Browser
456
7b9ab7747a11 License change to MPL-2.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 447
diff changeset
    67
License:        MPL-2.0
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    68
Group:          Productivity/Networking/Web/Browsers
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    69
Url:            http://www.mozilla.org/
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    70
Source:         firefox-%{version}-source.tar.bz2
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    71
Source1:        MozillaFirefox.desktop
86
f2a830880862 Install as firefox4 in parallel to unversioned
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 84
diff changeset
    72
Source2:        MozillaFirefox-rpmlintrc
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    73
Source3:        mozilla.sh.in
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    74
Source4:        find-external-requires.sh
279
eb9e33036fb4 update to 5.0b6
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 277
diff changeset
    75
Source5:        source-stamp.txt
12
1f7c3dc01e1c Prepare MozillaFirefox for KDE integration
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 5
diff changeset
    76
Source6:        kde.js
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    77
Source7:        l10n-%{version}.tar.bz2
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    78
Source8:        firefox-mimeinfo.xml
155
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
    79
Source10:       compare-locales.tar.bz2
198
447791e42c9b Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 196
diff changeset
    80
Source11:       firefox.1
225
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
    81
Source12:       mozilla-get-app-id
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
    82
Source13:       add-plugins.sh.in
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
    83
Source14:       create-tar.sh
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
    84
# Gecko/Toolkit
198
447791e42c9b Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 196
diff changeset
    85
Patch1:         toolkit-download-folder.patch
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
    86
Patch2:         mozilla-nongnome-proxies.patch
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
    87
Patch3:         mozilla-prefer_plugin_pref.patch
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
    88
Patch4:         mozilla-shared-nss-db.patch
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
    89
Patch5:         mozilla-kde.patch
339
db8b891eeb1e locale should always match the system one in a package environment
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 337
diff changeset
    90
Patch6:         mozilla-preferences.patch
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
    91
Patch7:         mozilla-language.patch
341
a90633075f60 merge from firefox7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 340 339
diff changeset
    92
Patch8:         mozilla-ntlm-full-path.patch
a90633075f60 merge from firefox7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 340 339
diff changeset
    93
Patch9:         mozilla-repo.patch
a90633075f60 merge from firefox7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 340 339
diff changeset
    94
Patch11:        mozilla-sle11.patch
438
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
    95
Patch12:        mozilla-disable-neon-option.patch
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
    96
Patch13:        mozilla-yarr-pcre.patch
457
0c2249d015b6 fixed ARM build
Adrian Schr?ter <adrian@suse.de>
parents: 456
diff changeset
    97
Patch15:        mozilla-arm-disable-edsp.patch
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
    98
# Firefox/browser
438
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
    99
Patch30:        firefox-browser-css.patch
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
   100
Patch31:        firefox-kde.patch
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
   101
Patch32:        firefox-kde-114.patch
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
   102
Patch33:        firefox-no-default-ualocale.patch
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
   103
Patch34:        firefox-multilocale-chrome.patch
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
   104
Patch35:        firefox-branded-icons.patch
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   105
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
46
c743908ffe6f Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 36
diff changeset
   106
Requires(post):   coreutils shared-mime-info desktop-file-utils
c743908ffe6f Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 36
diff changeset
   107
Requires(postun): shared-mime-info desktop-file-utils
401
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 400
diff changeset
   108
Requires:       %{name}-branding > 4.0
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   109
Requires:       mozilla-nspr >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr)
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   110
Requires:       mozilla-nss >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss)
412
aa28c4f2962a recommend having libcanberra0 has it's used also for nsISound::Play() (instead of libesd) now
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 410
diff changeset
   111
Recommends:     libcanberra0
225
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   112
%define firefox_appid \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   113
%define _use_internal_dependency_generator 0
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   114
%define __find_requires sh %{SOURCE4}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   115
%global provfind sh -c "grep -v '.so' | %__find_provides"
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   116
%global __find_provides %provfind
126
7b356805729c remove the 4 suffix (no parallel installation starting with beta4)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 123
diff changeset
   117
%define progname firefox
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   118
%define progdir %{_prefix}/%_lib/%{progname}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   119
%define gnome_dir     %{_prefix}
215
b84e98861887 change if logic a bit
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 214
diff changeset
   120
%if %suse_version > 1130
b84e98861887 change if logic a bit
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 214
diff changeset
   121
%define desktop_file_name firefox
b84e98861887 change if logic a bit
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 214
diff changeset
   122
%else
213
b2978eba3a92 rename desktop file for 11.4 and above (bnc#664211)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 210
diff changeset
   123
%define desktop_file_name %{name}
b2978eba3a92 rename desktop file for 11.4 and above (bnc#664211)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 210
diff changeset
   124
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   125
### build options
463
916711b0f1d6 merge latest 14.0 changes to Aurora 15.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 462
diff changeset
   126
%define branding 0
101
1678af7b5183 Fix l10n build of Firefox
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 99
diff changeset
   127
%define localize 1
364
0f5c150b9dcd merge changes from mozilla:Factory including full changelog
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 363
diff changeset
   128
%ifarch ppc ppc64 s390 s390x ia64 %arm
435
df9c4a6e84f8 update version/tree information for Aurora 14 cycle
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 425
diff changeset
   129
%define crashreporter 0
117
565d666e22a1 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 103
diff changeset
   130
%else
435
df9c4a6e84f8 update version/tree information for Aurora 14 cycle
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 425
diff changeset
   131
%define crashreporter 1
df9c4a6e84f8 update version/tree information for Aurora 14 cycle
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 425
diff changeset
   132
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   133
### build options end
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   134
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   135
%description
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   136
Mozilla Firefox is a standalone web browser, designed for standards
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   137
compliance and performance.  Its functionality can be enhanced via a
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   138
plethora of extensions.
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   139
225
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   140
%package devel
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   141
Summary:        Devel package for Firefox
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   142
Group:          Development/Tools/Other
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   143
Provides:       firefox-devel = %{version}-%{release}
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   144
Requires:       %{name} = %{version}
401
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 400
diff changeset
   145
Requires:       perl(Archive::Zip)
225
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   146
Requires:       perl(XML::Simple)
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   147
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   148
%description devel
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   149
Development files for Firefox to make packaging of addons easier.
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   150
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   151
%if %localize
334
1256d8842872 update to version 7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 327
diff changeset
   152
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   153
%package translations-common
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   154
Summary:        Common translations for MozillaFirefox
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
   155
Group:          System/Localization
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   156
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)
46
c743908ffe6f Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 36
diff changeset
   157
Requires:       %{name} = %{version}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   158
Obsoletes:      %{name}-translations < %{version}-%{release}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   159
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   160
%description translations-common
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   161
This package contains several common languages for the user interface
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   162
of MozillaFirefox.
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   163
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   164
%package translations-other
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   165
Summary:        Extra translations for MozillaFirefox
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
   166
Group:          System/Localization
435
df9c4a6e84f8 update version/tree information for Aurora 14 cycle
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 425
diff changeset
   167
Provides:       locale(%{name}:af;ak;as;ast;be;bg;bn_BD;bn_IN;br;bs;csb;cy;el;en_ZA;eo;es_MX;et;eu;fa;fy_NL;ga_IE;gd;gl;gu_IN;he;hi_IN;hr;hy_AM;id;is;kk;km;kn;ku;lg;lij;lt;lv;mai;mk;ml;mn;mr;nn_NO;nso;or;pa_IN;rm;ro;si;sk;sl;son;sq;sr;sw;ta;ta_LK;te;th;tr;uk;vi;zu)
46
c743908ffe6f Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 36
diff changeset
   168
Requires:       %{name} = %{version}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   169
Obsoletes:      %{name}-translations < %{version}-%{release}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   170
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   171
%description translations-other
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   172
This package contains rarely used languages for the user interface
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   173
of MozillaFirefox.
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   174
%endif
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   175
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   176
%package branding-upstream
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   177
Summary:        Upstream branding for MozillaFirefox
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   178
Group:          Productivity/Networking/Web/Browsers
287
79d59c9143a2 fixed branding package version provides
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 286
diff changeset
   179
Provides:       %{name}-branding = 5.0
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   180
Conflicts:      otherproviders(%{name}-branding)
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   181
Supplements:    packageand(%{name}:branding-upstream)
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   182
#BRAND: Provide three files -
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   183
#BRAND: /usr/lib/firefox/browserconfig.properties that contains the
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   184
#BRAND: default homepage and some other default configuration options
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   185
#BRAND: /usr/lib/firefox/defaults/profile/bookmarks.html that contains
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   186
#BRAND: the list of default bookmarks
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   187
#BRAND: It's also possible to create a file
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   188
#BRAND: /usr/lib/firefox/defaults/preferences/firefox-$vendor.js to set
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   189
#BRAND: custom preference overrides.
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   190
#BRAND: It's also possible to drop files in /usr/lib/firefox/searchplugins
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   191
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   192
%description branding-upstream
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   193
This package provides upstream look and feel for MozillaFirefox.
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   194
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   195
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   196
%if %crashreporter
334
1256d8842872 update to version 7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 327
diff changeset
   197
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   198
%package buildsymbols
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   199
Summary:        Breakpad buildsymbols for %{name}
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   200
Group:          Development/Debug
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   201
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   202
%description buildsymbols
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   203
This subpackage contains the Breakpad created and compatible debugging
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   204
symbols meant for upload to Mozilla's crash collector database.
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   205
%endif
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   206
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   207
%prep
155
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   208
%setup -q -n mozilla -b 7 -b 10
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   209
cd $RPM_BUILD_DIR/mozilla
198
447791e42c9b Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 196
diff changeset
   210
%patch1 -p1
447791e42c9b Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 196
diff changeset
   211
%patch2 -p1
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   212
%patch3 -p1
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   213
%patch4 -p1
398
937669e1c537 ported and reenabled KDE integration (bnc#746591)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 395
diff changeset
   214
%patch5 -p1
339
db8b891eeb1e locale should always match the system one in a package environment
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 337
diff changeset
   215
%patch6 -p1
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   216
%patch7 -p1
340
aabcc7895695 update to version 8.0b1 (just merged stuff; build might still fail)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 337
diff changeset
   217
%patch8 -p1
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   218
%patch9 -p1
340
aabcc7895695 update to version 8.0b1 (just merged stuff; build might still fail)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 337
diff changeset
   219
%if %suse_version < 1120
341
a90633075f60 merge from firefox7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 340 339
diff changeset
   220
%patch11 -p1
285
0287f70d86e9 SLE11 compatibility:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 283
diff changeset
   221
%endif
438
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
   222
#%patch12 -p1
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
   223
#%patch13 -p1
457
0c2249d015b6 fixed ARM build
Adrian Schr?ter <adrian@suse.de>
parents: 456
diff changeset
   224
%patch15 -p1
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   225
#
438
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
   226
%patch30 -p1
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
   227
%if %suse_version >= 1110
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   228
%patch31 -p1
12
1f7c3dc01e1c Prepare MozillaFirefox for KDE integration
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 5
diff changeset
   229
%endif
223
4555a5d0d661 patch reorganization
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 221
diff changeset
   230
%if %suse_version >= 1140
438
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
   231
%patch32 -p1
223
4555a5d0d661 patch reorganization
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 221
diff changeset
   232
%endif
438
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
   233
%patch33 -p1
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
   234
%patch34 -p1
7d934b2f5014 rebased and removed upstreamed and obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 435
diff changeset
   235
%patch35 -p1
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   236
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   237
%build
276
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 272
diff changeset
   238
# no need to add build time to binaries
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 272
diff changeset
   239
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 272
diff changeset
   240
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 272
diff changeset
   241
TIME="\"$(date -d "${modified}" "+%%R")\""
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 272
diff changeset
   242
find . -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} +
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 272
diff changeset
   243
#
398
937669e1c537 ported and reenabled KDE integration (bnc#746591)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 395
diff changeset
   244
kdehelperversion=$(cat toolkit/xre/nsKDEUtils.cpp | grep '#define KMOZILLAHELPER_VERSION' | cut -d ' ' -f 3)
937669e1c537 ported and reenabled KDE integration (bnc#746591)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 395
diff changeset
   245
if test "$kdehelperversion" != %{kde_helper_version}; then
937669e1c537 ported and reenabled KDE integration (bnc#746591)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 395
diff changeset
   246
  echo fix kde helper version in the .spec file
937669e1c537 ported and reenabled KDE integration (bnc#746591)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 395
diff changeset
   247
  exit 1
937669e1c537 ported and reenabled KDE integration (bnc#746591)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 395
diff changeset
   248
fi
279
eb9e33036fb4 update to 5.0b6
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 277
diff changeset
   249
source %{SOURCE5}
eb9e33036fb4 update to 5.0b6
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 277
diff changeset
   250
export MOZ_SOURCE_STAMP=$REV
eb9e33036fb4 update to 5.0b6
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 277
diff changeset
   251
export SOURCE_REPO=$REPO
eb9e33036fb4 update to 5.0b6
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 277
diff changeset
   252
export MOZ_SOURCE_REPO=$REPO
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   253
export MOZ_BUILD_DATE=%{releasedate}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   254
export MOZILLA_OFFICIAL=1
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   255
export BUILD_OFFICIAL=1
344
880a90eb0f92 enable telemetry opt-in prompt
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 339
diff changeset
   256
export MOZ_TELEMETRY_REPORTING=1
196
32e34c82a3df Remove searchplugins for langpacks for now until they can be loaded through chrome (bmo#601899)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 192
diff changeset
   257
export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing"
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   258
%ifarch ppc64
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   259
export CFLAGS="$CFLAGS -mminimal-toc"
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   260
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   261
export CXXFLAGS="$CFLAGS"
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   262
export MOZCONFIG=$RPM_BUILD_DIR/mozconfig
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   263
cat << EOF > $MOZCONFIG
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   264
mk_add_options MOZILLA_OFFICIAL=1
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   265
mk_add_options BUILD_OFFICIAL=1
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   266
mk_add_options MOZ_MAKE_FLAGS=%{?jobs:-j%jobs}
155
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   267
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   268
. \$topsrcdir/browser/config/mozconfig
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   269
ac_add_options --prefix=%{_prefix}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   270
ac_add_options --libdir=%{_libdir}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   271
ac_add_options --sysconfdir=%{_sysconfdir}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   272
ac_add_options --mandir=%{_mandir}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   273
ac_add_options --includedir=%{_includedir}
83
d06e40a1d7de Firefox 3.7a building correctly
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 81
diff changeset
   274
ac_add_options --with-system-nspr
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   275
ac_add_options --with-system-nss
155
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   276
ac_add_options --with-l10n-base=$RPM_BUILD_DIR/l10n
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   277
#ac_add_options --with-system-jpeg    # libjpeg-turbo is used internally
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   278
#ac_add_options --with-system-png     # doesn't work because of missing APNG support
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   279
ac_add_options --with-system-zlib
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   280
ac_add_options --disable-installer
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   281
ac_add_options --disable-updater
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   282
ac_add_options --disable-tests
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   283
ac_add_options --disable-debug
283
418b5f502ff2 update to 5.0final
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 282
diff changeset
   284
ac_add_options --enable-startup-notification
265
f9de3817b442 build fixes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 264
diff changeset
   285
#ac_add_options --enable-chrome-format=jar
409
ff30593d2daa switch to 12.0dev
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 408
diff changeset
   286
ac_add_options --enable-update-channel=%{update_channel}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   287
EOF
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   288
%if %suse_version > 1130
101
1678af7b5183 Fix l10n build of Firefox
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 99
diff changeset
   289
cat << EOF >> $MOZCONFIG
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   290
ac_add_options --disable-gnomevfs
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   291
ac_add_options --enable-gio
101
1678af7b5183 Fix l10n build of Firefox
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 99
diff changeset
   292
EOF
1678af7b5183 Fix l10n build of Firefox
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 99
diff changeset
   293
%endif
444
6525a220a096 fixed build with changed install directories (defaults/pref -> defaults/preferences)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 438
diff changeset
   294
%if %suse_version > 1140
6525a220a096 fixed build with changed install directories (defaults/pref -> defaults/preferences)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 438
diff changeset
   295
cat << EOF >> $MOZCONFIG
6525a220a096 fixed build with changed install directories (defaults/pref -> defaults/preferences)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 438
diff changeset
   296
ac_add_options --enable-gstreamer
6525a220a096 fixed build with changed install directories (defaults/pref -> defaults/preferences)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 438
diff changeset
   297
EOF
6525a220a096 fixed build with changed install directories (defaults/pref -> defaults/preferences)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 438
diff changeset
   298
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   299
%if %branding
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   300
cat << EOF >> $MOZCONFIG
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   301
ac_add_options --enable-official-branding
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   302
EOF
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   303
%endif
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   304
%if %suse_version > 1110
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   305
cat << EOF >> $MOZCONFIG
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   306
ac_add_options --enable-libproxy
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   307
EOF
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   308
%endif
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   309
%if ! %crashreporter
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   310
cat << EOF >> $MOZCONFIG
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   311
ac_add_options --disable-crashreporter
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   312
EOF
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   313
%endif
371
ead21d122ed0 introduce --disable-neon option and use on ARM
Joop Boonen <joop.boonen@opensuse.org>
parents: 370
diff changeset
   314
# Disable neon for arm as it does not build correctly
ead21d122ed0 introduce --disable-neon option and use on ARM
Joop Boonen <joop.boonen@opensuse.org>
parents: 370
diff changeset
   315
%ifarch %arm
ead21d122ed0 introduce --disable-neon option and use on ARM
Joop Boonen <joop.boonen@opensuse.org>
parents: 370
diff changeset
   316
cat << EOF >> $MOZCONFIG
ead21d122ed0 introduce --disable-neon option and use on ARM
Joop Boonen <joop.boonen@opensuse.org>
parents: 370
diff changeset
   317
ac_add_options --disable-neon
ead21d122ed0 introduce --disable-neon option and use on ARM
Joop Boonen <joop.boonen@opensuse.org>
parents: 370
diff changeset
   318
EOF
ead21d122ed0 introduce --disable-neon option and use on ARM
Joop Boonen <joop.boonen@opensuse.org>
parents: 370
diff changeset
   319
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   320
make -f client.mk build
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   321
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   322
%install
155
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   323
cd $RPM_BUILD_DIR/obj
279
eb9e33036fb4 update to 5.0b6
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 277
diff changeset
   324
source %{SOURCE5}
eb9e33036fb4 update to 5.0b6
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 277
diff changeset
   325
export MOZ_SOURCE_STAMP=$REV
eb9e33036fb4 update to 5.0b6
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 277
diff changeset
   326
export MOZ_SOURCE_REPO=$REPO
444
6525a220a096 fixed build with changed install directories (defaults/pref -> defaults/preferences)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 438
diff changeset
   327
make -C browser/installer STRIP=/bin/true MOZ_PKG_FATAL_WARNINGS=0
418
ecd5bb5744dc update to 12.0b3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 414
diff changeset
   328
#DEBUG (break the build if searchplugins are missing / temporary)
ecd5bb5744dc update to 12.0b3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 414
diff changeset
   329
grep amazondotcom dist/firefox/omni.ja
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   330
# copy tree into RPM_BUILD_ROOT
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   331
mkdir -p $RPM_BUILD_ROOT/%{progdir}
219
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   332
cp -rf $RPM_BUILD_DIR/obj/dist/firefox/* $RPM_BUILD_ROOT%{progdir}
228
9ba8fb8909c4 fix GIO helper app launch (bnc#672903) (mozilla-gio-launch-uri.patch)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 226
diff changeset
   333
mkdir -p $RPM_BUILD_ROOT/%{progdir}/distribution/extensions
198
447791e42c9b Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 196
diff changeset
   334
mkdir -p $RPM_BUILD_ROOT%{progdir}/searchplugins
327
34013ee9fafd fixed loading of kde.js under KDE (bnc#718311)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 312
diff changeset
   335
# install kde.js
34013ee9fafd fixed loading of kde.js under KDE (bnc#718311)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 312
diff changeset
   336
%if %suse_version >= 1110
462
2d86bdb4277f 14.0b6 (Aurora->Beta)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 457
diff changeset
   337
install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{progdir}/defaults/pref/kde.js
356
30a00f382aed version 9.0b2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 355
diff changeset
   338
# make sure that instantApply is true by default
30a00f382aed version 9.0b2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 355
diff changeset
   339
# (TODO: mozilla-kde.patch needs to be improved to really not load kde.js in non-KDE envs)
462
2d86bdb4277f 14.0b6 (Aurora->Beta)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 457
diff changeset
   340
echo 'pref("browser.preferences.instantApply", true);' > $RPM_BUILD_ROOT%{progdir}/defaults/pref/firefox.js
327
34013ee9fafd fixed loading of kde.js under KDE (bnc#718311)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 312
diff changeset
   341
%endif
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   342
# install add-plugins.sh
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   343
sed "s:%%PROGDIR:%{progdir}:g" \
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   344
  %{SOURCE13} > $RPM_BUILD_ROOT%{progdir}/add-plugins.sh
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   345
chmod 755 $RPM_BUILD_ROOT%{progdir}/add-plugins.sh
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   346
# install additional locales
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   347
%if %localize
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   348
rm -f %{_tmppath}/translations.*
83
d06e40a1d7de Firefox 3.7a building correctly
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 81
diff changeset
   349
touch %{_tmppath}/translations.{common,other}
157
6f59409302d1 switching back to jar chrome format (instead of omni)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 155
diff changeset
   350
for locale in $(awk '{ print $1; }' ../mozilla/browser/locales/shipped-locales); do
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   351
  case $locale in
281
0bdc059f7280 update for 5.0b7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 279
diff changeset
   352
   ja-JP-mac|en-US)
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   353
	;;
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   354
   *)
155
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   355
   	pushd $RPM_BUILD_DIR/compare-locales
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   356
	PYTHONPATH=lib \
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   357
	  scripts/compare-locales -m ../l10n-merged/$locale \
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   358
	  ../mozilla/browser/locales/l10n.ini ../l10n $locale
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   359
	popd
172
78d410fd888a fixed compare-locales for toolkit locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 171
diff changeset
   360
	LOCALE_MERGEDIR=$RPM_BUILD_DIR/l10n-merged/$locale \
171
49162ac3619c build complete langpacks to get install.rdf
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 170
diff changeset
   361
  	make -C browser/locales langpack-$locale
342
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   362
	cp -rL dist/xpi-stage/locale-$locale \
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   363
	       $RPM_BUILD_ROOT%{progdir}/extensions/langpack-$locale@firefox.mozilla.org
468
22a70eb49a43 Aurora 15 build1 (20120609)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 467
diff changeset
   364
	rm $RPM_BUILD_ROOT%{progdir}/extensions/langpack-$locale@firefox.mozilla.org/chrome/.mkdir.done
418
ecd5bb5744dc update to 12.0b3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 414
diff changeset
   365
	# remove prefs, profile defaults, and hyphenation from langpack
192
bb4213ee70c8 clean up general.useragent.locale settings
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 191
diff changeset
   366
	rm -rf $RPM_BUILD_ROOT%{progdir}/extensions/langpack-$locale@firefox.mozilla.org/defaults
418
ecd5bb5744dc update to 12.0b3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 414
diff changeset
   367
	rm -rf $RPM_BUILD_ROOT%{progdir}/extensions/langpack-$locale@firefox.mozilla.org/hyphenation
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   368
	# check against the fixed common list and sort into the right filelist
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   369
	_matched=0
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   370
	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
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   371
	  [ "$_match" = "$locale" ] && _matched=1
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   372
	done
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   373
	[ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other
169
cba7c6321c84 snapshot 20101003; packaging langpacks
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 164
diff changeset
   374
  	echo %{progdir}/extensions/langpack-$locale@firefox.mozilla.org \
cba7c6321c84 snapshot 20101003; packaging langpacks
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 164
diff changeset
   375
	  >> %{_tmppath}/translations.$_l10ntarget
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   376
  esac
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   377
done
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   378
%endif
342
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   379
# remove some executable permissions
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   380
find $RPM_BUILD_ROOT%{progdir} \
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   381
     -name "*.js" -o \
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   382
     -name "*.jsm" -o \
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   383
     -name "*.rdf" -o \
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   384
     -name "*.properties" -o \
356
30a00f382aed version 9.0b2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 355
diff changeset
   385
     -name "*.dtd" -o \
30a00f382aed version 9.0b2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 355
diff changeset
   386
     -name "*.txt" -o \
30a00f382aed version 9.0b2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 355
diff changeset
   387
     -name "*.xml" -o \
30a00f382aed version 9.0b2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 355
diff changeset
   388
     -name "*.css" | xargs chmod a-x
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   389
# overwrite the mozilla start-script and link it to /usr/bin
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   390
mkdir --parents $RPM_BUILD_ROOT/usr/bin
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   391
sed "s:%%PREFIX:%{_prefix}:g
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   392
s:%%PROGDIR:%{progdir}:g
265
f9de3817b442 build fixes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 264
diff changeset
   393
s:%%APPNAME:firefox:g
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   394
s:%%PROFILE:.mozilla/firefox:g" \
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   395
  %{SOURCE3} > $RPM_BUILD_ROOT%{progdir}/%{progname}.sh
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   396
chmod 755 $RPM_BUILD_ROOT%{progdir}/%{progname}.sh
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   397
ln -sf ../..%{progdir}/%{progname}.sh $RPM_BUILD_ROOT%{_bindir}/%{progname}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   398
# desktop definition
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   399
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   400
install -m 644 %{SOURCE1} \
213
b2978eba3a92 rename desktop file for 11.4 and above (bnc#664211)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 210
diff changeset
   401
   $RPM_BUILD_ROOT%{_datadir}/applications/%{desktop_file_name}.desktop
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   402
# additional mime-types
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   403
mkdir -p $RPM_BUILD_ROOT%{_datadir}/mime/packages
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   404
cp %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/mime/packages/%{progname}.xml
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   405
# install man-page
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   406
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/
198
447791e42c9b Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 196
diff changeset
   407
cp %{SOURCE11} $RPM_BUILD_ROOT%{_mandir}/man1/%{progname}.1
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   408
##########
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   409
# ADDONS
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   410
#
225
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   411
mkdir -p $RPM_BUILD_ROOT%{_datadir}/mozilla/extensions/%{firefox_appid}
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   412
mkdir -p $RPM_BUILD_ROOT%{_libdir}/mozilla/extensions/%{firefox_appid}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   413
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps/
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   414
ln -sf %{progdir}/icons/mozicon128.png $RPM_BUILD_ROOT/usr/share/pixmaps/%{progname}.png
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   415
ln -sf %{progdir}/icons/mozicon128.png $RPM_BUILD_ROOT/usr/share/pixmaps/%{progname}-gnome.png
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   416
%if %branding
252
5477a696d8f6 install all icons
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 247
diff changeset
   417
for size in 16 22 24 32 48 256; do
269
9ec311cdd7c8 no official branding yet
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 265
diff changeset
   418
%else
9ec311cdd7c8 no official branding yet
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 265
diff changeset
   419
for size in 16 32 48; do
9ec311cdd7c8 no official branding yet
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 265
diff changeset
   420
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   421
  mkdir -p $RPM_BUILD_ROOT%{gnome_dir}/share/icons/hicolor/${size}x${size}/apps/
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   422
  ln -sf %{progdir}/chrome/icons/default/default$size.png \
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   423
         $RPM_BUILD_ROOT%{gnome_dir}/share/icons/hicolor/${size}x${size}/apps/%{progname}.png
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   424
done
216
0467f2bc54bc Remove Ximian references from desktop file
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 215
diff changeset
   425
%suse_update_desktop_file %{desktop_file_name} Network WebBrowser GTK
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   426
# excludes
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   427
rm -f $RPM_BUILD_ROOT%{progdir}/updater.ini
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   428
rm -f $RPM_BUILD_ROOT%{progdir}/removed-files
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   429
rm -f $RPM_BUILD_ROOT%{progdir}/README.txt
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   430
rm -f $RPM_BUILD_ROOT%{progdir}/old-homepage-default.properties
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   431
rm -f $RPM_BUILD_ROOT%{progdir}/run-mozilla.sh
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   432
rm -f $RPM_BUILD_ROOT%{progdir}/LICENSE
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   433
rm -f $RPM_BUILD_ROOT%{progdir}/precomplete
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   434
rm -f $RPM_BUILD_ROOT%{progdir}/dictionaries/en-US*
410
0af1b0003b9f working 12.0b1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 409
diff changeset
   435
rm -f $RPM_BUILD_ROOT%{progdir}/update-settings.ini
225
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   436
# devel
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   437
mkdir -p %{buildroot}%{_bindir}
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   438
install -m 755 %SOURCE12 %{buildroot}%{_bindir}
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   439
# inspired by mandriva
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   440
mkdir -p %{buildroot}/etc/rpm
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   441
cat <<'FIN' >%{buildroot}/etc/rpm/macros.%{progname}
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   442
# Macros from %{name} package
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   443
%%firefox_major              %{major}
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   444
%%firefox_version            %{version}
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   445
%%firefox_mainver            %{mainver}
238
d537c4a65693 fixed rpm macros (bnc#679950)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 237
diff changeset
   446
%%firefox_mozillapath        %%{_libdir}/%{progname}
d537c4a65693 fixed rpm macros (bnc#679950)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 237
diff changeset
   447
%%firefox_pluginsdir         %%{_libdir}/browser-plugins
225
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   448
%%firefox_appid              \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   449
%%firefox_extdir             %%(if [ "%%_target_cpu" = "noarch" ]; then echo %%{_datadir}/mozilla/extensions/%%{firefox_appid}; else echo %%{_libdir}/mozilla/extensions/%%{firefox_appid}; fi)
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   450
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   451
%%firefox_ext_install() \
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   452
   extdir="%%{buildroot}%%{firefox_extdir}/`mozilla-get-app-id '%%1'`" \
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   453
   mkdir -p "$extdir" \
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   454
   %%{__unzip} -q -d "$extdir" "%%1" \
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   455
   %%{nil}
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   456
FIN
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   457
# just dumping an xpi file there doesn't work...
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   458
#%%firefox_ext_install() \
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   459
#       extdir="%%{buildroot}%%{firefox_extdir}" \
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   460
#       mkdir -p "$extdir" \
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   461
#       cp "%%1" "$extdir" \
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   462
#       %%{nil}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   463
# fdupes
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   464
%fdupes $RPM_BUILD_ROOT%{progdir}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   465
%fdupes $RPM_BUILD_ROOT%{_datadir}
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   466
# create breakpad debugsymbols
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   467
%if %crashreporter
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   468
SYMBOLS_NAME="firefox-%{version}-%{release}.%{_arch}-%{suse_version}-symbols"
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   469
make buildsymbols \
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   470
  SYMBOL_INDEX_NAME="$SYMBOLS_NAME.txt" \
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   471
  SYMBOL_FULL_ARCHIVE_BASENAME="$SYMBOLS_NAME-full" \
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   472
  SYMBOL_ARCHIVE_BASENAME="$SYMBOLS_NAME"
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   473
if [ -e dist/*symbols.zip ]; then
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   474
  mkdir -p $RPM_BUILD_ROOT%{_datadir}/mozilla/
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   475
  cp dist/*symbols.zip $RPM_BUILD_ROOT%{_datadir}/mozilla/
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   476
fi
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   477
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   478
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   479
%clean
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   480
rm -rf $RPM_BUILD_ROOT
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   481
%if %localize
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   482
rm -rf %{_tmppath}/translations.*
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   483
%endif
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   484
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   485
%post
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   486
# update mime and desktop database
219
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   487
%if %suse_version > 1130
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   488
%mime_database_post
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   489
%desktop_database_post
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   490
%icon_theme_cache_post
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   491
%else
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   492
if [ -f usr/bin/update-mime-database ] ; then
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   493
  usr/bin/update-mime-database %{_datadir}/mime > /dev/null || :
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   494
fi
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   495
if [ -f usr/bin/update-desktop-database ] ; then
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   496
  usr/bin/update-desktop-database > /dev/null || :
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   497
fi
219
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   498
%endif
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   499
%{progdir}/add-plugins.sh > /dev/null 2>&1
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   500
exit 0
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   501
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   502
%postun
219
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   503
%if %suse_version > 1130
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   504
%icon_theme_cache_postun
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   505
%desktop_database_postun
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   506
%mime_database_postun
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   507
%else
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   508
if [ -f usr/bin/update-mime-database ] ; then
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   509
  usr/bin/update-mime-database %{_datadir}/mime > /dev/null || :
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   510
fi
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   511
if [ -f usr/bin/update-desktop-database ] ; then
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   512
  usr/bin/update-desktop-database > /dev/null || :
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   513
fi
219
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   514
%endif
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   515
exit 0
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   516
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   517
%posttrans
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   518
[ -e %{progdir}/add-plugins.sh ] && \
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   519
  %{progdir}/add-plugins.sh > /dev/null 2>&1
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   520
exit 0
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   521
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   522
%preun
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   523
rm -f %{progdir}/dictionaries/*
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   524
exit 0
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   525
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   526
%files
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   527
%defattr(-,root,root)
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   528
%dir %{progdir}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   529
%dir %{progdir}/chrome/
221
488440b896fe fixed testpilot packaging
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 220
diff changeset
   530
%dir %{progdir}/distribution/
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   531
%{progdir}/chrome/icons
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   532
%{progdir}/components/
157
6f59409302d1 switching back to jar chrome format (instead of omni)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 155
diff changeset
   533
%{progdir}/defaults/
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   534
%{progdir}/dictionaries/
169
cba7c6321c84 snapshot 20101003; packaging langpacks
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 164
diff changeset
   535
%dir %{progdir}/extensions/
221
488440b896fe fixed testpilot packaging
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 220
diff changeset
   536
%{progdir}/distribution/extensions/
169
cba7c6321c84 snapshot 20101003; packaging langpacks
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 164
diff changeset
   537
%{progdir}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   538
%{progdir}/icons/
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   539
%{progdir}/searchplugins/
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   540
%attr(755,root,root) %{progdir}/%{progname}.sh
464
1fd4a257e727 firefox is no shell wrapper anymore but rather (almost?) a copy of firefox-bin and therefore package it
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 462
diff changeset
   541
%{progdir}/firefox
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   542
%{progdir}/firefox-bin
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   543
%{progdir}/add-plugins.sh
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   544
%{progdir}/application.ini
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   545
%{progdir}/blocklist.xml
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   546
%{progdir}/dependentlibs.list
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   547
%{progdir}/*.so
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   548
%{progdir}/mozilla-xremote-client
368
8891dd9439a1 finalized Firefox 10.0b1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 367
diff changeset
   549
%{progdir}/omni.ja
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   550
%{progdir}/platform.ini
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   551
%{progdir}/plugin-container
468
22a70eb49a43 Aurora 15 build1 (20120609)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 467
diff changeset
   552
%{progdir}/webapprt-stub
22a70eb49a43 Aurora 15 build1 (20120609)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 467
diff changeset
   553
%{progdir}/webapprt/
117
565d666e22a1 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 103
diff changeset
   554
%if %crashreporter
34
2d77a25d185f Add firefox-crashreporter.patch to fix Firefox' application.ini
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 33
diff changeset
   555
%{progdir}/crashreporter-override.ini
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   556
%{progdir}/crashreporter
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   557
%{progdir}/crashreporter.ini
270
785d28fc6d4d fix PPC build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 269
diff changeset
   558
%{progdir}/Throbber-small.gif
117
565d666e22a1 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 103
diff changeset
   559
%endif
134
e847979ff6db Spec file adoptions to build correctly
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 131
diff changeset
   560
%{progdir}/chrome.manifest
213
b2978eba3a92 rename desktop file for 11.4 and above (bnc#664211)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 210
diff changeset
   561
%{_datadir}/applications/%{desktop_file_name}.desktop
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   562
%{_datadir}/mime/packages/%{progname}.xml
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   563
%{_datadir}/pixmaps/firefox*
225
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   564
%dir %{_datadir}/mozilla
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   565
%dir %{_datadir}/mozilla/extensions
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   566
%dir %{_datadir}/mozilla/extensions/%{firefox_appid}
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   567
%dir %{_libdir}/mozilla
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   568
%dir %{_libdir}/mozilla/extensions
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   569
%dir %{_libdir}/mozilla/extensions/%{firefox_appid}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   570
%{gnome_dir}/share/icons/hicolor/
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   571
%{_bindir}/%{progname}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   572
%doc %{_mandir}/man1/%{progname}.1.gz
34
2d77a25d185f Add firefox-crashreporter.patch to fix Firefox' application.ini
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 33
diff changeset
   573
225
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   574
%files devel
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   575
%defattr(-,root,root)
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   576
%{_bindir}/mozilla-get-app-id
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   577
%config /etc/rpm/macros.%{progname}
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   578
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   579
%if %localize
334
1256d8842872 update to version 7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 327
diff changeset
   580
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   581
%files translations-common -f %{_tmppath}/translations.common
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   582
%defattr(-,root,root)
46
c743908ffe6f Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 36
diff changeset
   583
%dir %{progdir}
171
49162ac3619c build complete langpacks to get install.rdf
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 170
diff changeset
   584
%dir %{progdir}/extensions/
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   585
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   586
%files translations-other -f %{_tmppath}/translations.other
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   587
%defattr(-,root,root)
46
c743908ffe6f Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 36
diff changeset
   588
%dir %{progdir}
171
49162ac3619c build complete langpacks to get install.rdf
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 170
diff changeset
   589
%dir %{progdir}/extensions/
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   590
%endif
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   591
286
b1d254616456 reenable branding-upstream package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 285
diff changeset
   592
# this package does not need to provide files but is needed to fulfill
b1d254616456 reenable branding-upstream package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 285
diff changeset
   593
# requirements if no other branding package is to be installed
334
1256d8842872 update to version 7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 327
diff changeset
   594
286
b1d254616456 reenable branding-upstream package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 285
diff changeset
   595
%files branding-upstream
b1d254616456 reenable branding-upstream package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 285
diff changeset
   596
%defattr(-,root,root)
b1d254616456 reenable branding-upstream package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 285
diff changeset
   597
%dir %{progdir}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   598
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   599
%if %crashreporter
334
1256d8842872 update to version 7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 327
diff changeset
   600
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   601
%files buildsymbols
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   602
%defattr(-,root,root)
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   603
%{_datadir}/mozilla/*.zip
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   604
%endif
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   605
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   606
%changelog