MozillaFirefox/MozillaFirefox.spec
author Wolfgang Rosenauer <wr@rosenauer.org>
Thu, 16 Oct 2014 21:20:22 +0200
changeset 778 9483ff78d5a0
parent 777 f1c5ccf4d1a7
child 783 449ace3f3f72
permissions -rw-r--r--
merge from firefox33 preparation for Firefox 34
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
#
699
f810fbe5fece update to 27.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 696
diff changeset
     4
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
f810fbe5fece update to 27.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 696
diff changeset
     5
#               2006-2014 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
776
fd46c2b70724 prepare 33.0 final release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 774
diff changeset
    20
%define major 33
778
9483ff78d5a0 merge from firefox33
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
    21
%define mainver %major.99
9483ff78d5a0 merge from firefox33
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
    22
%define update_channel beta
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    23
719
8d80a56bb0a8 disable branding
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 718
diff changeset
    24
%if %suse_version > 1210
8d80a56bb0a8 disable branding
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 718
diff changeset
    25
%if %suse_version > 1310
8d80a56bb0a8 disable branding
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 718
diff changeset
    26
%define gstreamer_ver 1.0
8d80a56bb0a8 disable branding
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 718
diff changeset
    27
%define gstreamer 1
8d80a56bb0a8 disable branding
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 718
diff changeset
    28
%else
645
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 643
diff changeset
    29
%define gstreamer_ver 0.10
719
8d80a56bb0a8 disable branding
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 718
diff changeset
    30
%endif
628
c94a8d7d28ae use correct GStreamer build requirements and configure options
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 625
diff changeset
    31
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    32
126
7b356805729c remove the 4 suffix (no parallel installation starting with beta4)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 123
diff changeset
    33
Name:           MozillaFirefox
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    34
BuildRequires:  Mesa-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    35
BuildRequires:  autoconf213
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    36
BuildRequires:  dbus-1-glib-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    37
BuildRequires:  fdupes
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    38
BuildRequires:  gcc-c++
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    39
BuildRequires:  libcurl-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    40
BuildRequires:  libgnomeui-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    41
BuildRequires:  libidl-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    42
BuildRequires:  libnotify-devel
716
cef565f1c325 update to Firefox 29.0b7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 715
diff changeset
    43
BuildRequires:  makeinfo
740
2d2a5e176fa7 require python-devel not only python
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 738
diff changeset
    44
BuildRequires:  python-devel
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    45
BuildRequires:  startup-notification-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    46
BuildRequires:  unzip
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    47
BuildRequires:  update-desktop-files
401
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 400
diff changeset
    48
BuildRequires:  xorg-x11-libXt-devel
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    49
BuildRequires:  yasm
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    50
BuildRequires:  zip
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    51
%if %suse_version > 1110
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    52
BuildRequires:  libiw-devel
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
    53
BuildRequires:  libproxy-devel
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    54
%else
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    55
BuildRequires:  wireless-tools
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    56
%endif
763
9f6de8c8a5c5 prepare Firefox 33beta cycle
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 761
diff changeset
    57
BuildRequires:  mozilla-nspr-devel >= 4.10.7
778
9483ff78d5a0 merge from firefox33
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
    58
BuildRequires:  mozilla-nss-devel >= 3.17.2
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
    59
BuildRequires:  nss-shared-helper-devel
703
c4aab80e472f Firefox 28.0beta1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 699
diff changeset
    60
BuildRequires:  pkgconfig(libpulse)
659
fa96cf6ffd14 Aurora 24 update
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 653
diff changeset
    61
%if %suse_version > 1210
628
c94a8d7d28ae use correct GStreamer build requirements and configure options
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 625
diff changeset
    62
BuildRequires:  pkgconfig(gstreamer-%gstreamer_ver)
c94a8d7d28ae use correct GStreamer build requirements and configure options
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 625
diff changeset
    63
BuildRequires:  pkgconfig(gstreamer-app-%gstreamer_ver)
c94a8d7d28ae use correct GStreamer build requirements and configure options
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 625
diff changeset
    64
BuildRequires:  pkgconfig(gstreamer-plugins-base-%gstreamer_ver)
719
8d80a56bb0a8 disable branding
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 718
diff changeset
    65
%if 0%{?gstreamer} == 1
8d80a56bb0a8 disable branding
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 718
diff changeset
    66
Requires:       libgstreamer-1_0-0
718
6cb1ac7cd223 prepare Aurora 30
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 716
diff changeset
    67
Recommends:     gstreamer-fluendo-mp3
719
8d80a56bb0a8 disable branding
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 718
diff changeset
    68
Recommends:     gstreamer-plugin-libav
8d80a56bb0a8 disable branding
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 718
diff changeset
    69
%else
8d80a56bb0a8 disable branding
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 718
diff changeset
    70
Requires:       libgstreamer-0_10-0
8d80a56bb0a8 disable branding
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 718
diff changeset
    71
Recommends:     gstreamer-0_10-fluendo-mp3
8d80a56bb0a8 disable branding
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 718
diff changeset
    72
Recommends:     gstreamer-0_10-plugins-ffmpeg
8d80a56bb0a8 disable branding
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 718
diff changeset
    73
%endif
444
6525a220a096 fixed build with changed install directories (defaults/pref -> defaults/preferences)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 438
diff changeset
    74
%endif
368
8891dd9439a1 finalized Firefox 10.0b1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 367
diff changeset
    75
Version:        %{mainver}
375
d75cd0dac058 final 10.0 updates (changelog)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 373
diff changeset
    76
Release:        0
778
9483ff78d5a0 merge from firefox33
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
    77
