MozillaFirefox/MozillaFirefox.spec
author Wolfgang Rosenauer <wr@rosenauer.org>
Sun, 15 Nov 2020 09:35:28 +0100
branchfirefox82
changeset 1150 2faa589360df
parent 1149 7b455bd1ea97
child 1151 8df86bf11fc1
permissions -rw-r--r--
82.0.3
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
#
1119
4c5d44d40a03 Firefox 72.0.1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1118
diff changeset
     4
# Copyright (c) 2020 SUSE LLC
1121
004e4b1efb26 Firefox 73.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1120
diff changeset
     5
#               2006-2020 Wolfgang Rosenauer <wr@rosenauer.org>
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
1077
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1076
diff changeset
    16
# Please submit bugfixes or comments via https://bugs.opensuse.org/
5
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
996
84d25951c2db - Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents: 995
diff changeset
    19
1145
fbfd8f7cbd53 FF 81 final
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1144
diff changeset
    20
%if 0%{?suse_version} < 1550 && 0%{?sle_version} <= 150100
fbfd8f7cbd53 FF 81 final
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1144
diff changeset
    21
#!BuildIgnore: post-build-checks
fbfd8f7cbd53 FF 81 final
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1144
diff changeset
    22
%endif
fbfd8f7cbd53 FF 81 final
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1144
diff changeset
    23
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
    24
# changed with every update
1136
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
    25
# orig_version vs. mainver: To have beta-builds
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
    26
# FF70beta3 would be released as FF69.99
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
    27
# orig_version would be the upstream tar ball
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
    28
# orig_version 70.0
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
    29
# orig_suffix b3
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
    30
# major 69
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
    31
# mainver %major.99
1150
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1149
diff changeset
    32
%define major          82
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1149
diff changeset
    33
%define mainver        %major.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1149
diff changeset
    34
%define orig_version   82.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1149
diff changeset
    35
%define orig_suffix    %{nil}
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1149
diff changeset
    36
%define update_channel release
1056
90e1f32cf034 several changes to make upstream tarballs a good neighbour for locale fetching and HG checkouts
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1055
diff changeset
    37
%define branding       1
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
    38
%define devpkg         1
916
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
    39
1128
0d95fa645411 Firefox 77.0.1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1127
diff changeset
    40
# PGO builds do not work in TW currently (bmo#1642410)
1121
004e4b1efb26 Firefox 73.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1120
diff changeset
    41
%define do_profiling   0
004e4b1efb26 Firefox 73.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1120
diff changeset
    42
1127
d5b284f833d5 Firefox 77.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1126
diff changeset
    43
# upstream default is clang (to use gcc for large parts set to 0)
1128
0d95fa645411 Firefox 77.0.1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1127
diff changeset
    44
%define clang_build 0
1082
821cfbe8efcc Firefox 64.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1081
diff changeset
    45
1084
b0b3c507e253 latest Factory
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1083
diff changeset
    46
# PIE, full relro
916
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
    47
%define build_hardened 1
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    48
1101
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
    49
%bcond_with only_print_mozconfig
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
    50
982
53443ffb496a Firefox 54.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 979
diff changeset
    51
# Firefox only supports i686
53443ffb496a Firefox 54.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 979
diff changeset
    52
%ifarch %ix86
996
84d25951c2db - Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents: 995
diff changeset
    53
ExclusiveArch:  i586 i686
84d25951c2db - Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents: 995
diff changeset
    54
BuildArch:      i686
982
53443ffb496a Firefox 54.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 979
diff changeset
    55
%{expand:%%global optflags %(echo "%optflags"|sed -e s/i586/i686/) -march=i686 -mtune=generic}
953
6b282f295753 53.0b4 (complete)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 951
diff changeset
    56
%endif
943
ace605efe50f latest beta
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 942
diff changeset
    57
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
    58
# general build definitions
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
    59
%define progname firefox
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
    60
%define pkgname  MozillaFirefox
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
    61
%define srcname  firefox
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
    62
%define appname  Firefox
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
    63
%define progdir %{_prefix}/%_lib/%{progname}
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
    64
%define gnome_dir     %{_prefix}
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
    65
%define desktop_file_name %{progname}
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
    66