%define         releasedate 2014101500
401
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 400
diff changeset
    78
Provides:       firefox = %{mainver}
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 400
diff changeset
    79
Provides:       firefox = %{version}-%{release}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    80
Provides:       web_browser
404
5f3bccaf6d52 provide browser(npapi)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 401
diff changeset
    81
Provides:       browser(npapi)
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
    82
# 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
    83
# having a hard requirement on the kde4 package
538
be682f8c9361 revert API version change for kmozillahelper
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 536
diff changeset
    84
%define kde_helper_version 6
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
    85
Provides:       mozilla-kde4-version = %{kde_helper_version}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    86
Summary:        Mozilla Firefox Web Browser
456
7b9ab7747a11 License change to MPL-2.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 447
diff changeset
    87
License:        MPL-2.0
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    88
Group:          Productivity/Networking/Web/Browsers
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    89
Url:            http://www.mozilla.org/
699
f810fbe5fece update to 27.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 696
diff changeset
    90
Source:         firefox-%{version}-source.tar.xz
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    91
Source1:        MozillaFirefox.desktop
86
f2a830880862 Install as firefox4 in parallel to unversioned
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 84
diff changeset
    92
Source2:        MozillaFirefox-rpmlintrc
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    93
Source3:        mozilla.sh.in
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    94
Source4:        find-external-requires.sh
279
eb9e33036fb4 update to 5.0b6
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 277
diff changeset
    95
Source5:        source-stamp.txt
12
1f7c3dc01e1c Prepare MozillaFirefox for KDE integration
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 5
diff changeset
    96
Source6:        kde.js
699
f810fbe5fece update to 27.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 696
diff changeset
    97
Source7:        l10n-%{version}.tar.xz
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    98
Source8:        firefox-mimeinfo.xml
543
24c3eafd49a1 fixed kde.js preferences
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 541
diff changeset
    99
Source9:        firefox.js
699
f810fbe5fece update to 27.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 696
diff changeset
   100
Source10:       compare-locales.tar.xz
198
447791e42c9b Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 196
diff changeset
   101
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
   102
Source12:       mozilla-get-app-id
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   103
Source13:       add-plugins.sh.in
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   104
Source14:       create-tar.sh
774
f61bd1cd52c2 added basic appstream appdata information
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 773
diff changeset
   105
Source15:       firefox-appdata.xml
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   106
# Gecko/Toolkit
198
447791e42c9b Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 196
diff changeset
   107
Patch1:         toolkit-download-folder.patch
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   108
Patch2:         mozilla-nongnome-proxies.patch
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   109
Patch3:         mozilla-prefer_plugin_pref.patch
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   110
Patch4:         mozilla-shared-nss-db.patch
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   111
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
   112
Patch6:         mozilla-preferences.patch
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   113
Patch7:         mozilla-language.patch
341
a90633075f60 merge from firefox7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 340 339
diff changeset
   114
Patch8:         mozilla-ntlm-full-path.patch
a90633075f60 merge from firefox7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 340 339
diff changeset
   115
Patch9:         mozilla-repo.patch
471
73b631ab214b adding fixes to spec file and changelog
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 468
diff changeset
   116
Patch10:        mozilla-sle11.patch
716
cef565f1c325 update to Firefox 29.0b7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 715
diff changeset
   117
Patch11:        mozilla-icu-strncat.patch
563
8349c239bff9 preparing Aurora 18
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 552
diff changeset
   118
Patch12:        mozilla-arm-disable-edsp.patch
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   119
# Firefox/browser
715
e1c226a4de34 AArch64 porting
Dirk M?ller <dmueller@suse.com>
parents: 714
diff changeset
   120
Patch101:       firefox-kde.patch
e1c226a4de34 AArch64 porting
Dirk M?ller <dmueller@suse.com>
parents: 714
diff changeset
   121
Patch102:       firefox-kde-114.patch
e1c226a4de34 AArch64 porting
Dirk M?ller <dmueller@suse.com>
parents: 714
diff changeset
   122
Patch103:       firefox-no-default-ualocale.patch
e1c226a4de34 AArch64 porting
Dirk M?ller <dmueller@suse.com>
parents: 714
diff changeset
   123
Patch104:       firefox-multilocale-chrome.patch
e1c226a4de34 AArch64 porting
Dirk M?ller <dmueller@suse.com>
parents: 714
diff changeset
   124
Patch105:       firefox-branded-icons.patch
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   125
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
46
c743908ffe6f Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 36
diff changeset
   126
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
   127
Requires(postun): shared-mime-info desktop-file-utils
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   128
Requires:       %{name}-branding > 20.0
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   129
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
   130
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
   131
Recommends:     libcanberra0
703
c4aab80e472f Firefox 28.0beta1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 699
diff changeset
   132
Recommends:     libpulse0
565
f6d567a99b67 bring back libproxy mozjs obsoletes for old distributions
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 563
diff changeset
   133
# libproxy's mozjs pacrunner crashes FF (bnc#759123)
f6d567a99b67 bring back libproxy mozjs obsoletes for old distributions
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 563
diff changeset
   134
%if %suse_version < 1220
f6d567a99b67 bring back libproxy mozjs obsoletes for old distributions
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 563
diff changeset
   135
Obsoletes:      libproxy1-pacrunner-mozjs <= 0.4.7
f6d567a99b67 bring back libproxy mozjs obsoletes for old distributions
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 563
diff changeset
   136
%endif
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
   137
%define firefox_appid \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   138
%define _use_internal_dependency_generator 0
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   139
%define __find_requires sh %{SOURCE4}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   140
%global provfind sh -c "grep -v '.so' | %__find_provides"
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   141
%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
   142