%define firefox_appid \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
1030
cd02d400c081 correct requires and provides handling (boo#1076907)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1029
diff changeset
    67
%define __provides_exclude ^lib.*\\.so.*$
cd02d400c081 correct requires and provides handling (boo#1076907)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1029
diff changeset
    68
%define __requires_exclude ^(libmoz.*|liblgpllibs.*|libxul.*)$
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
    69
%define localize 1
932
a58cc7936ce7 Firefox 50.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 931
diff changeset
    70
%ifarch %ix86 x86_64
a58cc7936ce7 Firefox 50.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 931
diff changeset
    71
%define crashreporter 1
a58cc7936ce7 Firefox 50.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 931
diff changeset
    72
%else
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
    73
%define crashreporter 0
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
    74
%endif
1138
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1137
diff changeset
    75
%if 0%{?suse_version} < 1550 && 0%{?sle_version} <= 150100
1136
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
    76
# pipewire is too old on Leap <15.1
1138
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1137
diff changeset
    77
%define with_pipewire0_3 0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1137
diff changeset
    78
%else
1136
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
    79
%define with_pipewire0_3 1
1134
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1133
diff changeset
    80
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    81
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
    82
Name:           %{pkgname}
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    83
BuildRequires:  Mesa-devel
996
84d25951c2db - Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents: 995
diff changeset
    84
BuildRequires:  alsa-devel
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    85
BuildRequires:  autoconf213
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    86
BuildRequires:  dbus-1-glib-devel
1096
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1094
diff changeset
    87
BuildRequires:  dejavu-fonts
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    88
BuildRequires:  fdupes
1143
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
    89
BuildRequires:  memory-constraints
953
6b282f295753 53.0b4 (complete)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 951
diff changeset
    90
%if 0%{?suse_version} <= 1320
1136
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
    91
BuildRequires:  gcc9-c++
953
6b282f295753 53.0b4 (complete)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 951
diff changeset
    92
%else
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    93
BuildRequires:  gcc-c++
953
6b282f295753 53.0b4 (complete)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 951
diff changeset
    94
%endif
1139
4fd43e0d4a8f update dependencies
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1138
diff changeset
    95
BuildRequires:  cargo >= 1.43
1140
a9aa543a508a FF79 latest
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1139
diff changeset
    96
BuildRequires:  ccache
895
b0e57b478b1b merge change from mozilla:Factory (libXcomposite-devel requirement)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 894
diff changeset
    97
BuildRequires:  libXcomposite-devel
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    98
BuildRequires:  libcurl-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    99
BuildRequires:  libidl-devel
835
e7e5b3d0f1b3 changelog
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 832
diff changeset
   100
BuildRequires:  libiw-devel
e7e5b3d0f1b3 changelog
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 832
diff changeset
   101
BuildRequires:  libproxy-devel
716
cef565f1c325 update to Firefox 29.0b7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 715
diff changeset
   102
BuildRequires:  makeinfo
1147
e81381ea5f3d work towards ff82
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1145
diff changeset
   103
BuildRequires:  mozilla-nspr-devel >= 4.29
e81381ea5f3d work towards ff82
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1145
diff changeset
   104
BuildRequires:  mozilla-nss-devel >= 3.57
1125
3fd9346c90a6 Firefox 76.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1124
diff changeset
   105
BuildRequires:  nasm >= 2.14
1131
4a5aa8293178 78.0b5 building
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1130
diff changeset
   106
BuildRequires:  nodejs10 >= 10.21.0
1136
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   107
%if 0%{?sle_version} >= 120000 && 0%{?sle_version} < 150000
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   108
BuildRequires:  python-libxml2
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   109
BuildRequires:  python36
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   110
%else
1065
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1063
diff changeset
   111
BuildRequires:  python3 >= 3.5
1147
e81381ea5f3d work towards ff82
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1145
diff changeset
   112
BuildRequires:  python3-devel
1136
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   113
%endif
1139
4fd43e0d4a8f update dependencies
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1138
diff changeset
   114
BuildRequires:  rust >= 1.43
4fd43e0d4a8f update dependencies
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1138
diff changeset
   115
BuildRequires:  rust-cbindgen >= 0.14.3
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
   116
BuildRequires:  unzip
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
   117
BuildRequires:  update-desktop-files
401
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 400
diff changeset
   118
BuildRequires:  xorg-x11-libXt-devel
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   119
%if 0%{?do_profiling}
1096
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1094
diff changeset
   120
BuildRequires:  xvfb-run
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   121
%endif
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
   122
BuildRequires:  yasm
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
   123
BuildRequires:  zip
1054
fbfe323c62cd Add conditional for pkgconfig(gconf-2.0) BuildRequires, and pass
<bjorn.lie@gmail.com>
parents: 1053
diff changeset
   124
%if 0%{?suse_version} < 1550
1097
840132a4a9b3 Firefox 68.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1096
diff changeset
   125
BuildRequires:  pkgconfig(gconf-2.0) >= 1.2.1
1054
fbfe323c62cd Add conditional for pkgconfig(gconf-2.0) BuildRequires, and pass
<bjorn.lie@gmail.com>
parents: 1053
diff changeset
   126
%endif
1136
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   127
%if (0%{?sle_version} >= 120000 && 0%{?sle_version} < 150000)
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   128
BuildRequires:  clang6-devel
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   129
%else
1128
0d95fa645411 Firefox 77.0.1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1127
diff changeset
   130
BuildRequires:  clang-devel >= 5
1136
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   131
%endif
996
84d25951c2db - Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents: 995
diff changeset
   132
BuildRequires:  pkgconfig(gdk-x11-2.0)
84d25951c2db - Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents: 995
diff changeset
   133
BuildRequires:  pkgconfig(glib-2.0) >= 2.22
907
3ccb278a9ceb prepare gtk3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 906
diff changeset
   134
BuildRequires:  pkgconfig(gobject-2.0)
996
84d25951c2db - Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents: 995
diff changeset
   135
BuildRequires:  pkgconfig(gtk+-2.0) >= 2.18.0
1133
0a44f639e5ee removed obsolete patch
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1132
diff changeset
   136
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.14.0
996
84d25951c2db - Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents: 995
diff changeset
   137
BuildRequires:  pkgconfig(gtk+-unix-print-2.0)
907
3ccb278a9ceb prepare gtk3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 906
diff changeset
   138
BuildRequires:  pkgconfig(gtk+-unix-print-3.0)
996
84d25951c2db - Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents: 995
diff changeset
   139
BuildRequires:  pkgconfig(libffi)
84d25951c2db - Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents: 995
diff changeset
   140
BuildRequires:  pkgconfig(libpulse)
1136
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   141
%if %{with_pipewire0_3}
1134
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1133
diff changeset
   142
BuildRequires:  pkgconfig(libpipewire-0.3)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1133
diff changeset
   143
%endif
916
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
   144
# libavcodec is required for H.264 support but the
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
   145
# openSUSE version is currently not able to play H.264
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
   146
# therefore the Packman version is required
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
   147
# minimum version of libavcodec is 53
919
6838f0c032f8 -------------------------------------------------------------------
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 916
diff changeset
   148
Recommends:     libavcodec-full >= 0.10.16
368
8891dd9439a1 finalized Firefox 10.0b1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 367
diff changeset
   149
Version:        %{mainver}
375
d75cd0dac058 final 10.0 updates (changelog)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 373
diff changeset
   150
Release:        0
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   151
%if "%{name}" == "MozillaFirefox"
401
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 400
diff changeset
   152
Provides:       firefox = %{mainver}
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 400
diff changeset
   153
Provides:       firefox = %{version}-%{release}
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   154
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   155
Provides:       web_browser
884
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 883
diff changeset
   156
Provides:       appdata()
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 883
diff changeset
   157
Provides:       appdata(firefox.appdata.xml)
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   158
# 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
   159
# 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
   160
%define kde_helper_version 6
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   161
Provides:       mozilla-kde4-version = %{kde_helper_version}
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   162
Summary:        Mozilla %{appname} Web Browser
456
7b9ab7747a11 License change to MPL-2.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 447
diff changeset
   163
License:        MPL-2.0
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
   164
Group:          Productivity/Networking/Web/Browsers
1117
d6a688186de0 beta -> release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1116
diff changeset
   165
URL:            http://www.mozilla.org/
1101
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   166
%if !%{with only_print_mozconfig}
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   167
Source:         http://ftp.mozilla.org/pub/%{srcname}/releases/%{version}%{orig_suffix}/source/%{srcname}-%{orig_version}%{orig_suffix}.source.tar.xz
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   168
Source1:        MozillaFirefox.desktop
86
f2a830880862 Install as firefox4 in parallel to unversioned
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 84
diff changeset
   169
Source2:        MozillaFirefox-rpmlintrc
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   170
Source3:        mozilla.sh.in
1097
840132a4a9b3 Firefox 68.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1096
diff changeset
   171
Source4:        tar_stamps
1056
90e1f32cf034 several changes to make upstream tarballs a good neighbour for locale fetching and HG checkouts
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1055
diff changeset
   172
Source7:        l10n-%{orig_version}%{orig_suffix}.tar.xz
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   173
Source8:        firefox-mimeinfo.xml
543
24c3eafd49a1 fixed kde.js preferences
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 541
diff changeset
   174
Source9:        firefox.js
198
447791e42c9b Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 196
diff changeset
   175
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
   176
Source12:       mozilla-get-app-id
781
4ee017942f28 use /usr/share/myspell directly and remove add-plugins.sh
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 780
diff changeset
   177
Source13:       spellcheck.js
1136
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   178
Source14:       https://github.com/openSUSE/firefox-scripts/raw/5e54f4a/create-tar.sh
774
f61bd1cd52c2 added basic appstream appdata information
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 773
diff changeset
   179
Source15:       firefox-appdata.xml
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   180
Source16:       %{name}.changes
992
b2ba34e0dc10 Firefox 55.0.3 and some other fixes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 991
diff changeset
   181
# Set up API keys, see http://www.chromium.org/developers/how-tos/api-keys
b2ba34e0dc10 Firefox 55.0.3 and some other fixes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 991
diff changeset
   182
# Note: these are for the openSUSE Firefox builds ONLY. For your own distribution,
b2ba34e0dc10 Firefox 55.0.3 and some other fixes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 991
diff changeset
   183
# please get your own set of keys.
964
218a4e337cfe use mozilla geolocation api instead of broken google one
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 960
diff changeset
   184
Source18:       mozilla-api-key
992
b2ba34e0dc10 Firefox 55.0.3 and some other fixes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 991
diff changeset
   185
Source19:       google-api-key
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   186
Source20:       https://ftp.mozilla.org/pub/%{srcname}/releases/%{version}%{orig_suffix}/source/%{srcname}-%{orig_version}%{orig_suffix}.source.tar.xz.asc
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   187
Source21:       https://ftp.mozilla.org/pub/%{srcname}/releases/%{version}%{orig_suffix}/KEY#/mozilla.keyring
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   188
# Gecko/Toolkit
885
ee3c462047d5 42 beta cycle
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 884
diff changeset
   189
Patch1:         mozilla-nongnome-proxies.patch
1008
77c890186192 removed obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1005
diff changeset
   190
Patch2:         mozilla-kde.patch
77c890186192 removed obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1005
diff changeset
   191
Patch3:         mozilla-ntlm-full-path.patch
1114
572ec48f3fe8 Firefox 71.0b11
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1113
diff changeset
   192
Patch4:         mozilla-aarch64-startup-crash.patch
1123
7fa561e5d7c7 Firefox 74.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1122
diff changeset
   193
Patch6:         mozilla-sandbox-fips.patch
1114
572ec48f3fe8 Firefox 71.0b11
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1113
diff changeset
   194
Patch7:         mozilla-fix-aarch64-libopus.patch
572ec48f3fe8 Firefox 71.0b11
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1113
diff changeset
   195
Patch8:         mozilla-disable-wasm-emulate-arm-unaligned-fp-access.patch
572ec48f3fe8 Firefox 71.0b11
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1113
diff changeset
   196
Patch9:         mozilla-s390-context.patch
572ec48f3fe8 Firefox 71.0b11
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1113
diff changeset
   197
Patch11:        mozilla-reduce-rust-debuginfo.patch
572ec48f3fe8 Firefox 71.0b11
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1113
diff changeset
   198
Patch12:        mozilla-ppc-altivec_static_inline.patch
572ec48f3fe8 Firefox 71.0b11
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1113
diff changeset
   199
Patch13:        mozilla-bmo1005535.patch
572ec48f3fe8 Firefox 71.0b11
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1113
diff changeset
   200
Patch14:        mozilla-bmo1568145.patch
572ec48f3fe8 Firefox 71.0b11
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1113
diff changeset
   201
Patch15:        mozilla-bmo1504834-part1.patch
572ec48f3fe8 Firefox 71.0b11
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1113
diff changeset
   202
Patch16:        mozilla-bmo1504834-part2.patch
572ec48f3fe8 Firefox 71.0b11
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1113
diff changeset
   203
Patch17:        mozilla-bmo1504834-part3.patch
572ec48f3fe8 Firefox 71.0b11
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1113
diff changeset
   204
Patch18:        mozilla-bmo1554971.patch
572ec48f3fe8 Firefox 71.0b11
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1113
diff changeset
   205
Patch19:        mozilla-bmo1512162.patch
572ec48f3fe8 Firefox 71.0b11
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1113
diff changeset
   206
Patch20:        mozilla-fix-top-level-asm.patch
572ec48f3fe8 Firefox 71.0b11
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1113
diff changeset
   207
Patch21:        mozilla-bmo1504834-part4.patch
572ec48f3fe8 Firefox 71.0b11
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1113
diff changeset
   208
Patch22:        mozilla-bmo849632.patch
1134
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1133
diff changeset
   209
Patch23:        mozilla-pipewire-0-3.patch
1136
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   210
Patch24:        mozilla-bmo1602730.patch
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   211
Patch25:        mozilla-bmo998749.patch
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   212
Patch26:        mozilla-bmo1626236.patch
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   213
Patch27:        mozilla-s390x-skia-gradient.patch
1138
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1137
diff changeset
   214
Patch28:        mozilla-libavcodec58_91.patch
1145
fbfd8f7cbd53 FF 81 final
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1144
diff changeset
   215
Patch29:        revert-795c8762b16b.patch
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   216
# Firefox/browser
715
e1c226a4de34 AArch64 porting
Dirk M?ller <dmueller@suse.com>
parents: 714
diff changeset
   217
Patch101:       firefox-kde.patch
1032
8220ea23b47d remove obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1031
diff changeset
   218
Patch102:       firefox-branded-icons.patch
1143
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   219
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   220
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
46
c743908ffe6f Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 36
diff changeset
   221
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
   222
Requires(postun): shared-mime-info desktop-file-utils
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   223
Requires:       %{name}-branding >= 68
1140
a9aa543a508a FF79 latest
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1139
diff changeset
   224
%requires_ge    mozilla-nspr
a9aa543a508a FF79 latest
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1139
diff changeset
   225
%requires_ge    mozilla-nss
a9aa543a508a FF79 latest
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1139
diff changeset
   226
%requires_ge    libfreetype6
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
   227
Recommends:     libcanberra0
703
c4aab80e472f Firefox 28.0beta1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 699
diff changeset
   228
Recommends:     libpulse0
819
5a18bd66e46c [Bug 908892] Updated Firefox (33.0-1.90.1 -> 34.0.5-1.94.3) crashes in tracker-miner-firefox
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 818
diff changeset
   229
# addon leads to startup crash (bnc#908892)
5a18bd66e46c [Bug 908892] Updated Firefox (33.0-1.90.1 -> 34.0.5-1.94.3) crashes in tracker-miner-firefox
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 818
diff changeset
   230
Obsoletes:      tracker-miner-firefox < 0.15
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   231
%if 0%{?devpkg} == 0
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   232
Obsoletes:      %{name}-devel < %{version}
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   233
%endif
565
f6d567a99b67 bring back libproxy mozjs obsoletes for old distributions
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 563
diff changeset
   234
# libproxy's mozjs pacrunner crashes FF (bnc#759123)
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   235
%if 0%{?suse_version} < 1220
565
f6d567a99b67 bring back libproxy mozjs obsoletes for old distributions
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 563
diff changeset
   236
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
   237
%endif
1128
0d95fa645411 Firefox 77.0.1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1127
diff changeset
   238
ExcludeArch:    armv6l armv6hl
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   239
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   240
%description
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   241
Mozilla Firefox is a standalone web browser, designed for standards
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   242
compliance and performance.  Its functionality can be enhanced via a
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   243
plethora of extensions.
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   244
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   245
%if 0%{?devpkg}
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
   246
%package devel
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   247
Summary:        Devel package for %{appname}
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
   248
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
   249
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
   250
Requires:       %{name} = %{version}
401
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 400
diff changeset
   251
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
   252
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
   253
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
   254
%description devel
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   255
Development files for %{appname} to make packaging of addons easier.
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   256
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   257
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   258
%if %localize
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   259
%package translations-common
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   260
Summary:        Common translations for %{appname}
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
   261
Group:          System/Localization
1097
840132a4a9b3 Firefox 68.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1096
diff changeset
   262
Provides:       locale(%{name}:ar;ca;cs;da;de;el;en_GB;es_AR;es_CL;es_ES;fi;fr;hu;it;ja;ko;nb_NO;nl;pl;pt_BR;pt_PT;ru;sv_SE;zh_CN;zh_TW)
1136
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   263
# This is there for updates from Firefox before the translations-package was split up into 2 packages
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   264
Provides:       %{name}-translations
46
c743908ffe6f Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 36
diff changeset
   265
Requires:       %{name} = %{version}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   266
Obsoletes:      %{name}-translations < %{version}-%{release}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   267
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   268
%description translations-common
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   269
This package contains several common languages for the user interface
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   270
of %{appname}.
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   271
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   272
%package translations-other
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   273
Summary:        Extra translations for %{appname}
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
   274
Group:          System/Localization
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   275
Provides:       locale(%{name}:ach;af;an;ast;az;be;bg;bn;br;bs;cak;cy;dsb;en_CA;eo;es_MX;et;eu;fa;ff;fy_NL;ga_IE;gd;gl;gn;gu_IN;he;hi_IN;hr;hsb;hy_AM;ia;id;is;ka;kab;kk;km;kn;lij;lt;lv;mk;mr;ms;my;ne_NP;nn_NO;oc;pa_IN;rm;ro;si;sk;sl;son;sq;sr;ta;te;th;tr;uk;ur;uz;vi;xh)
46
c743908ffe6f Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 36
diff changeset
   276
Requires:       %{name} = %{version}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   277
Obsoletes:      %{name}-translations < %{version}-%{release}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   278
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   279
%description translations-other
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   280
This package contains rarely used languages for the user interface
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   281
of %{appname}.
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   282
%endif
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   283
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   284
%package branding-upstream
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   285
Summary:        Upstream branding for %{appname}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   286
Group:          Productivity/Networking/Web/Browsers
648
6fd0ed97283f fix upstream version provides
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 647
diff changeset
   287
Provides:       %{name}-branding = %{version}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   288
Conflicts:      otherproviders(%{name}-branding)
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   289
Supplements:    packageand(%{name}:branding-upstream)
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   290
#BRAND: Provide three files -
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   291
#BRAND: /usr/lib/firefox/browserconfig.properties that contains the
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   292
#BRAND: default homepage and some other default configuration options
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   293
#BRAND: /usr/lib/firefox/defaults/profile/bookmarks.html that contains
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   294
#BRAND: the list of default bookmarks
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   295
#BRAND: It's also possible to create a file
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   296
#BRAND: /usr/lib/firefox/defaults/preferences/firefox-$vendor.js to set
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   297
#BRAND: custom preference overrides.
871
4c6e8495720b beta update
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 869
diff changeset
   298
#BRAND: It's also possible to drop files in /usr/lib/firefox/distribution/searchplugins/common/
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   299
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   300
%description branding-upstream
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   301
This package provides upstream look and feel for %{appname}.
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   302
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   303
%if %crashreporter
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   304
%package buildsymbols
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   305
Summary:        Breakpad buildsymbols for %{appname}
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   306
Group:          Development/Debug
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   307
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   308
%description buildsymbols
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   309
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
   310
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
   311
%endif
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   312
1101
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   313
%if !%{with only_print_mozconfig}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   314
%prep
707
bfa2e0576454 update to 28.0b9
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 705
diff changeset
   315
%if %localize
1097
840132a4a9b3 Firefox 68.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1096
diff changeset
   316
840132a4a9b3 Firefox 68.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1096
diff changeset
   317
# If generated incorrectly, the tarball will be ~270B in
840132a4a9b3 Firefox 68.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1096
diff changeset
   318
# size, so 1MB seems like good enough limit to check.
840132a4a9b3 Firefox 68.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1096
diff changeset
   319
MINSIZE=1048576
1106
6c6375987b6c rebased
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1104
diff changeset
   320
if (( $(stat -Lc%s "%{SOURCE7}") < MINSIZE)); then
1097
840132a4a9b3 Firefox 68.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1096
diff changeset
   321
    echo "Translations tarball %{SOURCE7} not generated properly."
840132a4a9b3 Firefox 68.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1096
diff changeset
   322
    exit 1
840132a4a9b3 Firefox 68.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1096
diff changeset
   323
fi
840132a4a9b3 Firefox 68.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1096
diff changeset
   324
1117
d6a688186de0 beta -> release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1116
diff changeset
   325
%setup -q -n %{srcname}-%{orig_version} -b 7
707
bfa2e0576454 update to 28.0b9
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 705
diff changeset
   326
%else
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   327
%setup -q -n %{srcname}-%{orig_version}
707
bfa2e0576454 update to 28.0b9
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 705
diff changeset
   328
%endif
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   329
cd $RPM_BUILD_DIR/%{srcname}-%{orig_version}
198
447791e42c9b Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 196
diff changeset
   330
%patch1 -p1
1008
77c890186192 removed obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1005
diff changeset
   331
%patch2 -p1
885
ee3c462047d5 42 beta cycle
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 884
diff changeset
   332
%patch3 -p1
1008
77c890186192 removed obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1005
diff changeset
   333
%patch4 -p1
1097
840132a4a9b3 Firefox 68.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1096
diff changeset
   334
%patch6 -p1
942
66115255ad6f prepare FF51 (currently 51.0b5)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 941
diff changeset
   335
%patch7 -p1
1097
840132a4a9b3 Firefox 68.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1096
diff changeset
   336
%patch8 -p1
1076
2823eb50c9a9 ARM updates
Guillaume GARDET <guillaume.gardet@opensuse.org>
parents: 1075
diff changeset
   337
%patch9 -p1
1092
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1089
diff changeset
   338
%patch11 -p1
1094
a25638dad81d final 67.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1093
diff changeset
   339
%patch12 -p1
1097
840132a4a9b3 Firefox 68.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1096
diff changeset
   340
%patch13 -p1
840132a4a9b3 Firefox 68.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1096
diff changeset
   341
%patch14 -p1
840132a4a9b3 Firefox 68.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1096
diff changeset
   342
%patch15 -p1
1101
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   343
%patch16 -p1
1108
33b03cfb3747 bugfixes, improvements
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1107
diff changeset
   344
%patch17 -p1
33b03cfb3747 bugfixes, improvements
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1107
diff changeset
   345
%patch18 -p1
33b03cfb3747 bugfixes, improvements
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1107
diff changeset
   346
%patch19 -p1
1109
972f68ac6b1a Firefox 69.0 as released to Factory/Tumbleweed
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1108
diff changeset
   347
%patch20 -p1
1101
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   348
%patch21 -p1
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   349
%patch22 -p1
1136
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   350
%if %{with_pipewire0_3}
1134
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1133
diff changeset
   351
%patch23 -p1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1133
diff changeset
   352
%endif
1136
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   353
%patch24 -p1
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   354
%patch25 -p1
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   355
%patch26 -p1
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   356
%patch27 -p1
1138
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1137
diff changeset
   357
%patch28 -p1
1145
fbfd8f7cbd53 FF 81 final
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1144
diff changeset
   358
%patch29 -p1 -R
715
e1c226a4de34 AArch64 porting
Dirk M?ller <dmueller@suse.com>
parents: 714
diff changeset
   359
# Firefox
e1c226a4de34 AArch64 porting
Dirk M?ller <dmueller@suse.com>
parents: 714
diff changeset
   360
%patch101 -p1
e1c226a4de34 AArch64 porting
Dirk M?ller <dmueller@suse.com>
parents: 714
diff changeset
   361
%patch102 -p1
1143
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   362
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   363
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   364
%build
1101
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   365
%if !%{with only_print_mozconfig}
276
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 272
diff changeset
   366
# no need to add build time to binaries
1097
840132a4a9b3 Firefox 68.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1096
diff changeset
   367
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
276
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 272
diff changeset
   368
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 272
diff changeset
   369
TIME="\"$(date -d "${modified}" "+%%R")\""
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 272
diff changeset
   370
find . -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} +
1136
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   371
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   372
# SLE-12 provides python36, but that package does not provide a python3 binary
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   373
%if 0%{?sle_version} >= 120000 && 0%{?sle_version} < 150000
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   374
sed -i "s/python3/python36/g" configure.in
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   375
sed -i "s/python3/python36/g" mach
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   376
export PYTHON3=/usr/bin/python36
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   377
%endif
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   378
276
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 272
diff changeset
   379
#
398
937669e1c537 ported and reenabled KDE integration (bnc#746591)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 395
diff changeset
   380
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
   381
if test "$kdehelperversion" != %{kde_helper_version}; then
937669e1c537 ported and reenabled KDE integration (bnc#746591)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 395
diff changeset
   382
  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
   383
  exit 1
937669e1c537 ported and reenabled KDE integration (bnc#746591)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 395
diff changeset
   384
fi
1137
909f866430ee spec updates
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1136
diff changeset
   385
1114
572ec48f3fe8 Firefox 71.0b11
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1113
diff changeset
   386
source %{SOURCE4}
1143
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   387
%endif
1101
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   388
1112
8a4f5aea2475 Firefox 70.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1111
diff changeset
   389
export CARGO_HOME=${RPM_BUILD_DIR}/%{srcname}-%{orig_version}/.cargo
1114
572ec48f3fe8 Firefox 71.0b11
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1113
diff changeset
   390
export MOZ_SOURCE_CHANGESET=$RELEASE_TAG
572ec48f3fe8 Firefox 71.0b11
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1113
diff changeset
   391
export SOURCE_REPO=$RELEASE_REPO
572ec48f3fe8 Firefox 71.0b11
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1113
diff changeset
   392
export source_repo=$RELEASE_REPO
572ec48f3fe8 Firefox 71.0b11
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1113
diff changeset
   393
export MOZ_SOURCE_REPO=$RELEASE_REPO
572ec48f3fe8 Firefox 71.0b11
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1113
diff changeset
   394
export MOZ_BUILD_DATE=$RELEASE_TIMESTAMP
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   395
export MOZILLA_OFFICIAL=1
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   396
export BUILD_OFFICIAL=1
344
880a90eb0f92 enable telemetry opt-in prompt
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 339
diff changeset
   397
export MOZ_TELEMETRY_REPORTING=1
1145
fbfd8f7cbd53 FF 81 final
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1144
diff changeset
   398
export MACH_USE_SYSTEM_PYTHON=1
953
6b282f295753 53.0b4 (complete)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 951
diff changeset
   399
%if 0%{?suse_version} <= 1320
1136
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   400
export CC=gcc-9
1083
2f7023025374 reduced memory requirements and rely on memory limitations in parallelization
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1082
diff changeset
   401
%else
2f7023025374 reduced memory requirements and rely on memory limitations in parallelization
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1082
diff changeset
   402
%if 0%{?clang_build} == 0
2f7023025374 reduced memory requirements and rely on memory limitations in parallelization
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1082
diff changeset
   403
export CC=gcc
2f7023025374 reduced memory requirements and rely on memory limitations in parallelization
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1082
diff changeset
   404
export CXX=g++
2f7023025374 reduced memory requirements and rely on memory limitations in parallelization
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1082
diff changeset
   405
%endif
953
6b282f295753 53.0b4 (complete)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 951
diff changeset
   406
%endif
806
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 805
diff changeset
   407
%ifarch %arm %ix86
801
f5f6f5547c2b merge changes from OBS Factory submissions
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 797
diff changeset
   408
# Limit RAM usage during link
802
6c8dd9468bcc 33.1 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 801
diff changeset
   409
export LDFLAGS="${LDFLAGS} -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
631
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 623
diff changeset
   410
%endif
916
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
   411
%if 0%{?build_hardened}
1084
b0b3c507e253 latest Factory
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1083
diff changeset
   412
export LDFLAGS="${LDFLAGS} -fPIC -Wl,-z,relro,-z,now"
916
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
   413
%endif
693
ac3e73b8c89d add missing changes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 692
diff changeset
   414
%ifarch ppc64 ppc64le
1083
2f7023025374 reduced memory requirements and rely on memory limitations in parallelization
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1082
diff changeset
   415
%if 0%{?clang_build} == 0
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   416
export CFLAGS="$CFLAGS -mminimal-toc"
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   417
%endif
1083
2f7023025374 reduced memory requirements and rely on memory limitations in parallelization
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1082
diff changeset
   418
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   419
export CXXFLAGS="$CFLAGS"
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   420
export MOZCONFIG=$RPM_BUILD_DIR/mozconfig
1101
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   421
%if %{with only_print_mozconfig}
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   422
echo "export CC=$CC"
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   423
echo "export CXX=$CXX"
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   424
echo "export CFLAGS=\"$CFLAGS\""
1137
909f866430ee spec updates
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1136
diff changeset
   425
echo "export CXXFLAGS=\"$CXXFLAGS\""
1101
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   426
echo "export LDFLAGS=\"$LDFLAGS\""
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   427
echo "export RUSTFLAGS=\"$RUSTFLAGS\""
1137
909f866430ee spec updates
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1136
diff changeset
   428
echo "export CARGO_HOME=\"$CARGO_HOME\""
909f866430ee spec updates
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1136
diff changeset
   429
echo "export PATH=\"$PATH\""
909f866430ee spec updates
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1136
diff changeset
   430
echo "export LD_LIBRARY_PATH=\"$LD_LIBRARY_PATH\""
909f866430ee spec updates
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1136
diff changeset
   431
echo "export PKG_CONFIG_PATH=\"$PKG_CONFIG_PATH\""
909f866430ee spec updates
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1136
diff changeset
   432
echo "export MOZCONFIG=\"$MOZCONFIG\""
909f866430ee spec updates
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1136
diff changeset
   433
echo "export MOZILLA_OFFICIAL=1"
909f866430ee spec updates
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1136
diff changeset
   434
echo "export BUILD_OFFICIAL=1"
909f866430ee spec updates
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1136
diff changeset
   435
echo "export MOZ_TELEMETRY_REPORTING=1"
1101
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   436
echo ""
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   437
cat << EOF
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   438
%else
1143
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   439
%ifarch aarch64 %arm
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   440
%limit_build -m 2000
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   441
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   442
cat << EOF > $MOZCONFIG
1101
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   443
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   444
mk_add_options MOZILLA_OFFICIAL=1
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   445
mk_add_options BUILD_OFFICIAL=1
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   446
mk_add_options MOZ_MAKE_FLAGS=%{?jobs:-j%jobs}
155
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   447
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   448
. \$topsrcdir/browser/config/mozconfig
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   449
ac_add_options --prefix=%{_prefix}
925
05d175c5957e added upstream patch so system plugins/extensions are correctly
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 923
diff changeset
   450
ac_add_options --libdir=%{_libdir}
05d175c5957e added upstream patch so system plugins/extensions are correctly
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 923
diff changeset
   451
ac_add_options --includedir=%{_includedir}
767
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 764
diff changeset
   452
ac_add_options --enable-release
1136
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   453
%if 0%{?sle_version} >= 120000 && 0%{?sle_version} < 150000
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   454
ac_add_options --enable-default-toolkit=cairo-gtk3
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   455
%else
1121
004e4b1efb26 Firefox 73.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1120
diff changeset
   456
ac_add_options --enable-default-toolkit=cairo-gtk3-wayland
1136
d068eb84b4d3 sync SLE specifics
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1135
diff changeset
   457
%endif
1071
8dc7d19e8298 firefox 62.0.2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1070
diff changeset
   458
# bmo#1441155 - Disable the generation of Rust debug symbols on Linux32
1081
9fec29d2ead2 latest updates from Factory
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1079
diff changeset
   459
%ifarch %ix86 %arm
1071
8dc7d19e8298 firefox 62.0.2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1070
diff changeset
   460
ac_add_options --disable-debug-symbols
1084
b0b3c507e253 latest Factory
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1083
diff changeset
   461
%else
b0b3c507e253 latest Factory
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1083
diff changeset
   462
ac_add_options --enable-debug-symbols
1071
8dc7d19e8298 firefox 62.0.2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1070
diff changeset
   463
%endif
1121
004e4b1efb26 Firefox 73.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1120
diff changeset
   464
# building with elf-hack started to fail everywhere with FF73
004e4b1efb26 Firefox 73.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1120
diff changeset
   465
#%if 0%{?suse_version} > 1549
1098
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1097
diff changeset
   466
%ifnarch aarch64 ppc64 ppc64le s390x
916
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
   467
ac_add_options --disable-elf-hack
777
f1c5ccf4d1a7 changelog
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 776
diff changeset
   468
%endif
1121
004e4b1efb26 Firefox 73.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1120
diff changeset
   469
#%endif
568
2c74c5927ea2 first working Aurora 18 build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 565
diff changeset
   470
ac_add_options --with-system-nspr
522
fdca14856f37 snapshot update (20120807)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 515
diff changeset
   471
ac_add_options --with-system-nss
1140
a9aa543a508a FF79 latest
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1139
diff changeset
   472
ac_add_options --with-ccache
707
bfa2e0576454 update to 28.0b9
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 705
diff changeset
   473
%if %{localize}
155
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   474
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
   475
%endif
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   476
#ac_add_options --with-system-jpeg    # libjpeg-turbo is used internally
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   477
#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
   478
ac_add_options --with-system-zlib
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   479
ac_add_options --disable-updater
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   480
ac_add_options --disable-tests
945
7b1e775ff77a FF52 as released
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 944
diff changeset
   481
ac_add_options --enable-alsa
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   482
ac_add_options --disable-debug
265
f9de3817b442 build fixes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 264
diff changeset
   483
#ac_add_options --enable-chrome-format=jar
409
ff30593d2daa switch to 12.0dev
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 408
diff changeset
   484
ac_add_options --enable-update-channel=%{update_channel}
964
218a4e337cfe use mozilla geolocation api instead of broken google one
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 960
diff changeset
   485
ac_add_options --with-mozilla-api-keyfile=%{SOURCE18}
1143
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   486
# Google-service currently not available for free anymore
1138
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1137
diff changeset
   487
#ac_add_options --with-google-location-service-api-keyfile=%{SOURCE19}
1089
eca1c1f2fe50 Firefox 66.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1087
diff changeset
   488
ac_add_options --with-google-safebrowsing-api-keyfile=%{SOURCE19}
1070
18f97bd2c2bf update to b20
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1069
diff changeset
   489
ac_add_options --with-unsigned-addon-scopes=app
1138
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1137
diff changeset
   490
ac_add_options --allow-addon-sideload
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   491
%if %branding
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   492
ac_add_options --enable-official-branding
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   493
%endif
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   494
ac_add_options --enable-libproxy
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   495
%if ! %crashreporter
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   496
ac_add_options --disable-crashreporter
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   497
%endif
371
ead21d122ed0 introduce --disable-neon option and use on ARM
Joop Boonen <joop.boonen@opensuse.org>
parents: 370
diff changeset
   498
%ifarch %arm
908
b29b47737173 sync from mozilla:Factory
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 907
diff changeset
   499
ac_add_options --with-fpu=vfpv3-d16
b29b47737173 sync from mozilla:Factory
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 907
diff changeset
   500
ac_add_options --with-float-abi=hard
1047
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
   501
%ifarch armv6l armv6hl
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
   502
ac_add_options --with-arch=armv6
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
   503
%else
908
b29b47737173 sync from mozilla:Factory
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 907
diff changeset
   504
ac_add_options --with-arch=armv7-a
640
68ead6c93b7d Explicitly disable WebRTC support on non-x86, the configure script
schwab@linux-m68k.org
parents: 639
diff changeset
   505
%endif
1047
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
   506
%endif
1098
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1097
diff changeset
   507
# mitigation/workaround for bmo#1512162
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   508
%ifarch s390x
1098
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1097
diff changeset
   509
ac_add_options --enable-optimize="-O1"
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1097
diff changeset
   510
%endif
1086
ed1c30c5f456 Firefox 65.0.1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1085
diff changeset
   511
%ifarch x86_64
ed1c30c5f456 Firefox 65.0.1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1085
diff changeset
   512
# LTO needs newer toolchain stack only (at least GCC 8.2.1 (r268506)
ed1c30c5f456 Firefox 65.0.1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1085
diff changeset
   513
%if 0%{?suse_version} > 1500
ed1c30c5f456 Firefox 65.0.1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1085
diff changeset
   514
ac_add_options --enable-lto
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   515
%if 0%{?do_profiling}
1096
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1094
diff changeset
   516
ac_add_options MOZ_PGO=1
1086
ed1c30c5f456 Firefox 65.0.1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1085
diff changeset
   517
%endif
ed1c30c5f456 Firefox 65.0.1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1085
diff changeset
   518
%endif
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   519
%endif
708
f15494a6dc10 fix spec syntax
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 707
diff changeset
   520
EOF
1101
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   521
%if !%{with only_print_mozconfig}
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   522
%ifarch ppc64 s390x s390
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   523
# NOTE: Currently, system-icu is too old, so we can't build with that,
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   524
#       but have to generate the .dat-file freshly. This seems to be a
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   525
#       less fragile approach anyways.
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   526
# ac_add_options --with-system-icu
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   527
echo "Generate big endian version of config/external/icu/data/icud58l.dat"
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   528
./mach python intl/icu_sources_data.py .
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   529
ls -l config/external/icu/data
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   530
rm -f config/external/icu/data/icudt*l.dat
a4709640638e added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1099
diff changeset
   531
%endif
1141
edb0ebe8cccc Firefox 80.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1140
diff changeset
   532
ccache -s
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   533
%if 0%{?do_profiling}
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   534
xvfb-run --server-args="-screen 0 1920x1080x24" \
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   535
%endif
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   536
./mach build -v
1117
d6a688186de0 beta -> release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1116
diff changeset
   537
d6a688186de0 beta -> release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1116
diff changeset
   538
# build additional locales
d6a688186de0 beta -> release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1116
diff changeset
   539
%if %localize
d6a688186de0 beta -> release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1116
diff changeset
   540
mkdir -p %{buildroot}%{progdir}/browser/extensions
d6a688186de0 beta -> release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1116
diff changeset
   541
truncate -s 0 %{_tmppath}/translations.{common,other}
1143
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   542
# langpack-build can not be done in parallel easily (see https://bugzilla.mozilla.org/show_bug.cgi?id=1660943)
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   543
# Therefore, we have to have a separate obj-dir for each language
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   544
# We do this, by creating a mozconfig-template with the necessary switches
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   545
# and a placeholder obj-dir, which gets copied and modified for each language
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   546
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   547
# Create mozconfig-template for langbuild
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   548
cat << EOF > ${MOZCONFIG}_LANG
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   549
mk_add_options MOZILLA_OFFICIAL=1
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   550
mk_add_options BUILD_OFFICIAL=1
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   551
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj_LANG
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   552
. \$topsrcdir/browser/config/mozconfig
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   553
ac_add_options --prefix=%{_prefix}
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   554
ac_add_options --with-l10n-base=$RPM_BUILD_DIR/l10n
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   555
ac_add_options --disable-updater
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   556
%if %branding
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   557
ac_add_options --enable-official-branding
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   558
%endif
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   559
EOF
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   560
1150
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1149
diff changeset
   561
%ifarch %ix86
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1149
diff changeset
   562
%define njobs 1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1149
diff changeset
   563
%else
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1149
diff changeset
   564
%define njobs 0%{?jobs:%jobs}
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1149
diff changeset
   565
%endif
1141
edb0ebe8cccc Firefox 80.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1140
diff changeset
   566
sed -r '/^(ja-JP-mac|ga-IE|en-US|)$/d;s/ .*$//' $RPM_BUILD_DIR/%{srcname}-%{orig_version}/browser/locales/shipped-locales \
1150
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1149
diff changeset
   567
    | xargs -n 1 %{?njobs:-P %njobs} -I {} /bin/sh -c '
1117
d6a688186de0 beta -> release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1116
diff changeset
   568
        locale=$1
1143
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   569
        cp ${MOZCONFIG}_LANG ${MOZCONFIG}_$locale
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   570
        sed -i "s|obj_LANG|obj_$locale|" ${MOZCONFIG}_$locale
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   571
        export MOZCONFIG=${MOZCONFIG}_$locale
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   572
        # nsinstall is needed for langpack-build. It is already built by `./mach build`, but building it again is very fast
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   573
        ./mach build config/nsinstall langpack-$locale
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   574
        cp -L ../obj_$locale/dist/linux-*/xpi/firefox-%{orig_version}.$locale.langpack.xpi \
1138
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1137
diff changeset
   575
            %{buildroot}%{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org.xpi
1117
d6a688186de0 beta -> release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1116
diff changeset
   576
        # remove prefs, profile defaults, and hyphenation from langpack
1138
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1137
diff changeset
   577
        #rm -rf %{buildroot}%{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org/defaults
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1137
diff changeset
   578
        #rm -rf %{buildroot}%{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org/hyphenation
1117
d6a688186de0 beta -> release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1116
diff changeset
   579
        # check against the fixed common list and sort into the right filelist
d6a688186de0 beta -> release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1116
diff changeset
   580
        _matched=0
d6a688186de0 beta -> release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1116
diff changeset
   581
        for _match in ar ca cs da de el en-GB es-AR es-CL es-ES fi fr hu it ja ko nb-NO nl pl pt-BR pt-PT ru sv-SE zh-CN zh-TW; do
d6a688186de0 beta -> release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1116
diff changeset
   582
            [ "$_match" = "$locale" ] && _matched=1
d6a688186de0 beta -> release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1116
diff changeset
   583
        done
d6a688186de0 beta -> release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1116
diff changeset
   584
        [ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other
1138
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1137
diff changeset
   585
        echo %{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org.xpi \
1117
d6a688186de0 beta -> release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1116
diff changeset
   586
            >> %{_tmppath}/translations.$_l10ntarget
d6a688186de0 beta -> release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1116
diff changeset
   587
' -- {}
d6a688186de0 beta -> release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1116
diff changeset
   588
%endif
d6a688186de0 beta -> release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1116
diff changeset
   589
1141
edb0ebe8cccc Firefox 80.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1140
diff changeset
   590
ccache -s
1143
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   591
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   592
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   593
%install
155
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   594
cd $RPM_BUILD_DIR/obj
1115
ed3548a16248 fix reference
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1114
diff changeset
   595
source %{SOURCE4}
1116
52b1745787cf fix sourced variables
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1115
diff changeset
   596
export MOZ_SOURCE_STAMP=$RELEASE_TAG
52b1745787cf fix sourced variables
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1115
diff changeset
   597
export MOZ_SOURCE_REPO=$RELEASE_REPO
733
b2202fea7983 manual forward merge from 29 and 30 branches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 727
diff changeset
   598
# 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
   599
# 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
   600
# 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
   601
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
   602
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
   603
#DEBUG (break the build if searchplugins are missing / temporary)
642
b30da62025bc 21 is now beta
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 637
diff changeset
   604
grep amazondotcom dist/firefox/browser/omni.ja
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   605
# copy tree into RPM_BUILD_ROOT
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   606
mkdir -p %{buildroot}%{progdir}
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   607
cp -rf $RPM_BUILD_DIR/obj/dist/%{srcname}/* %{buildroot}%{progdir}
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   608
mkdir -p %{buildroot}%{progdir}/distribution/extensions
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   609
mkdir -p %{buildroot}%{progdir}/browser/defaults/preferences/
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   610
# renaming executables (for regular vs. ESR)
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   611
%if "%{srcname}" != "%{progname}"
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   612
mv %{buildroot}%{progdir}/%{srcname} %{buildroot}%{progdir}/%{progname}
1112
8a4f5aea2475 Firefox 70.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1111
diff changeset
   613
mv %{buildroot}%{progdir}/%{srcname}-bin %{buildroot}%{progdir}/%{progname}-bin
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   614
%endif
781
4ee017942f28 use /usr/share/myspell directly and remove add-plugins.sh
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 780
diff changeset
   615
# install gre prefs
4ee017942f28 use /usr/share/myspell directly and remove add-plugins.sh
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 780
diff changeset
   616
install -m 644 %{SOURCE13} %{buildroot}%{progdir}/defaults/pref/
4ee017942f28 use /usr/share/myspell directly and remove add-plugins.sh
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 780
diff changeset
   617
# install browser prefs
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   618
install -m 644 %{SOURCE9} %{buildroot}%{progdir}/browser/defaults/preferences/firefox.js
1117
d6a688186de0 beta -> release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1116
diff changeset
   619
342
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   620
# remove some executable permissions
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   621
find %{buildroot}%{progdir} \
342
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   622
     -name "*.js" -o \
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   623
     -name "*.jsm" -o \
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   624
     -name "*.rdf" -o \
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   625
     -name "*.properties" -o \
356
30a00f382aed version 9.0b2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 355
diff changeset
   626
     -name "*.dtd" -o \
30a00f382aed version 9.0b2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 355
diff changeset
   627
     -name "*.txt" -o \
30a00f382aed version 9.0b2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 355
diff changeset
   628
     -name "*.xml" -o \
1048
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1047
diff changeset
   629
     -name "*.css" \
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1047
diff changeset
   630
     -exec chmod a-x {} +
541
830e50bbfc79 working Aurora 17.0 build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 540
diff changeset
   631
# remove mkdir.done files from installed base
1048
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1047
diff changeset
   632
find %{buildroot}%{progdir} -type f -name ".mkdir.done" -delete
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   633
# overwrite the mozilla start-script and link it to /usr/bin
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   634
mkdir --parents %{buildroot}/usr/bin
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   635
sed "s:%%PREFIX:%{_prefix}:g
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   636
s:%%PROGDIR:%{progdir}:g
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   637
s:%%APPNAME:%{progname}:g
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   638
s:%%PROFILE:.mozilla/firefox:g" \
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   639
  %{SOURCE3} > %{buildroot}%{progdir}/%{progname}.sh
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   640
chmod 755 %{buildroot}%{progdir}/%{progname}.sh
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   641
ln -sf ../..%{progdir}/%{progname}.sh %{buildroot}%{_bindir}/%{progname}
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   642
# desktop file
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   643
mkdir -p %{buildroot}%{_datadir}/applications
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   644
sed "s:%%NAME:%{appname}:g
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   645
s:%%EXEC:%{progname}:g
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   646
s:%%ICON:%{progname}:g" \
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   647
  %{SOURCE1} > %{buildroot}%{_datadir}/applications/%{desktop_file_name}.desktop
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   648
%suse_update_desktop_file %{desktop_file_name} Network WebBrowser GTK
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   649
# additional mime-types
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   650
mkdir -p %{buildroot}%{_datadir}/mime/packages
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   651
cp %{SOURCE8} %{buildroot}%{_datadir}/mime/packages/%{progname}.xml
774
f61bd1cd52c2 added basic appstream appdata information
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 773
diff changeset
   652
# appdata
1140
a9aa543a508a FF79 latest
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1139
diff changeset
   653
mkdir -p %{buildroot}%{_datadir}/metainfo
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   654
sed "s:firefox.desktop:%{desktop_file_name}:g" \
1140
a9aa543a508a FF79 latest
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1139
diff changeset
   655
  %{SOURCE15} > %{buildroot}%{_datadir}/metainfo/%{desktop_file_name}.appdata.xml
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   656
# install man-page
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   657
mkdir -p %{buildroot}%{_mandir}/man1/
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   658
cp %{SOURCE11} %{buildroot}%{_mandir}/man1/%{progname}.1
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   659
##########
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   660
# ADDONS
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   661
#
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   662
mkdir -p %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_appid}
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   663
mkdir -p %{buildroot}%{_libdir}/mozilla/extensions/%{firefox_appid}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   664
%if %branding
1121
004e4b1efb26 Firefox 73.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1120
diff changeset
   665
# Install symbolic icon for GNOME
004e4b1efb26 Firefox 73.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1120
diff changeset
   666
mkdir -p %{buildroot}%{gnome_dir}/share/icons/hicolor/symbolic/apps/
004e4b1efb26 Firefox 73.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1120
diff changeset
   667
cp %{_builddir}/%{srcname}-%{orig_version}/browser/branding/official/content/identity-icons-brand.svg \
004e4b1efb26 Firefox 73.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1120
diff changeset
   668
   %{buildroot}%{gnome_dir}/share/icons/hicolor/symbolic/apps/%{progname}-symbolic.svg
1034
c88f42fc1f36 fixed filelist
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1032
diff changeset
   669
for size in 16 22 24 32 48 64 128 256; do
269
9ec311cdd7c8 no official branding yet
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 265
diff changeset
   670
%else
9ec311cdd7c8 no official branding yet
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 265
diff changeset
   671
for size in 16 32 48; do
9ec311cdd7c8 no official branding yet
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 265
diff changeset
   672
%endif
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   673
  mkdir -p %{buildroot}%{gnome_dir}/share/icons/hicolor/${size}x${size}/apps/
839
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 838
diff changeset
   674
  cp %{buildroot}%{progdir}/browser/chrome/icons/default/default$size.png \
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   675
         %{buildroot}%{gnome_dir}/share/icons/hicolor/${size}x${size}/apps/%{progname}.png
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   676
done
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   677
# excludes
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   678
rm -f %{buildroot}%{progdir}/updater.ini
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   679
rm -f %{buildroot}%{progdir}/removed-files
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   680
rm -f %{buildroot}%{progdir}/README.txt
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   681
rm -f %{buildroot}%{progdir}/old-homepage-default.properties
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   682
rm -f %{buildroot}%{progdir}/run-mozilla.sh
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   683
rm -f %{buildroot}%{progdir}/LICENSE
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   684
rm -f %{buildroot}%{progdir}/precomplete
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   685
rm -f %{buildroot}%{progdir}/update-settings.ini
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   686
%if 0%{?devpkg}
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
   687
# 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
   688
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
   689
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
   690
# inspired by mandriva
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   691
mkdir -p %{buildroot}%{_sysconfdir}/rpm
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   692
cat <<'FIN' >%{buildroot}%{_sysconfdir}/rpm/macros.%{progname}
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
   693
# 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
   694
%%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
   695
%%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
   696
%%firefox_mainver            %{mainver}
238
d537c4a65693 fixed rpm macros (bnc#679950)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 237
diff changeset
   697
%%firefox_mozillapath        %%{_libdir}/%{progname}
1119
4c5d44d40a03 Firefox 72.0.1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1118
diff changeset
   698
%%firefox_pluginsdir         %%{_libdir}/mozilla/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
   699
%%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
   700
%%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
   701
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
   702
%%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
   703
   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
   704
   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
   705
   %%{__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
   706
   %%{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
   707
FIN
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   708
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   709
# fdupes
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   710
%fdupes %{buildroot}%{progdir}
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   711
%fdupes %{buildroot}%{_datadir}
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   712
# create breakpad debugsymbols
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   713
%if %crashreporter
904
6a889427cd4f 45.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 903
diff changeset
   714
SYMBOLS_NAME="firefox-%{version}-` echo '%{release}' | sed 's@\.[^\.]\+$@@' `.%{_arch}-%{suse_version}-symbols"
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   715
make buildsymbols \
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   716
  SYMBOL_INDEX_NAME="$SYMBOLS_NAME.txt" \
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   717
  SYMBOL_FULL_ARCHIVE_BASENAME="$SYMBOLS_NAME-full" \
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   718
  SYMBOL_ARCHIVE_BASENAME="$SYMBOLS_NAME"
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   719
if [ -e dist/*symbols.zip ]; then
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   720
  mkdir -p %{buildroot}%{_datadir}/mozilla/
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   721
  cp dist/*symbols.zip %{buildroot}%{_datadir}/mozilla/
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   722
fi
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   723
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   724
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   725
%clean
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   726
rm -rf %{buildroot}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   727
%if %localize
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   728
rm -rf %{_tmppath}/translations.*
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   729
%endif
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   730
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   731
%post
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   732
# 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
   733
%mime_database_post
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   734
%desktop_database_post
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   735
%icon_theme_cache_post
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   736
exit 0
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   737
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   738
%postun
219
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   739
%icon_theme_cache_postun
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   740
%desktop_database_postun
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   741
%mime_database_postun
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   742
exit 0
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   743
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   744
%files
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   745
%defattr(-,root,root)
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   746
%dir %{progdir}
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   747
%dir %{progdir}/browser/
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   748
%dir %{progdir}/browser/chrome/
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   749
%{progdir}/browser/defaults
904
6a889427cd4f 45.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 903
diff changeset
   750
%{progdir}/browser/features/
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   751
%{progdir}/browser/chrome/icons
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   752
%{progdir}/browser/omni.ja
647
9d8bdcdd4d2a 21.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 645
diff changeset
   753
%dir %{progdir}/distribution/
9d8bdcdd4d2a 21.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 645
diff changeset
   754
%{progdir}/distribution/extensions/
157
6f59409302d1 switching back to jar chrome format (instead of omni)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 155
diff changeset
   755
%{progdir}/defaults/
907
3ccb278a9ceb prepare gtk3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 906
diff changeset
   756
%dir %{progdir}/gtk2
3ccb278a9ceb prepare gtk3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 906
diff changeset
   757
%{progdir}/gtk2/libmozgtk.so
828
59013b3a51f5 update to 36.0b3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 826
diff changeset
   758
%{progdir}/gmp-clearkey/
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   759
%attr(755,root,root) %{progdir}/%{progname}.sh
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   760
%{progdir}/%{progname}
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   761
%{progdir}/%{progname}-bin
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   762
%{progdir}/application.ini
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   763
%{progdir}/dependentlibs.list
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   764
%{progdir}/*.so
368
8891dd9439a1 finalized Firefox 10.0b1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 367
diff changeset
   765
%{progdir}/omni.ja
932
a58cc7936ce7 Firefox 50.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 931
diff changeset
   766
%{progdir}/fonts/
983
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 982
diff changeset
   767
%{progdir}/pingsender
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   768
%{progdir}/platform.ini
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   769
%{progdir}/plugin-container
117
565d666e22a1 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 103
diff changeset
   770
%if %crashreporter
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   771
%{progdir}/crashreporter
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   772
%{progdir}/crashreporter.ini
270
785d28fc6d4d fix PPC build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 269
diff changeset
   773
%{progdir}/Throbber-small.gif
942
66115255ad6f prepare FF51 (currently 51.0b5)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 941
diff changeset
   774
%{progdir}/minidump-analyzer
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   775
%{progdir}/browser/crashreporter-override.ini
117
565d666e22a1 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 103
diff changeset
   776
%endif
213
b2978eba3a92 rename desktop file for 11.4 and above (bnc#664211)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 210
diff changeset
   777
%{_datadir}/applications/%{desktop_file_name}.desktop
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   778
%{_datadir}/mime/packages/%{progname}.xml
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
   779
%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
   780
%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
   781
%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
   782
%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
   783
%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
   784
%dir %{_libdir}/mozilla/extensions/%{firefox_appid}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   785
%{gnome_dir}/share/icons/hicolor/
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   786
%{_bindir}/%{progname}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   787
%doc %{_mandir}/man1/%{progname}.1.gz
1140
a9aa543a508a FF79 latest
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1139
diff changeset
   788
%{_datadir}/metainfo/
34
2d77a25d185f Add firefox-crashreporter.patch to fix Firefox' application.ini
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 33
diff changeset
   789
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   790
%if 0%{?devpkg}
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
   791
%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
   792
%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
   793
%{_bindir}/mozilla-get-app-id
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   794
%config %{_sysconfdir}/rpm/macros.%{progname}
1111
97a6da6d7e29 Firefox 69.0.3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1110
diff changeset
   795
%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
   796
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   797
%if %localize
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   798
%files translations-common -f %{_tmppath}/translations.common
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   799
%defattr(-,root,root)
46
c743908ffe6f Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 36
diff changeset
   800
%dir %{progdir}
1143
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   801
%dir %{progdir}/browser/extensions/
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   802
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   803
%files translations-other -f %{_tmppath}/translations.other
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   804
%defattr(-,root,root)
46
c743908ffe6f Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 36
diff changeset
   805
%dir %{progdir}
1143
ff28137410eb FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1141
diff changeset
   806
%dir %{progdir}/browser/extensions/
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   807
%endif
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   808
286
b1d254616456 reenable branding-upstream package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 285
diff changeset
   809
# 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
   810
# requirements if no other branding package is to be installed
b1d254616456 reenable branding-upstream package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 285
diff changeset
   811
%files branding-upstream
b1d254616456 reenable branding-upstream package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 285
diff changeset
   812
%defattr(-,root,root)
b1d254616456 reenable branding-upstream package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 285
diff changeset
   813
%dir %{progdir}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   814
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   815
%if %crashreporter
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   816
%files buildsymbols
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   817
%defattr(-,root,root)
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   818
%{_datadir}/mozilla/*.zip
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   819
%endif
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   820
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   821
%changelog