%define progname firefox
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   143
%define progdir %{_prefix}/%_lib/%{progname}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   144
%define gnome_dir     %{_prefix}
215
b84e98861887 change if logic a bit
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 214
diff changeset
   145
%if %suse_version > 1130
b84e98861887 change if logic a bit
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 214
diff changeset
   146
%define desktop_file_name firefox
b84e98861887 change if logic a bit
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 214
diff changeset
   147
%else
213
b2978eba3a92 rename desktop file for 11.4 and above (bnc#664211)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 210
diff changeset
   148
%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
   149
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   150
### build options
704
72225e57f863 update to 27.0.1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 699
diff changeset
   151
# Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys
72225e57f863 update to 27.0.1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 699
diff changeset
   152
# Note: these are for the openSUSE Firefox builds ONLY. For your own distribution,
72225e57f863 update to 27.0.1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 699
diff changeset
   153
# please get your own set of keys.
72225e57f863 update to 27.0.1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 699
diff changeset
   154
%define _google_api_key AIzaSyD1hTe85_a14kr1Ks8T3Ce75rvbR1_Dx7Q
751
8517d10e87ab prepare Beta 32
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 748
diff changeset
   155
%define branding 1
101
1678af7b5183 Fix l10n build of Firefox
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 99
diff changeset
   156
%define localize 1
715
e1c226a4de34 AArch64 porting
Dirk M?ller <dmueller@suse.com>
parents: 714
diff changeset
   157
%ifarch aarch64 ppc ppc64 ppc64le s390 s390x ia64 %arm
435
df9c4a6e84f8 update version/tree information for Aurora 14 cycle
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 425
diff changeset
   158
%define crashreporter 0
117
565d666e22a1 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 103
diff changeset
   159
%else
435
df9c4a6e84f8 update version/tree information for Aurora 14 cycle
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 425
diff changeset
   160
%define crashreporter 1
df9c4a6e84f8 update version/tree information for Aurora 14 cycle
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 425
diff changeset
   161
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   162
### build options end
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
%description
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   165
Mozilla Firefox is a standalone web browser, designed for standards
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   166
compliance and performance.  Its functionality can be enhanced via a
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   167
plethora of extensions.
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   168
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
   169
%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
   170
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
   171
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
   172
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
   173
Requires:       %{name} = %{version}
401
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 400
diff changeset
   174
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
   175
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
   176
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
   177
%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
   178
Development files for Firefox to make packaging of addons easier.
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   179
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   180
%if %localize
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   181
%package translations-common
585
5a44d417c9b5 prepare for Beta 18 phase
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 573
diff changeset
   182
Summary:        Common translations for Firefox
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
   183
Group:          System/Localization
672
2268d308dc15 minor polishing
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 669
diff changeset
   184
Provides:       locale(%{name}:ar;ca;cs;da;de;en_GB;el;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
   185
Requires:       %{name} = %{version}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   186
Obsoletes:      %{name}-translations < %{version}-%{release}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   187
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   188
%description translations-common
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   189
This package contains several common languages for the user interface
585
5a44d417c9b5 prepare for Beta 18 phase
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 573
diff changeset
   190
of Firefox.
5
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
%package translations-other
585
5a44d417c9b5 prepare for Beta 18 phase
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 573
diff changeset
   193
Summary:        Extra translations for Firefox
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
   194
Group:          System/Localization
666
0d913ca30238 move greek to the translations-common package (bnc#840551)
Ludwig Nussel <lnussel@suse.de>
parents: 664
diff changeset
   195
Provides:       locale(%{name}:ach;af;ak;as;ast;be;bg;bn_BD;bn_IN;br;bs;csb;cy;en_ZA;eo;es_MX;et;eu;fa;ff;fy_NL;ga_IE;gd;gl;gu_IN;he;hi_IN;hr;hy_AM;id;is;kk;km;kn;ku;lg;lij;lt;lv;mai;mk;ml;mr;nn_NO;nso;or;pa_IN;rm;ro;si;sk;sl;son;sq;sr;ta;ta_LK;te;th;tr;uk;vi;zu)
46
c743908ffe6f Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 36
diff changeset
   196
Requires:       %{name} = %{version}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   197
Obsoletes:      %{name}-translations < %{version}-%{release}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   198
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   199
%description translations-other
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   200
This package contains rarely used languages for the user interface
585
5a44d417c9b5 prepare for Beta 18 phase
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 573
diff changeset
   201
of Firefox.
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   202
%endif
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   203
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   204
%package branding-upstream
585
5a44d417c9b5 prepare for Beta 18 phase
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 573
diff changeset
   205
Summary:        Upstream branding for Firefox
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   206
Group:          Productivity/Networking/Web/Browsers
648
6fd0ed97283f fix upstream version provides
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 647
diff changeset
   207
Provides:       %{name}-branding = %{version}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   208
Conflicts:      otherproviders(%{name}-branding)
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   209
Supplements:    packageand(%{name}:branding-upstream)
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   210
#BRAND: Provide three files -
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   211
#BRAND: /usr/lib/firefox/browserconfig.properties that contains the
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   212
#BRAND: default homepage and some other default configuration options
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   213
#BRAND: /usr/lib/firefox/defaults/profile/bookmarks.html that contains
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   214
#BRAND: the list of default bookmarks
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   215
#BRAND: It's also possible to create a file
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   216
#BRAND: /usr/lib/firefox/defaults/preferences/firefox-$vendor.js to set
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   217
#BRAND: custom preference overrides.
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   218
#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
   219
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   220
%description branding-upstream
585
5a44d417c9b5 prepare for Beta 18 phase
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 573
diff changeset
   221
This package provides upstream look and feel for Firefox.
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   222
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   223
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   224
%if %crashreporter
334
1256d8842872 update to version 7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 327
diff changeset
   225
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   226
%package buildsymbols
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   227
Summary:        Breakpad buildsymbols for %{name}
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   228
Group:          Development/Debug
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   229
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   230
%description buildsymbols
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   231
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
   232
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
   233
%endif
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   234
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   235
%prep
707
bfa2e0576454 update to 28.0b9
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 705
diff changeset
   236
%if %localize
155
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   237
%setup -q -n mozilla -b 7 -b 10
707
bfa2e0576454 update to 28.0b9
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 705
diff changeset
   238
%else
bfa2e0576454 update to 28.0b9
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 705
diff changeset
   239
%setup -q -n mozilla
bfa2e0576454 update to 28.0b9
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 705
diff changeset
   240
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   241
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
   242
%patch1 -p1
447791e42c9b Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 196
diff changeset
   243
%patch2 -p1
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   244
%patch3 -p1
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   245
%patch4 -p1
398
937669e1c537 ported and reenabled KDE integration (bnc#746591)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 395
diff changeset
   246
%patch5 -p1
339
db8b891eeb1e locale should always match the system one in a package environment
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 337
diff changeset
   247
%patch6 -p1
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   248
%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
   249
%patch8 -p1
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   250
%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
   251
%if %suse_version < 1120
471
73b631ab214b adding fixes to spec file and changelog
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 468
diff changeset
   252
%patch10 -p1
285
0287f70d86e9 SLE11 compatibility:
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 283
diff changeset
   253
%endif
716
cef565f1c325 update to Firefox 29.0b7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 715
diff changeset
   254
%patch11 -p1
563
8349c239bff9 preparing Aurora 18
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 552
diff changeset
   255
%patch12 -p1
715
e1c226a4de34 AArch64 porting
Dirk M?ller <dmueller@suse.com>
parents: 714
diff changeset
   256
# Firefox
e1c226a4de34 AArch64 porting
Dirk M?ller <dmueller@suse.com>
parents: 714
diff changeset
   257
%patch101 -p1
223
4555a5d0d661 patch reorganization
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 221
diff changeset
   258
%if %suse_version >= 1140
715
e1c226a4de34 AArch64 porting
Dirk M?ller <dmueller@suse.com>
parents: 714
diff changeset
   259
%patch102 -p1
223
4555a5d0d661 patch reorganization
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 221
diff changeset
   260
%endif
715
e1c226a4de34 AArch64 porting
Dirk M?ller <dmueller@suse.com>
parents: 714
diff changeset
   261
%patch103 -p1
e1c226a4de34 AArch64 porting
Dirk M?ller <dmueller@suse.com>
parents: 714
diff changeset
   262
%patch104 -p1
e1c226a4de34 AArch64 porting
Dirk M?ller <dmueller@suse.com>
parents: 714
diff changeset
   263
%patch105 -p1
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   264
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   265
%build
276
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 272
diff changeset
   266
# no need to add build time to binaries
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 272
diff changeset
   267
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 272
diff changeset
   268
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 272
diff changeset
   269
TIME="\"$(date -d "${modified}" "+%%R")\""
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 272
diff changeset
   270
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
   271
#
398
937669e1c537 ported and reenabled KDE integration (bnc#746591)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 395
diff changeset
   272
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
   273
if test "$kdehelperversion" != %{kde_helper_version}; then
937669e1c537 ported and reenabled KDE integration (bnc#746591)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 395
diff changeset
   274
  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
   275
  exit 1
937669e1c537 ported and reenabled KDE integration (bnc#746591)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 395
diff changeset
   276
fi
279
eb9e33036fb4 update to 5.0b6
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 277
diff changeset
   277
source %{SOURCE5}
eb9e33036fb4 update to 5.0b6
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 277
diff changeset
   278
export MOZ_SOURCE_STAMP=$REV
eb9e33036fb4 update to 5.0b6
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 277
diff changeset
   279
export SOURCE_REPO=$REPO
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   280
export source_repo=$REPO
279
eb9e33036fb4 update to 5.0b6
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 277
diff changeset
   281
export MOZ_SOURCE_REPO=$REPO
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   282
export MOZ_BUILD_DATE=%{releasedate}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   283
export MOZILLA_OFFICIAL=1
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   284
export BUILD_OFFICIAL=1
344
880a90eb0f92 enable telemetry opt-in prompt
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 339
diff changeset
   285
export MOZ_TELEMETRY_REPORTING=1
704
72225e57f863 update to 27.0.1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 699
diff changeset
   286
export MOZ_GOOGLE_API_KEY=%{_google_api_key}
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
   287
export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing"
631
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 623
diff changeset
   288
%ifarch %arm
659
fa96cf6ffd14 Aurora 24 update
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 653
diff changeset
   289
export CFLAGS="${CFLAGS/-g / }"
631
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 623
diff changeset
   290
%endif
693
ac3e73b8c89d add missing changes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 692
diff changeset
   291
%ifarch ppc64 ppc64le
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   292
export CFLAGS="$CFLAGS -mminimal-toc"
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   293
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   294
export CXXFLAGS="$CFLAGS"
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   295
export MOZCONFIG=$RPM_BUILD_DIR/mozconfig
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   296
cat << EOF > $MOZCONFIG
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   297
mk_add_options MOZILLA_OFFICIAL=1
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   298
mk_add_options BUILD_OFFICIAL=1
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   299
mk_add_options MOZ_MAKE_FLAGS=%{?jobs:-j%jobs}
155
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   300
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   301
. \$topsrcdir/browser/config/mozconfig
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   302
ac_add_options --prefix=%{_prefix}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   303
ac_add_options --libdir=%{_libdir}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   304
ac_add_options --sysconfdir=%{_sysconfdir}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   305
ac_add_options --mandir=%{_mandir}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   306
ac_add_options --includedir=%{_includedir}
767
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 764
diff changeset
   307
ac_add_options --enable-release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 764
diff changeset
   308
ac_add_options --enable-stdcxx-compat
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 764
diff changeset
   309
%ifarch %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 764
diff changeset
   310
%if %suse_version > 1230
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 764
diff changeset
   311
ac_add_options --disable-optimize
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 764
diff changeset
   312
%endif
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 764
diff changeset
   313
%endif
777
f1c5ccf4d1a7 changelog
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 776
diff changeset
   314
%ifnarch ppc ppc64 ppc64le
767
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 764
diff changeset
   315
ac_add_options --enable-elf-hack
777
f1c5ccf4d1a7 changelog
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 776
diff changeset
   316
%endif
568
2c74c5927ea2 first working Aurora 18 build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 565
diff changeset
   317
ac_add_options --with-system-nspr
522
fdca14856f37 snapshot update (20120807)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 515
diff changeset
   318
ac_add_options --with-system-nss
707
bfa2e0576454 update to 28.0b9
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 705
diff changeset
   319
%if %{localize}
155
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   320
ac_add_options --with-l10n-base=$RPM_BUILD_DIR/l10n
707
bfa2e0576454 update to 28.0b9
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 705
diff changeset
   321
%endif
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   322
#ac_add_options --with-system-jpeg    # libjpeg-turbo is used internally
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   323
#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
   324
ac_add_options --with-system-zlib
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   325
ac_add_options --disable-installer
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   326
ac_add_options --disable-updater
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   327
ac_add_options --disable-tests
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   328
ac_add_options --disable-debug
283
418b5f502ff2 update to 5.0final
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 282
diff changeset
   329
ac_add_options --enable-startup-notification
265
f9de3817b442 build fixes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 264
diff changeset
   330
#ac_add_options --enable-chrome-format=jar
409
ff30593d2daa switch to 12.0dev
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 408
diff changeset
   331
ac_add_options --enable-update-channel=%{update_channel}
719
8d80a56bb0a8 disable branding
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 718
diff changeset
   332
%if 0%{?gstreamer} == 1
8d80a56bb0a8 disable branding
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 718
diff changeset
   333
ac_add_options --enable-gstreamer=1.0
8d80a56bb0a8 disable branding
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 718
diff changeset
   334
%endif
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   335
%if %suse_version > 1130
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   336
ac_add_options --disable-gnomevfs
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   337
ac_add_options --enable-gio
101
1678af7b5183 Fix l10n build of Firefox
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 99
diff changeset
   338
%endif
659
fa96cf6ffd14 Aurora 24 update
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 653
diff changeset
   339
%if %suse_version < 1220
fa96cf6ffd14 Aurora 24 update
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 653
diff changeset
   340
ac_add_options --disable-gstreamer
444
6525a220a096 fixed build with changed install directories (defaults/pref -> defaults/preferences)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 438
diff changeset
   341
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   342
%if %branding
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   343
ac_add_options --enable-official-branding
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   344
%endif
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   345
%if %suse_version > 1110
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   346
ac_add_options --enable-libproxy
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   347
%endif
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   348
%if ! %crashreporter
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   349
ac_add_options --disable-crashreporter
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   350
%endif
371
ead21d122ed0 introduce --disable-neon option and use on ARM
Joop Boonen <joop.boonen@opensuse.org>
parents: 370
diff changeset
   351
# 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
   352
%ifarch %arm
ead21d122ed0 introduce --disable-neon option and use on ARM
Joop Boonen <joop.boonen@opensuse.org>
parents: 370
diff changeset
   353
ac_add_options --disable-neon
640
68ead6c93b7d Explicitly disable WebRTC support on non-x86, the configure script
schwab@linux-m68k.org
parents: 639
diff changeset
   354
%endif
68ead6c93b7d Explicitly disable WebRTC support on non-x86, the configure script
schwab@linux-m68k.org
parents: 639
diff changeset
   355
%ifnarch %ix86 x86_64
631
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 623
diff changeset
   356
ac_add_options --disable-webrtc
668
fc8c1da7ec06 minor specfile simplification
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 666
diff changeset
   357
%endif
753
f3bf114c6639 Firefox 32.0b3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 751
diff changeset
   358
# try to use OpenGL-ES on ARM
f3bf114c6639 Firefox 32.0b3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 751
diff changeset
   359
%ifarch %arm
f3bf114c6639 Firefox 32.0b3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 751
diff changeset
   360
ac_add_options --with-gl-provider=EGL
f3bf114c6639 Firefox 32.0b3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 751
diff changeset
   361
%endif
708
f15494a6dc10 fix spec syntax
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 707
diff changeset
   362
EOF
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   363
make -f client.mk build
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   364
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   365
%install
155
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   366
cd $RPM_BUILD_DIR/obj
279
eb9e33036fb4 update to 5.0b6
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 277
diff changeset
   367
source %{SOURCE5}
eb9e33036fb4 update to 5.0b6
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 277
diff changeset
   368
export MOZ_SOURCE_STAMP=$REV
eb9e33036fb4 update to 5.0b6
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 277
diff changeset
   369
export MOZ_SOURCE_REPO=$REPO
733
b2202fea7983 manual forward merge from 29 and 30 branches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 727
diff changeset
   370
# need to remove default en-US firefox-l10n.js before it gets
b2202fea7983 manual forward merge from 29 and 30 branches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 727
diff changeset
   371
# populated into browser's omni.ja; it only contains general.useragent.locale
b2202fea7983 manual forward merge from 29 and 30 branches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 727
diff changeset
   372
# which should be loaded from each language pack (set in firefox.js)
b2202fea7983 manual forward merge from 29 and 30 branches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 727
diff changeset
   373
rm dist/bin/browser/defaults/preferences/firefox-l10n.js
444
6525a220a096 fixed build with changed install directories (defaults/pref -> defaults/preferences)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 438
diff changeset
   374
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
   375
#DEBUG (break the build if searchplugins are missing / temporary)
642
b30da62025bc 21 is now beta
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 637
diff changeset
   376
grep amazondotcom dist/firefox/browser/omni.ja
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   377
# copy tree into RPM_BUILD_ROOT
642
b30da62025bc 21 is now beta
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 637
diff changeset
   378
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
   379
cp -rf $RPM_BUILD_DIR/obj/dist/firefox/* $RPM_BUILD_ROOT%{progdir}
647
9d8bdcdd4d2a 21.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 645
diff changeset
   380
mkdir -p $RPM_BUILD_ROOT%{progdir}/distribution/extensions
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   381
mkdir -p $RPM_BUILD_ROOT%{progdir}/browser/searchplugins
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   382
mkdir -p $RPM_BUILD_ROOT%{progdir}/browser/defaults/preferences/
327
34013ee9fafd fixed loading of kde.js under KDE (bnc#718311)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 312
diff changeset
   383
# install kde.js
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   384
install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{progdir}/browser/defaults/preferences/kde.js
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   385
install -m 644 %{SOURCE9} $RPM_BUILD_ROOT%{progdir}/browser/defaults/preferences/firefox.js
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   386
# install add-plugins.sh
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   387
sed "s:%%PROGDIR:%{progdir}:g" \
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   388
  %{SOURCE13} > $RPM_BUILD_ROOT%{progdir}/add-plugins.sh
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   389
chmod 755 $RPM_BUILD_ROOT%{progdir}/add-plugins.sh
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   390
# install additional locales
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   391
%if %localize
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   392
rm -f %{_tmppath}/translations.*
83
d06e40a1d7de Firefox 3.7a building correctly
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 81
diff changeset
   393
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
   394
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
   395
  case $locale in
661
aac91d5705b1 prepare 24.0beta
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 659
diff changeset
   396
   ja-JP-mac|en-US)
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   397
	;;
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   398
   *)
155
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   399
   	pushd $RPM_BUILD_DIR/compare-locales
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   400
	PYTHONPATH=lib \
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   401
	  scripts/compare-locales -m ../l10n-merged/$locale \
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   402
	  ../mozilla/browser/locales/l10n.ini ../l10n $locale
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   403
	popd
172
78d410fd888a fixed compare-locales for toolkit locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 171
diff changeset
   404
	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
   405
  	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
   406
	cp -rL dist/xpi-stage/locale-$locale \
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   407
	       $RPM_BUILD_ROOT%{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org
418
ecd5bb5744dc update to 12.0b3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 414
diff changeset
   408
	# remove prefs, profile defaults, and hyphenation from langpack
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   409
	rm -rf $RPM_BUILD_ROOT%{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org/defaults
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   410
	rm -rf $RPM_BUILD_ROOT%{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org/hyphenation
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   411
	# check against the fixed common list and sort into the right filelist
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   412
	_matched=0
672
2268d308dc15 minor polishing
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 669
diff changeset
   413
	for _match in ar ca cs da de en-GB el 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
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   414
	  [ "$_match" = "$locale" ] && _matched=1
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   415
	done
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   416
	[ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   417
  	echo %{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org \
169
cba7c6321c84 snapshot 20101003; packaging langpacks
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 164
diff changeset
   418
	  >> %{_tmppath}/translations.$_l10ntarget
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   419
  esac
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   420
done
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   421
%endif
342
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   422
# remove some executable permissions
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   423
find $RPM_BUILD_ROOT%{progdir} \
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   424
     -name "*.js" -o \
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   425
     -name "*.jsm" -o \
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   426
     -name "*.rdf" -o \
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   427
     -name "*.properties" -o \
356
30a00f382aed version 9.0b2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 355
diff changeset
   428
     -name "*.dtd" -o \
30a00f382aed version 9.0b2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 355
diff changeset
   429
     -name "*.txt" -o \
30a00f382aed version 9.0b2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 355
diff changeset
   430
     -name "*.xml" -o \
30a00f382aed version 9.0b2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 355
diff changeset
   431
     -name "*.css" | xargs chmod a-x
541
830e50bbfc79 working Aurora 17.0 build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 540
diff changeset
   432
# remove mkdir.done files from installed base
830e50bbfc79 working Aurora 17.0 build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 540
diff changeset
   433
find $RPM_BUILD_ROOT%{progdir} -name ".mkdir.done" | xargs rm
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   434
# overwrite the mozilla start-script and link it to /usr/bin
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   435
mkdir --parents $RPM_BUILD_ROOT/usr/bin
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   436
sed "s:%%PREFIX:%{_prefix}:g
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   437
s:%%PROGDIR:%{progdir}:g
265
f9de3817b442 build fixes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 264
diff changeset
   438
s:%%APPNAME:firefox:g
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   439
s:%%PROFILE:.mozilla/firefox:g" \
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   440
  %{SOURCE3} > $RPM_BUILD_ROOT%{progdir}/%{progname}.sh
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   441
chmod 755 $RPM_BUILD_ROOT%{progdir}/%{progname}.sh
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   442
ln -sf ../..%{progdir}/%{progname}.sh $RPM_BUILD_ROOT%{_bindir}/%{progname}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   443
# desktop definition
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   444
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   445
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
   446
   $RPM_BUILD_ROOT%{_datadir}/applications/%{desktop_file_name}.desktop
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   447
# additional mime-types
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   448
mkdir -p $RPM_BUILD_ROOT%{_datadir}/mime/packages
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   449
cp %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/mime/packages/%{progname}.xml
774
f61bd1cd52c2 added basic appstream appdata information
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 773
diff changeset
   450
# appdata
f61bd1cd52c2 added basic appstream appdata information
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 773
diff changeset
   451
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
777
f1c5ccf4d1a7 changelog
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 776
diff changeset
   452
cp %{SOURCE15} $RPM_BUILD_ROOT%{_datadir}/appdata/%{desktop_file_name}.appdata.xml
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   453
# install man-page
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   454
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
   455
cp %{SOURCE11} $RPM_BUILD_ROOT%{_mandir}/man1/%{progname}.1
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   456
##########
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   457
# ADDONS
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   458
#
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
   459
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
   460
mkdir -p $RPM_BUILD_ROOT%{_libdir}/mozilla/extensions/%{firefox_appid}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   461
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps/
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   462
ln -sf %{progdir}/browser/icons/mozicon128.png $RPM_BUILD_ROOT/usr/share/pixmaps/%{progname}.png
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   463
ln -sf %{progdir}/browser/icons/mozicon128.png $RPM_BUILD_ROOT/usr/share/pixmaps/%{progname}-gnome.png
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   464
%if %branding
252
5477a696d8f6 install all icons
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 247
diff changeset
   465
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
   466
%else
9ec311cdd7c8 no official branding yet
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 265
diff changeset
   467
for size in 16 32 48; do
9ec311cdd7c8 no official branding yet
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 265
diff changeset
   468
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   469
  mkdir -p $RPM_BUILD_ROOT%{gnome_dir}/share/icons/hicolor/${size}x${size}/apps/
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   470
  ln -sf %{progdir}/browser/chrome/icons/default/default$size.png \
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   471
         $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
   472
done
216
0467f2bc54bc Remove Ximian references from desktop file
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 215
diff changeset
   473
%suse_update_desktop_file %{desktop_file_name} Network WebBrowser GTK
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   474
# excludes
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   475
rm -f $RPM_BUILD_ROOT%{progdir}/updater.ini
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   476
rm -f $RPM_BUILD_ROOT%{progdir}/removed-files
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   477
rm -f $RPM_BUILD_ROOT%{progdir}/README.txt
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   478
rm -f $RPM_BUILD_ROOT%{progdir}/old-homepage-default.properties
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   479
rm -f $RPM_BUILD_ROOT%{progdir}/run-mozilla.sh
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   480
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
   481
rm -f $RPM_BUILD_ROOT%{progdir}/precomplete
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   482
rm -f $RPM_BUILD_ROOT%{progdir}/dictionaries/en-US*
410
0af1b0003b9f working 12.0b1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 409
diff changeset
   483
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
   484
# 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
   485
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
   486
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
   487
# 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
   488
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
   489
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
   490
# 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
   491
%%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
   492
%%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
   493
%%firefox_mainver            %{mainver}
238
d537c4a65693 fixed rpm macros (bnc#679950)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 237
diff changeset
   494
%%firefox_mozillapath        %%{_libdir}/%{progname}
d537c4a65693 fixed rpm macros (bnc#679950)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 237
diff changeset
   495
%%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
   496
%%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
   497
%%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
   498
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
   499
%%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
   500
   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
   501
   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
   502
   %%{__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
   503
   %%{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
   504
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
   505
# 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
   506
#%%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
   507
#       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
   508
#       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
   509
#       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
   510
#       %%{nil}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   511
# fdupes
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   512
%fdupes $RPM_BUILD_ROOT%{progdir}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   513
%fdupes $RPM_BUILD_ROOT%{_datadir}
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   514
# create breakpad debugsymbols
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   515
%if %crashreporter
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   516
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
   517
make buildsymbols \
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   518
  SYMBOL_INDEX_NAME="$SYMBOLS_NAME.txt" \
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   519
  SYMBOL_FULL_ARCHIVE_BASENAME="$SYMBOLS_NAME-full" \
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   520
  SYMBOL_ARCHIVE_BASENAME="$SYMBOLS_NAME"
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   521
if [ -e dist/*symbols.zip ]; then
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   522
  mkdir -p $RPM_BUILD_ROOT%{_datadir}/mozilla/
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   523
  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
   524
fi
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   525
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   526
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   527
%clean
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   528
rm -rf $RPM_BUILD_ROOT
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   529
%if %localize
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   530
rm -rf %{_tmppath}/translations.*
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   531
%endif
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   532
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   533
%post
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   534
# 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
   535
%if %suse_version > 1130
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   536
%mime_database_post
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   537
%desktop_database_post
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   538
%icon_theme_cache_post
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   539
%else
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   540
if [ -f usr/bin/update-mime-database ] ; then
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   541
  usr/bin/update-mime-database %{_datadir}/mime > /dev/null || :
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   542
fi
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   543
if [ -f usr/bin/update-desktop-database ] ; then
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   544
  usr/bin/update-desktop-database > /dev/null || :
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   545
fi
219
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   546
%endif
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   547
%{progdir}/add-plugins.sh > /dev/null 2>&1
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   548
exit 0
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   549
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   550
%postun
219
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   551
%if %suse_version > 1130
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   552
%icon_theme_cache_postun
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   553
%desktop_database_postun
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   554
%mime_database_postun
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   555
%else
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   556
if [ -f usr/bin/update-mime-database ] ; then
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   557
  usr/bin/update-mime-database %{_datadir}/mime > /dev/null || :
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   558
fi
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   559
if [ -f usr/bin/update-desktop-database ] ; then
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   560
  usr/bin/update-desktop-database > /dev/null || :
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   561
fi
219
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   562
%endif
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   563
exit 0
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   564
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   565
%posttrans
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   566
[ -e %{progdir}/add-plugins.sh ] && \
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   567
  %{progdir}/add-plugins.sh > /dev/null 2>&1
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   568
exit 0
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   569
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   570
%preun
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   571
rm -f %{progdir}/dictionaries/*
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   572
exit 0
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   573
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   574
%files
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   575
%defattr(-,root,root)
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   576
%dir %{progdir}
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   577
%dir %{progdir}/browser/
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   578
%dir %{progdir}/browser/chrome/
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   579
%dir %{progdir}/browser/extensions/
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   580
%{progdir}/browser/components/
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   581
%{progdir}/browser/defaults
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   582
%{progdir}/browser/icons/
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   583
%{progdir}/browser/chrome/icons
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   584
%{progdir}/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   585
%{progdir}/browser/searchplugins/
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   586
%{progdir}/browser/blocklist.xml
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   587
%{progdir}/browser/chrome.manifest
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   588
%{progdir}/browser/omni.ja
647
9d8bdcdd4d2a 21.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 645
diff changeset
   589
%dir %{progdir}/distribution/
9d8bdcdd4d2a 21.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 645
diff changeset
   590
%{progdir}/distribution/extensions/
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   591
%{progdir}/components/
157
6f59409302d1 switching back to jar chrome format (instead of omni)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 155
diff changeset
   592
%{progdir}/defaults/
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   593
%{progdir}/dictionaries/
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   594
%{progdir}/webapprt/
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   595
%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
   596
%{progdir}/firefox
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   597
%{progdir}/firefox-bin
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   598
%{progdir}/add-plugins.sh
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   599
%{progdir}/application.ini
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   600
%{progdir}/dependentlibs.list
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   601
%{progdir}/*.so
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   602
%{progdir}/mozilla-xremote-client
368
8891dd9439a1 finalized Firefox 10.0b1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 367
diff changeset
   603
%{progdir}/omni.ja
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   604
%{progdir}/platform.ini
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   605
%{progdir}/plugin-container
522
fdca14856f37 snapshot update (20120807)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 515
diff changeset
   606
%{progdir}/webapprt-stub
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   607
%{progdir}/chrome.manifest
117
565d666e22a1 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 103
diff changeset
   608
%if %crashreporter
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   609
%{progdir}/crashreporter
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   610
%{progdir}/crashreporter.ini
270
785d28fc6d4d fix PPC build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 269
diff changeset
   611
%{progdir}/Throbber-small.gif
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   612
%{progdir}/browser/crashreporter-override.ini
117
565d666e22a1 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 103
diff changeset
   613
%endif
213
b2978eba3a92 rename desktop file for 11.4 and above (bnc#664211)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 210
diff changeset
   614
%{_datadir}/applications/%{desktop_file_name}.desktop
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   615
%{_datadir}/mime/packages/%{progname}.xml
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   616
%{_datadir}/pixmaps/firefox*
774
f61bd1cd52c2 added basic appstream appdata information
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 773
diff changeset
   617
%{_datadir}/appdata/
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
   618
%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
   619
%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
   620
%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
   621
%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
   622
%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
   623
%dir %{_libdir}/mozilla/extensions/%{firefox_appid}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   624
%{gnome_dir}/share/icons/hicolor/
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   625
%{_bindir}/%{progname}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   626
%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
   627
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
   628
%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
   629
%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
   630
%{_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
   631
%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
   632
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   633
%if %localize
334
1256d8842872 update to version 7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 327
diff changeset
   634
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   635
%files translations-common -f %{_tmppath}/translations.common
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   636
%defattr(-,root,root)
46
c743908ffe6f Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 36
diff changeset
   637
%dir %{progdir}
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   638
%dir %{progdir}/browser/extensions/
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   639
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   640
%files translations-other -f %{_tmppath}/translations.other
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   641
%defattr(-,root,root)
46
c743908ffe6f Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 36
diff changeset
   642
%dir %{progdir}
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   643
%dir %{progdir}/browser/extensions/
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   644
%endif
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   645
286
b1d254616456 reenable branding-upstream package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 285
diff changeset
   646
# 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
   647
# 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
   648
286
b1d254616456 reenable branding-upstream package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 285
diff changeset
   649
%files branding-upstream
b1d254616456 reenable branding-upstream package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 285
diff changeset
   650
%defattr(-,root,root)
b1d254616456 reenable branding-upstream package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 285
diff changeset
   651
%dir %{progdir}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   652
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   653
%if %crashreporter
334
1256d8842872 update to version 7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 327
diff changeset
   654
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   655
%files buildsymbols
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   656
%defattr(-,root,root)
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   657
%{_datadir}/mozilla/*.zip
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   658
%endif
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   659
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   660
%changelog