author | Wolfgang Rosenauer <wr@rosenauer.org> |
Sat, 23 Sep 2023 09:32:28 +0200 | |
branch | firefox117 |
changeset 1193 | 16de98d33e97 |
parent 1192 | 7612b8d8c46f |
permissions | -rw-r--r-- |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
1 |
# |
1182 | 2 |
# spec file |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
3 |
# |
1182 | 4 |
# Copyright (c) 2023 SUSE LLC |
1183 | 5 |
# Copyright (c) 2006-2023 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 | 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 |
|
1155
b8c834aafde2
Prepare 87.0 branch based on 86.0.1
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1154
diff
changeset
|
20 |
%define _dwz_low_mem_die_limit 40000000 |
b8c834aafde2
Prepare 87.0 branch based on 86.0.1
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1154
diff
changeset
|
21 |
%define _dwz_max_die_limit 200000000 |
b8c834aafde2
Prepare 87.0 branch based on 86.0.1
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1154
diff
changeset
|
22 |
|
780
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
23 |
# changed with every update |
1136 | 24 |
# orig_version vs. mainver: To have beta-builds |
25 |
# FF70beta3 would be released as FF69.99 |
|
26 |
# orig_version would be the upstream tar ball |
|
27 |
# orig_version 70.0 |
|
28 |
# orig_suffix b3 |
|
29 |
# major 69 |
|
1185 | 30 |
# mainver %%major.99 |
1193 | 31 |
%define major 117 |
32 |
%define mainver %major.0.1 |
|
33 |
%define orig_version 117.0.1 |
|
1163
849d6343405b
latest 92.0.1 version
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1162
diff
changeset
|
34 |
%define orig_suffix %{nil} |
849d6343405b
latest 92.0.1 version
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1162
diff
changeset
|
35 |
%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
|
36 |
%define branding 1 |
1163
849d6343405b
latest 92.0.1 version
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1162
diff
changeset
|
37 |
%define devpkg 1 |
916 | 38 |
|
1151 | 39 |
# PGO builds do not work in TW currently (bmo#1680306) |
1121 | 40 |
%define do_profiling 0 |
41 |
||
1127 | 42 |
# upstream default is clang (to use gcc for large parts set to 0) |
1161 | 43 |
%define clang_build 0 |
1082 | 44 |
|
1101
a4709640638e
added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1099
diff
changeset
|
45 |
%bcond_with only_print_mozconfig |
a4709640638e
added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1099
diff
changeset
|
46 |
|
1156 | 47 |
# define if ccache should be used or not |
1170 | 48 |
%define useccache 0 |
1156 | 49 |
|
1160 | 50 |
# SLE-12 doesn't have this macro |
51 |
%{!?_rpmmacrodir: %global _rpmmacrodir %{_rpmconfigdir}/macros.d} |
|
52 |
||
1190 | 53 |
# No i586 on SLE-12, as the rpmlints are broken and can't handle the big rpms resulting from this build. |
54 |
%if 0%{?sle_version} >= 120000 && 0%{?sle_version} < 150000 |
|
55 |
ExclusiveArch: aarch64 ppc64le x86_64 s390x |
|
56 |
%else |
|
982 | 57 |
# Firefox only supports i686 |
58 |
%ifarch %ix86 |
|
996
84d25951c2db
- Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents:
995
diff
changeset
|
59 |
ExclusiveArch: i586 i686 |
84d25951c2db
- Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents:
995
diff
changeset
|
60 |
BuildArch: i686 |
1180 | 61 |
%{expand:%%global optflags %(echo "%optflags"|sed -e s/i586/i686/) -march=i686 -mtune=generic -msse2} |
953 | 62 |
%endif |
1190 | 63 |
%endif |
1192 | 64 |
%{expand:%%global optflags %(echo "%optflags"|sed -e s/-flto=auto//) } |
943 | 65 |
|
780
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
66 |
# general build definitions |
809
af47260a332c
morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
807
diff
changeset
|
67 |
%define progname firefox |
1162 | 68 |
%define appname Firefox |
1163
849d6343405b
latest 92.0.1 version
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1162
diff
changeset
|
69 |
%define pkgname MozillaFirefox |
1111 | 70 |
%define srcname firefox |
809
af47260a332c
morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
807
diff
changeset
|
71 |
%define progdir %{_prefix}/%_lib/%{progname} |
af47260a332c
morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
807
diff
changeset
|
72 |
%define gnome_dir %{_prefix} |
af47260a332c
morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
807
diff
changeset
|
73 |
%define desktop_file_name %{progname} |
780
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
74 |
%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
|
75 |
%define __provides_exclude ^lib.*\\.so.*$ |
cd02d400c081
correct requires and provides handling (boo#1076907)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1029
diff
changeset
|
76 |
%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
|
77 |
%define localize 1 |
932 | 78 |
%ifarch %ix86 x86_64 |
79 |
%define crashreporter 1 |
|
80 |
%else |
|
780
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
81 |
%define crashreporter 0 |
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
82 |
%endif |
1157 | 83 |
%define with_pipewire0_3 1 |
84 |
%define wayland_supported 1 |
|
85 |
%if 0%{?sle_version} > 0 && 0%{?sle_version} < 150200 |
|
86 |
# pipewire is too old on Leap <=15.1 |
|
1138 | 87 |
%define with_pipewire0_3 0 |
1157 | 88 |
# Wayland is too old on Leap <=15.1 as well |
89 |
%define wayland_supported 0 |
|
1134 | 90 |
%endif |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
91 |
|
809
af47260a332c
morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
807
diff
changeset
|
92 |
Name: %{pkgname} |
363
48596576f932
update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
361
diff
changeset
|
93 |
BuildRequires: Mesa-devel |
996
84d25951c2db
- Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents:
995
diff
changeset
|
94 |
BuildRequires: alsa-devel |
363
48596576f932
update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
361
diff
changeset
|
95 |
BuildRequires: autoconf213 |
48596576f932
update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
361
diff
changeset
|
96 |
BuildRequires: dbus-1-glib-devel |
1096 | 97 |
BuildRequires: dejavu-fonts |
363
48596576f932
update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
361
diff
changeset
|
98 |
BuildRequires: fdupes |
1143
ff28137410eb
FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1141
diff
changeset
|
99 |
BuildRequires: memory-constraints |
1192 | 100 |
%if 0%{?suse_version} < 1550 && 0%{?sle_version} <= 150600 |
1190 | 101 |
BuildRequires: gcc12 |
102 |
BuildRequires: gcc12-c++ |
|
953 | 103 |
%else |
363
48596576f932
update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
361
diff
changeset
|
104 |
BuildRequires: gcc-c++ |
953 | 105 |
%endif |
1193 | 106 |
BuildRequires: cargo1.71 |
107 |
BuildRequires: rust1.71 |
|
1156 | 108 |
%if 0%{useccache} != 0 |
1140 | 109 |
BuildRequires: ccache |
1156 | 110 |
%endif |
895
b0e57b478b1b
merge change from mozilla:Factory (libXcomposite-devel requirement)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
894
diff
changeset
|
111 |
BuildRequires: libXcomposite-devel |
363
48596576f932
update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
361
diff
changeset
|
112 |
BuildRequires: libcurl-devel |
835 | 113 |
BuildRequires: libiw-devel |
114 |
BuildRequires: libproxy-devel |
|
716
cef565f1c325
update to Firefox 29.0b7
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
715
diff
changeset
|
115 |
BuildRequires: makeinfo |
1180 | 116 |
BuildRequires: mozilla-nspr-devel >= 4.35 |
1193 | 117 |
BuildRequires: mozilla-nss-devel >= 3.92 |
1125 | 118 |
BuildRequires: nasm >= 2.14 |
1190 | 119 |
BuildRequires: nodejs >= 12.22.12 |
1136 | 120 |
%if 0%{?sle_version} >= 120000 && 0%{?sle_version} < 150000 |
1190 | 121 |
BuildRequires: libXtst-devel |
1136 | 122 |
BuildRequires: python-libxml2 |
1190 | 123 |
BuildRequires: python39 |
124 |
BuildRequires: python39-curses |
|
125 |
BuildRequires: python39-devel |
|
1136 | 126 |
%else |
1192 | 127 |
%if 0%{?sle_version} >= 150000 && 0%{?sle_version} <= 150600 |
1188 | 128 |
BuildRequires: python39 |
129 |
BuildRequires: python39-curses |
|
130 |
BuildRequires: python39-devel |
|
131 |
%else |
|
132 |
BuildRequires: python3 >= 3.7 |
|
1182 | 133 |
BuildRequires: python3-curses |
1147 | 134 |
BuildRequires: python3-devel |
1136 | 135 |
%endif |
1188 | 136 |
%endif |
1177 | 137 |
BuildRequires: rust-cbindgen >= 0.24.3 |
363
48596576f932
update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
361
diff
changeset
|
138 |
BuildRequires: unzip |
48596576f932
update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
361
diff
changeset
|
139 |
BuildRequires: update-desktop-files |
401 | 140 |
BuildRequires: xorg-x11-libXt-devel |
1111 | 141 |
%if 0%{?do_profiling} |
1096 | 142 |
BuildRequires: xvfb-run |
1111 | 143 |
%endif |
363
48596576f932
update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
361
diff
changeset
|
144 |
BuildRequires: yasm |
48596576f932
update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
361
diff
changeset
|
145 |
BuildRequires: zip |
1054
fbfe323c62cd
Add conditional for pkgconfig(gconf-2.0) BuildRequires, and pass
<bjorn.lie@gmail.com>
parents:
1053
diff
changeset
|
146 |
%if 0%{?suse_version} < 1550 |
1097 | 147 |
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
|
148 |
%endif |
1136 | 149 |
%if (0%{?sle_version} >= 120000 && 0%{?sle_version} < 150000) |
150 |
BuildRequires: clang6-devel |
|
151 |
%else |
|
1128 | 152 |
BuildRequires: clang-devel >= 5 |
1136 | 153 |
%endif |
996
84d25951c2db
- Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents:
995
diff
changeset
|
154 |
BuildRequires: pkgconfig(glib-2.0) >= 2.22 |
907 | 155 |
BuildRequires: pkgconfig(gobject-2.0) |
1133
0a44f639e5ee
removed obsolete patch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1132
diff
changeset
|
156 |
BuildRequires: pkgconfig(gtk+-3.0) >= 3.14.0 |
907 | 157 |
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
|
158 |
BuildRequires: pkgconfig(libffi) |
84d25951c2db
- Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents:
995
diff
changeset
|
159 |
BuildRequires: pkgconfig(libpulse) |
1136 | 160 |
%if %{with_pipewire0_3} |
1134 | 161 |
BuildRequires: pkgconfig(libpipewire-0.3) |
162 |
%endif |
|
916 | 163 |
# libavcodec is required for H.264 support but the |
164 |
# openSUSE version is currently not able to play H.264 |
|
165 |
# therefore the Packman version is required |
|
166 |
# minimum version of libavcodec is 53 |
|
919
6838f0c032f8
-------------------------------------------------------------------
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
916
diff
changeset
|
167 |
Recommends: libavcodec-full >= 0.10.16 |
368
8891dd9439a1
finalized Firefox 10.0b1
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
367
diff
changeset
|
168 |
Version: %{mainver} |
375
d75cd0dac058
final 10.0 updates (changelog)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
373
diff
changeset
|
169 |
Release: 0 |
809
af47260a332c
morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
807
diff
changeset
|
170 |
%if "%{name}" == "MozillaFirefox" |
401 | 171 |
Provides: firefox = %{mainver} |
172 |
Provides: firefox = %{version}-%{release} |
|
809
af47260a332c
morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
807
diff
changeset
|
173 |
%endif |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
174 |
Provides: web_browser |
884 | 175 |
Provides: appdata() |
176 |
Provides: appdata(firefox.appdata.xml) |
|
263
64adf7ca3005
standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
262
diff
changeset
|
177 |
# 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
|
178 |
# 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
|
179 |
%define kde_helper_version 6 |
263
64adf7ca3005
standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
262
diff
changeset
|
180 |
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
|
181 |
Summary: Mozilla %{appname} Web Browser |
456
7b9ab7747a11
License change to MPL-2.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
447
diff
changeset
|
182 |
License: MPL-2.0 |
363
48596576f932
update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
361
diff
changeset
|
183 |
Group: Productivity/Networking/Web/Browsers |
1117 | 184 |
URL: http://www.mozilla.org/ |
1101
a4709640638e
added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1099
diff
changeset
|
185 |
%if !%{with only_print_mozconfig} |
1111 | 186 |
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
|
187 |
Source1: MozillaFirefox.desktop |
86
f2a830880862
Install as firefox4 in parallel to unversioned
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
84
diff
changeset
|
188 |
Source2: MozillaFirefox-rpmlintrc |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
189 |
Source3: mozilla.sh.in |
1097 | 190 |
Source4: tar_stamps |
1175 | 191 |
%if %{localize} |
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
|
192 |
Source7: l10n-%{orig_version}%{orig_suffix}.tar.xz |
1175 | 193 |
%endif |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
194 |
Source8: firefox-mimeinfo.xml |
543
24c3eafd49a1
fixed kde.js preferences
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
541
diff
changeset
|
195 |
Source9: firefox.js |
198
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
196
diff
changeset
|
196 |
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
|
197 |
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
|
198 |
Source13: spellcheck.js |
1185 | 199 |
Source14: https://github.com/openSUSE/firefox-scripts/raw/9b77cf0/create-tar.sh |
774
f61bd1cd52c2
added basic appstream appdata information
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
773
diff
changeset
|
200 |
Source15: firefox-appdata.xml |
1111 | 201 |
Source16: %{name}.changes |
1151 | 202 |
Source17: firefox-search-provider.ini |
992
b2ba34e0dc10
Firefox 55.0.3 and some other fixes
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
991
diff
changeset
|
203 |
# 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
|
204 |
# 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
|
205 |
# 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
|
206 |
Source18: mozilla-api-key |
992
b2ba34e0dc10
Firefox 55.0.3 and some other fixes
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
991
diff
changeset
|
207 |
Source19: google-api-key |
1111 | 208 |
Source20: https://ftp.mozilla.org/pub/%{srcname}/releases/%{version}%{orig_suffix}/source/%{srcname}-%{orig_version}%{orig_suffix}.source.tar.xz.asc |
209 |
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
|
210 |
# Gecko/Toolkit |
885 | 211 |
Patch1: mozilla-nongnome-proxies.patch |
1008
77c890186192
removed obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1005
diff
changeset
|
212 |
Patch2: mozilla-kde.patch |
77c890186192
removed obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1005
diff
changeset
|
213 |
Patch3: mozilla-ntlm-full-path.patch |
1114 | 214 |
Patch4: mozilla-aarch64-startup-crash.patch |
1170 | 215 |
Patch5: mozilla-fix-aarch64-libopus.patch |
216 |
Patch6: mozilla-s390-context.patch |
|
217 |
Patch7: mozilla-pgo.patch |
|
218 |
Patch8: mozilla-reduce-rust-debuginfo.patch |
|
1189 | 219 |
Patch10: mozilla-bmo1504834-part1.patch |
220 |
Patch11: mozilla-bmo1504834-part3.patch |
|
221 |
Patch12: mozilla-bmo1512162.patch |
|
222 |
Patch14: mozilla-bmo849632.patch |
|
223 |
Patch15: mozilla-bmo998749.patch |
|
224 |
Patch17: mozilla-libavcodec58_91.patch |
|
225 |
Patch18: mozilla-silence-no-return-type.patch |
|
226 |
Patch19: mozilla-bmo531915.patch |
|
227 |
Patch20: one_swizzle_to_rule_them_all.patch |
|
228 |
Patch21: svg-rendering.patch |
|
1190 | 229 |
Patch22: mozilla-partial-revert-1768632.patch |
1192 | 230 |
Patch23: mozilla-rust-disable-future-incompat.patch |
1193 | 231 |
Patch24: mozilla-bmo1822730.patch |
262
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
252
diff
changeset
|
232 |
# Firefox/browser |
715 | 233 |
Patch101: firefox-kde.patch |
1032
8220ea23b47d
remove obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1031
diff
changeset
|
234 |
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
|
235 |
%endif |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
236 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
1155
b8c834aafde2
Prepare 87.0 branch based on 86.0.1
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1154
diff
changeset
|
237 |
Requires(post): coreutils shared-mime-info desktop-file-utils |
b8c834aafde2
Prepare 87.0 branch based on 86.0.1
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1154
diff
changeset
|
238 |
Requires(postun):shared-mime-info desktop-file-utils |
1111 | 239 |
Requires: %{name}-branding >= 68 |
1140 | 240 |
%requires_ge mozilla-nspr |
241 |
%requires_ge mozilla-nss |
|
242 |
%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
|
243 |
Recommends: libcanberra0 |
703 | 244 |
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
|
245 |
# 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
|
246 |
Obsoletes: tracker-miner-firefox < 0.15 |
1111 | 247 |
%if 0%{?devpkg} == 0 |
248 |
Obsoletes: %{name}-devel < %{version} |
|
249 |
%endif |
|
1192 | 250 |
ExcludeArch: armv6l armv6hl ppc ppc64 |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
251 |
|
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
252 |
%description |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
253 |
Mozilla Firefox is a standalone web browser, designed for standards |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
254 |
compliance and performance. Its functionality can be enhanced via a |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
255 |
plethora of extensions. |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
256 |
|
1111 | 257 |
%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
|
258 |
%package devel |
809
af47260a332c
morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
807
diff
changeset
|
259 |
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
|
260 |
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
|
261 |
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
|
262 |
Requires: %{name} = %{version} |
401 | 263 |
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
|
264 |
Requires: perl(XML::Simple) |
1185 | 265 |
BuildArch: noarch |
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
|
266 |
|
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
|
267 |
%description devel |
809
af47260a332c
morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
807
diff
changeset
|
268 |
Development files for %{appname} to make packaging of addons easier. |
1111 | 269 |
%endif |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
270 |
|
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
271 |
%if %localize |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
272 |
%package translations-common |
809
af47260a332c
morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
807
diff
changeset
|
273 |
Summary: Common translations for %{appname} |
363
48596576f932
update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
361
diff
changeset
|
274 |
Group: System/Localization |
1097 | 275 |
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 | 276 |
# This is there for updates from Firefox before the translations-package was split up into 2 packages |
277 |
Provides: %{name}-translations |
|
46
c743908ffe6f
Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
36
diff
changeset
|
278 |
Requires: %{name} = %{version} |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
279 |
Obsoletes: %{name}-translations < %{version}-%{release} |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
280 |
|
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
281 |
%description translations-common |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
282 |
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
|
283 |
of %{appname}. |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
284 |
|
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
285 |
%package translations-other |
809
af47260a332c
morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
807
diff
changeset
|
286 |
Summary: Extra translations for %{appname} |
363
48596576f932
update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
361
diff
changeset
|
287 |
Group: System/Localization |
1111 | 288 |
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
|
289 |
Requires: %{name} = %{version} |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
290 |
Obsoletes: %{name}-translations < %{version}-%{release} |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
291 |
|
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
292 |
%description translations-other |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
293 |
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
|
294 |
of %{appname}. |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
295 |
%endif |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
296 |
|
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
297 |
%package branding-upstream |
809
af47260a332c
morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
807
diff
changeset
|
298 |
Summary: Upstream branding for %{appname} |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
299 |
Group: Productivity/Networking/Web/Browsers |
648
6fd0ed97283f
fix upstream version provides
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
647
diff
changeset
|
300 |
Provides: %{name}-branding = %{version} |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
301 |
Conflicts: otherproviders(%{name}-branding) |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
302 |
Supplements: packageand(%{name}:branding-upstream) |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
303 |
#BRAND: Provide three files - |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
304 |
#BRAND: /usr/lib/firefox/browserconfig.properties that contains the |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
305 |
#BRAND: default homepage and some other default configuration options |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
306 |
#BRAND: /usr/lib/firefox/defaults/profile/bookmarks.html that contains |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
307 |
#BRAND: the list of default bookmarks |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
308 |
#BRAND: It's also possible to create a file |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
309 |
#BRAND: /usr/lib/firefox/defaults/preferences/firefox-$vendor.js to set |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
310 |
#BRAND: custom preference overrides. |
871 | 311 |
#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
|
312 |
|
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
313 |
%description branding-upstream |
809
af47260a332c
morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
807
diff
changeset
|
314 |
This package provides upstream look and feel for %{appname}. |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
315 |
|
1101
a4709640638e
added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1099
diff
changeset
|
316 |
%if !%{with only_print_mozconfig} |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
317 |
%prep |
707 | 318 |
%if %localize |
1097 | 319 |
|
320 |
# If generated incorrectly, the tarball will be ~270B in |
|
321 |
# size, so 1MB seems like good enough limit to check. |
|
322 |
MINSIZE=1048576 |
|
1106 | 323 |
if (( $(stat -Lc%s "%{SOURCE7}") < MINSIZE)); then |
1097 | 324 |
echo "Translations tarball %{SOURCE7} not generated properly." |
325 |
exit 1 |
|
326 |
fi |
|
327 |
||
1117 | 328 |
%setup -q -n %{srcname}-%{orig_version} -b 7 |
707 | 329 |
%else |
1111 | 330 |
%setup -q -n %{srcname}-%{orig_version} |
707 | 331 |
%endif |
1111 | 332 |
cd $RPM_BUILD_DIR/%{srcname}-%{orig_version} |
1170 | 333 |
%autopatch -p1 |
1143
ff28137410eb
FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1141
diff
changeset
|
334 |
%endif |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
335 |
|
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
336 |
%build |
1101
a4709640638e
added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1099
diff
changeset
|
337 |
%if !%{with only_print_mozconfig} |
276 | 338 |
# no need to add build time to binaries |
1162 | 339 |
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{pkgname}.changes")" |
276 | 340 |
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\"" |
341 |
TIME="\"$(date -d "${modified}" "+%%R")\"" |
|
342 |
find . -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} + |
|
1136 | 343 |
|
1190 | 344 |
# SLE-12 provides python39, but that package does not provide a python3 binary |
1136 | 345 |
%if 0%{?sle_version} >= 120000 && 0%{?sle_version} < 150000 |
1190 | 346 |
#sed -i "s/python3/python3.9/g" configure.in |
347 |
sed -i "s|/usr/bin/env python3|/usr/bin/env python3.9|" mach |
|
348 |
sed -i "s|potential_python_binary = f\"python3.{i}\"|potential_python_binary = f\"python3.9.{i}\"|" mach |
|
349 |
export PYTHON3=/usr/bin/python3.9 |
|
1136 | 350 |
%endif |
351 |
||
398
937669e1c537
ported and reenabled KDE integration (bnc#746591)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
395
diff
changeset
|
352 |
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
|
353 |
if test "$kdehelperversion" != %{kde_helper_version}; then |
937669e1c537
ported and reenabled KDE integration (bnc#746591)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
395
diff
changeset
|
354 |
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
|
355 |
exit 1 |
937669e1c537
ported and reenabled KDE integration (bnc#746591)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
395
diff
changeset
|
356 |
fi |
1190 | 357 |
|
1175 | 358 |
# When doing only_print_mozconfig, this file isn't necessarily available, so skip it |
359 |
cp %{SOURCE4} .obsenv.sh |
|
360 |
%else |
|
361 |
# We need to make sure its empty |
|
362 |
echo "" > .obsenv.sh |
|
1143
ff28137410eb
FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1141
diff
changeset
|
363 |
%endif |
1101
a4709640638e
added several arch specific (mainly BE) patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1099
diff
changeset
|
364 |
|
1175 | 365 |
cat >> .obsenv.sh <<EOF |
1112 | 366 |
export CARGO_HOME=${RPM_BUILD_DIR}/%{srcname}-%{orig_version}/.cargo |
1180 | 367 |
export MOZ_SOURCE_CHANGESET=\$RELEASE_TAG |
368 |
export SOURCE_REPO=\$RELEASE_REPO |
|
369 |
export source_repo=\$RELEASE_REPO |
|
370 |
export MOZ_SOURCE_REPO=\$RELEASE_REPO |
|
371 |
export MOZ_BUILD_DATE=\$RELEASE_TIMESTAMP |
|
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
372 |
export MOZILLA_OFFICIAL=1 |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
373 |
export BUILD_OFFICIAL=1 |
344
880a90eb0f92
enable telemetry opt-in prompt
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
339
diff
changeset
|
374 |
export MOZ_TELEMETRY_REPORTING=1 |
1182 | 375 |
export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system |
1180 | 376 |
export CFLAGS="%{optflags}" |
1192 | 377 |
%if 0%{?suse_version} < 1550 && 0%{?sle_version} <= 150600 |
1190 | 378 |
export CC=gcc-12 |
379 |
export CXX=g++-12 |
|
1083
2f7023025374
reduced memory requirements and rely on memory limitations in parallelization
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1082
diff
changeset
|
380 |
%else |
2f7023025374
reduced memory requirements and rely on memory limitations in parallelization
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1082
diff
changeset
|
381 |
%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
|
382 |
export CC=gcc |
2f7023025374
reduced memory requirements and rely on memory limitations in parallelization
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1082
diff
changeset
|
383 |
export CXX=g++ |
2f7023025374
reduced memory requirements and rely on memory limitations in parallelization
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1082
diff
changeset
|
384 |
%endif |
953 | 385 |
%endif |
806 | 386 |
%ifarch %arm %ix86 |
1192 | 387 |
### NOTE: these sections are not required anymore. Alson --no-keep-memory + -Wl,-z,pack-relative-relocs causes |
388 |
### ld to go OOM (https://sourceware.org/bugzilla/show_bug.cgi?id=30756) |
|
801
f5f6f5547c2b
merge changes from OBS Factory submissions
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
797
diff
changeset
|
389 |
# Limit RAM usage during link |
1192 | 390 |
# export LDFLAGS="\$LDFLAGS -Wl,--no-keep-memory -Wl,--reduce-memory-overheads -Wl,--no-map-whole-files -Wl,--hash-size=31" |
391 |
# |
|
1171 | 392 |
# A lie to prevent -Wl,--gc-sections being set which requires more memory than 32bit can offer |
1192 | 393 |
#export GC_SECTIONS_BREAKS_DEBUG_RANGES=yes |
631 | 394 |
%endif |
1180 | 395 |
export LDFLAGS="\$LDFLAGS -fPIC -Wl,-z,relro,-z,now" |
693 | 396 |
%ifarch ppc64 ppc64le |
1083
2f7023025374
reduced memory requirements and rely on memory limitations in parallelization
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1082
diff
changeset
|
397 |
%endif |
1188 | 398 |
%ifarch %ix86 |
399 |
# Not enough memory on 32-bit systems, reduce debug info. |
|
400 |
export CFLAGS="\$CFLAGS -g1" |
|
401 |
%endif |
|
1180 | 402 |
export CXXFLAGS="\$CFLAGS" |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
403 |
export MOZCONFIG=$RPM_BUILD_DIR/mozconfig |
1175 | 404 |
EOF |
405 |
# Done with env-variables. |
|
406 |
source ./.obsenv.sh |
|
407 |
||
1184 | 408 |
%ifarch aarch64 %arm ppc64 ppc64le riscv64 |
1178 | 409 |
%limit_build -m 2500 |
1177 | 410 |
%endif |
411 |
||
1175 | 412 |
# Generating mozconfig |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
413 |
cat << EOF > $MOZCONFIG |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
414 |
mk_add_options MOZILLA_OFFICIAL=1 |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
415 |
mk_add_options BUILD_OFFICIAL=1 |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
416 |
mk_add_options MOZ_MAKE_FLAGS=%{?jobs:-j%jobs} |
155 | 417 |
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
418 |
. \$topsrcdir/browser/config/mozconfig |
1159 | 419 |
ac_add_options --disable-bootstrap |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
420 |
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
|
421 |
ac_add_options --libdir=%{_libdir} |
05d175c5957e
added upstream patch so system plugins/extensions are correctly
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
923
diff
changeset
|
422 |
ac_add_options --includedir=%{_includedir} |
767 | 423 |
ac_add_options --enable-release |
1157 | 424 |
%if 0%{wayland_supported} |
425 |
ac_add_options --enable-default-toolkit=cairo-gtk3-wayland |
|
426 |
%else |
|
1136 | 427 |
ac_add_options --enable-default-toolkit=cairo-gtk3 |
428 |
%endif |
|
1071 | 429 |
# 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
|
430 |
%ifarch %ix86 %arm |
1071 | 431 |
ac_add_options --disable-debug-symbols |
1084 | 432 |
%else |
1192 | 433 |
ac_add_options --enable-debug-symbols=-g0 |
1171 | 434 |
%endif |
1170 | 435 |
ac_add_options --disable-install-strip |
1192 | 436 |
%ifarch %ix86 %arm |
437 |
# OOM on 32-bit when ld passed -Wl,-z,pack-relative-relocs |
|
438 |
# ac_add_options --enable-elf-hack |
|
777 | 439 |
%endif |
568
2c74c5927ea2
first working Aurora 18 build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
565
diff
changeset
|
440 |
ac_add_options --with-system-nspr |
522
fdca14856f37
snapshot update (20120807)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
515
diff
changeset
|
441 |
ac_add_options --with-system-nss |
1156 | 442 |
%if 0%{useccache} != 0 |
1140 | 443 |
ac_add_options --with-ccache |
1156 | 444 |
%endif |
707 | 445 |
%if %{localize} |
155 | 446 |
ac_add_options --with-l10n-base=$RPM_BUILD_DIR/l10n |
707 | 447 |
%endif |
263
64adf7ca3005
standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
262
diff
changeset
|
448 |
#ac_add_options --with-system-jpeg # libjpeg-turbo is used internally |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
449 |
#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
|
450 |
ac_add_options --with-system-zlib |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
451 |
ac_add_options --disable-updater |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
452 |
ac_add_options --disable-tests |
945 | 453 |
ac_add_options --enable-alsa |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
454 |
ac_add_options --disable-debug |
409 | 455 |
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
|
456 |
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
|
457 |
# Google-service currently not available for free anymore |
1185 | 458 |
#ac_add_options --with-google-location-service-api-keyfile=%%{SOURCE19} |
1089 | 459 |
ac_add_options --with-google-safebrowsing-api-keyfile=%{SOURCE19} |
1070 | 460 |
ac_add_options --with-unsigned-addon-scopes=app |
1138 | 461 |
ac_add_options --allow-addon-sideload |
1169 | 462 |
# at least temporary until the "wasi-sysroot" issue is solved |
463 |
ac_add_options --without-wasm-sandboxed-libraries |
|
1170 | 464 |
%ifarch x86_64 aarch64 |
465 |
ac_add_options --enable-rust-simd |
|
466 |
%endif |
|
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
467 |
%if %branding |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
468 |
ac_add_options --enable-official-branding |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
469 |
%endif |
262
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
252
diff
changeset
|
470 |
ac_add_options --enable-libproxy |
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
252
diff
changeset
|
471 |
%if ! %crashreporter |
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
252
diff
changeset
|
472 |
ac_add_options --disable-crashreporter |
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
252
diff
changeset
|
473 |
%endif |
371
ead21d122ed0
introduce --disable-neon option and use on ARM
Joop Boonen <joop.boonen@opensuse.org>
parents:
370
diff
changeset
|
474 |
%ifarch %arm |
908
b29b47737173
sync from mozilla:Factory
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
907
diff
changeset
|
475 |
ac_add_options --with-fpu=vfpv3-d16 |
b29b47737173
sync from mozilla:Factory
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
907
diff
changeset
|
476 |
ac_add_options --with-float-abi=hard |
1047
847ae61baab6
Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1046
diff
changeset
|
477 |
%ifarch armv6l armv6hl |
847ae61baab6
Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1046
diff
changeset
|
478 |
ac_add_options --with-arch=armv6 |
847ae61baab6
Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1046
diff
changeset
|
479 |
%else |
908
b29b47737173
sync from mozilla:Factory
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
907
diff
changeset
|
480 |
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
|
481 |
%endif |
1047
847ae61baab6
Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1046
diff
changeset
|
482 |
%endif |
1098 | 483 |
# mitigation/workaround for bmo#1512162 |
1111 | 484 |
%ifarch s390x |
1098 | 485 |
ac_add_options --enable-optimize="-O1" |
486 |
%endif |
|
1086 | 487 |
%ifarch x86_64 |
488 |
# LTO needs newer toolchain stack only (at least GCC 8.2.1 (r268506) |
|
1165 | 489 |
%if 0%{?suse_version} > 1500 |
1191 | 490 |
ac_add_options --enable-lto |
1111 | 491 |
%if 0%{?do_profiling} |
1096 | 492 |
ac_add_options MOZ_PGO=1 |
1086 | 493 |
%endif |
494 |
%endif |
|
1111 | 495 |
%endif |
708 | 496 |
EOF |
1175 | 497 |
|
498 |
%if %{with only_print_mozconfig} |
|
499 |
cat ./.obsenv.sh |
|
500 |
cat $MOZCONFIG |
|
501 |
%else |
|
502 |
||
1156 | 503 |
%if 0%{useccache} != 0 |
1141 | 504 |
ccache -s |
1156 | 505 |
%endif |
1111 | 506 |
%if 0%{?do_profiling} |
507 |
xvfb-run --server-args="-screen 0 1920x1080x24" \ |
|
508 |
%endif |
|
509 |
./mach build -v |
|
1117 | 510 |
|
511 |
# build additional locales |
|
512 |
%if %localize |
|
513 |
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
|
514 |
# 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
|
515 |
# 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
|
516 |
# 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
|
517 |
# 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
|
518 |
|
ff28137410eb
FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1141
diff
changeset
|
519 |
# 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
|
520 |
cat << EOF > ${MOZCONFIG}_LANG |
ff28137410eb
FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1141
diff
changeset
|
521 |
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
|
522 |
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
|
523 |
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
|
524 |
. \$topsrcdir/browser/config/mozconfig |
ff28137410eb
FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1141
diff
changeset
|
525 |
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
|
526 |
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
|
527 |
ac_add_options --disable-updater |
1169 | 528 |
ac_add_options --without-wasm-sandboxed-libraries |
1143
ff28137410eb
FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1141
diff
changeset
|
529 |
%if %branding |
ff28137410eb
FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1141
diff
changeset
|
530 |
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
|
531 |
%endif |
ff28137410eb
FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1141
diff
changeset
|
532 |
EOF |
ff28137410eb
FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1141
diff
changeset
|
533 |
|
1150 | 534 |
%define njobs 0%{?jobs:%jobs} |
1152 | 535 |
mkdir -p $RPM_BUILD_DIR/langpacks_artifacts/ |
1141 | 536 |
sed -r '/^(ja-JP-mac|ga-IE|en-US|)$/d;s/ .*$//' $RPM_BUILD_DIR/%{srcname}-%{orig_version}/browser/locales/shipped-locales \ |
1150 | 537 |
| xargs -n 1 %{?njobs:-P %njobs} -I {} /bin/sh -c ' |
1117 | 538 |
locale=$1 |
1143
ff28137410eb
FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1141
diff
changeset
|
539 |
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
|
540 |
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
|
541 |
export MOZCONFIG=${MOZCONFIG}_$locale |
ff28137410eb
FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1141
diff
changeset
|
542 |
# 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
|
543 |
./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
|
544 |
cp -L ../obj_$locale/dist/linux-*/xpi/firefox-%{orig_version}.$locale.langpack.xpi \ |
1152 | 545 |
$RPM_BUILD_DIR/langpacks_artifacts/langpack-$locale@firefox.mozilla.org.xpi |
1117 | 546 |
# check against the fixed common list and sort into the right filelist |
547 |
_matched=0 |
|
548 |
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 |
|
549 |
[ "$_match" = "$locale" ] && _matched=1 |
|
550 |
done |
|
551 |
[ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other |
|
1138 | 552 |
echo %{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org.xpi \ |
1117 | 553 |
>> %{_tmppath}/translations.$_l10ntarget |
554 |
' -- {} |
|
555 |
%endif |
|
556 |
||
1156 | 557 |
%if 0%{useccache} != 0 |
1141 | 558 |
ccache -s |
1143
ff28137410eb
FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1141
diff
changeset
|
559 |
%endif |
1156 | 560 |
%endif |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
561 |
|
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
562 |
%install |
155 | 563 |
cd $RPM_BUILD_DIR/obj |
1115 | 564 |
source %{SOURCE4} |
1116
52b1745787cf
fix sourced variables
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1115
diff
changeset
|
565 |
export MOZ_SOURCE_STAMP=$RELEASE_TAG |
52b1745787cf
fix sourced variables
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1115
diff
changeset
|
566 |
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
|
567 |
# 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
|
568 |
# 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
|
569 |
# 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
|
570 |
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
|
571 |
make -C browser/installer STRIP=/bin/true MOZ_PKG_FATAL_WARNINGS=0 |
418 | 572 |
#DEBUG (break the build if searchplugins are missing / temporary) |
642 | 573 |
grep amazondotcom dist/firefox/browser/omni.ja |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
574 |
# 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
|
575 |
mkdir -p %{buildroot}%{progdir} |
1111 | 576 |
cp -rf $RPM_BUILD_DIR/obj/dist/%{srcname}/* %{buildroot}%{progdir} |
1152 | 577 |
mkdir -p %{buildroot}%{progdir}/browser/extensions |
578 |
cp -rf $RPM_BUILD_DIR/langpacks_artifacts/* %{buildroot}%{progdir}/browser/extensions/ |
|
780
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
579 |
mkdir -p %{buildroot}%{progdir}/distribution/extensions |
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
580 |
mkdir -p %{buildroot}%{progdir}/browser/defaults/preferences/ |
1111 | 581 |
# renaming executables (for regular vs. ESR) |
582 |
%if "%{srcname}" != "%{progname}" |
|
583 |
mv %{buildroot}%{progdir}/%{srcname} %{buildroot}%{progdir}/%{progname} |
|
1112 | 584 |
mv %{buildroot}%{progdir}/%{srcname}-bin %{buildroot}%{progdir}/%{progname}-bin |
1111 | 585 |
%endif |
781
4ee017942f28
use /usr/share/myspell directly and remove add-plugins.sh
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
780
diff
changeset
|
586 |
# install gre prefs |
4ee017942f28
use /usr/share/myspell directly and remove add-plugins.sh
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
780
diff
changeset
|
587 |
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
|
588 |
# install browser prefs |
780
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
589 |
install -m 644 %{SOURCE9} %{buildroot}%{progdir}/browser/defaults/preferences/firefox.js |
1117 | 590 |
|
342
fcf304737c81
remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
341
diff
changeset
|
591 |
# remove some executable permissions |
780
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
592 |
find %{buildroot}%{progdir} \ |
342
fcf304737c81
remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
341
diff
changeset
|
593 |
-name "*.js" -o \ |
fcf304737c81
remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
341
diff
changeset
|
594 |
-name "*.jsm" -o \ |
fcf304737c81
remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
341
diff
changeset
|
595 |
-name "*.rdf" -o \ |
fcf304737c81
remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
341
diff
changeset
|
596 |
-name "*.properties" -o \ |
356 | 597 |
-name "*.dtd" -o \ |
598 |
-name "*.txt" -o \ |
|
599 |
-name "*.xml" -o \ |
|
1048 | 600 |
-name "*.css" \ |
601 |
-exec chmod a-x {} + |
|
541
830e50bbfc79
working Aurora 17.0 build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
540
diff
changeset
|
602 |
# remove mkdir.done files from installed base |
1048 | 603 |
find %{buildroot}%{progdir} -type f -name ".mkdir.done" -delete |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
604 |
# 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
|
605 |
mkdir --parents %{buildroot}/usr/bin |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
606 |
sed "s:%%PREFIX:%{_prefix}:g |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
607 |
s:%%PROGDIR:%{progdir}:g |
1111 | 608 |
s:%%APPNAME:%{progname}:g |
1157 | 609 |
s:%%WAYLAND_SUPPORTED:%{wayland_supported}:g |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
610 |
s:%%PROFILE:.mozilla/firefox:g" \ |
780
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
611 |
%{SOURCE3} > %{buildroot}%{progdir}/%{progname}.sh |
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
612 |
chmod 755 %{buildroot}%{progdir}/%{progname}.sh |
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
613 |
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
|
614 |
# desktop file |
780
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
615 |
mkdir -p %{buildroot}%{_datadir}/applications |
809
af47260a332c
morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
807
diff
changeset
|
616 |
sed "s:%%NAME:%{appname}:g |
af47260a332c
morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
807
diff
changeset
|
617 |
s:%%EXEC:%{progname}:g |
1188 | 618 |
s:%%ICON:%{progname}:g |
619 |
s:%%WMCLASS:%{progname}%{major}:g" \ |
|
809
af47260a332c
morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
807
diff
changeset
|
620 |
%{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
|
621 |
%suse_update_desktop_file %{desktop_file_name} Network WebBrowser GTK |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
622 |
# additional mime-types |
780
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
623 |
mkdir -p %{buildroot}%{_datadir}/mime/packages |
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
624 |
cp %{SOURCE8} %{buildroot}%{_datadir}/mime/packages/%{progname}.xml |
774
f61bd1cd52c2
added basic appstream appdata information
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
773
diff
changeset
|
625 |
# appdata |
1140 | 626 |
mkdir -p %{buildroot}%{_datadir}/metainfo |
1111 | 627 |
sed "s:firefox.desktop:%{desktop_file_name}:g" \ |
1140 | 628 |
%{SOURCE15} > %{buildroot}%{_datadir}/metainfo/%{desktop_file_name}.appdata.xml |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
629 |
# install man-page |
780
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
630 |
mkdir -p %{buildroot}%{_mandir}/man1/ |
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
631 |
cp %{SOURCE11} %{buildroot}%{_mandir}/man1/%{progname}.1 |
1151 | 632 |
# install GNOME Shell search provider |
633 |
mkdir -p %{buildroot}%{_datadir}/gnome-shell/search-providers |
|
634 |
cp %{SOURCE17} %{buildroot}%{_datadir}/gnome-shell/search-providers |
|
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
635 |
########## |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
636 |
# ADDONS |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
637 |
# |
780
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
638 |
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
|
639 |
mkdir -p %{buildroot}%{_libdir}/mozilla/extensions/%{firefox_appid} |
1160 | 640 |
# Install symbolic icon for GNOME |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
641 |
%if %branding |
1034 | 642 |
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
|
643 |
%else |
9ec311cdd7c8
no official branding yet
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
265
diff
changeset
|
644 |
for size in 16 32 48; do |
9ec311cdd7c8
no official branding yet
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
265
diff
changeset
|
645 |
%endif |
780
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
646 |
mkdir -p %{buildroot}%{gnome_dir}/share/icons/hicolor/${size}x${size}/apps/ |
839 | 647 |
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
|
648 |
%{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
|
649 |
done |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
650 |
# excludes |
780
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
651 |
rm -f %{buildroot}%{progdir}/updater.ini |
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
652 |
rm -f %{buildroot}%{progdir}/removed-files |
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
653 |
rm -f %{buildroot}%{progdir}/README.txt |
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
654 |
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
|
655 |
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
|
656 |
rm -f %{buildroot}%{progdir}/LICENSE |
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
657 |
rm -f %{buildroot}%{progdir}/precomplete |
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
658 |
rm -f %{buildroot}%{progdir}/update-settings.ini |
1111 | 659 |
%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
|
660 |
# 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
|
661 |
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
|
662 |
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
|
663 |
# inspired by mandriva |
1157 | 664 |
mkdir -p %{buildroot}%{_rpmmacrodir} |
665 |
cat <<'FIN' >%{buildroot}%{_rpmmacrodir}/macros.%{progname} |
|
1185 | 666 |
# Macros from %%{name} package |
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
|
667 |
%%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
|
668 |
%%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
|
669 |
%%firefox_mainver %{mainver} |
238
d537c4a65693
fixed rpm macros (bnc#679950)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
237
diff
changeset
|
670 |
%%firefox_mozillapath %%{_libdir}/%{progname} |
1119 | 671 |
%%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
|
672 |
%%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
|
673 |
%%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
|
674 |
|
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
|
675 |
%%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
|
676 |
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
|
677 |
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
|
678 |
%%{__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
|
679 |
%%{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
|
680 |
FIN |
1111 | 681 |
%endif |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
682 |
# fdupes |
780
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
683 |
%fdupes %{buildroot}%{progdir} |
c20a07035a80
use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
777
diff
changeset
|
684 |
%fdupes %{buildroot}%{_datadir} |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
685 |
|
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
686 |
%post |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
687 |
# 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
|
688 |
%mime_database_post |
b20cf866bb49
use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
218
diff
changeset
|
689 |
%desktop_database_post |
b20cf866bb49
use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
218
diff
changeset
|
690 |
%icon_theme_cache_post |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
691 |
exit 0 |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
692 |
|
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
693 |
%postun |
219
b20cf866bb49
use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
218
diff
changeset
|
694 |
%icon_theme_cache_postun |
b20cf866bb49
use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
218
diff
changeset
|
695 |
%desktop_database_postun |
b20cf866bb49
use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
218
diff
changeset
|
696 |
%mime_database_postun |
b20cf866bb49
use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
218
diff
changeset
|
697 |
exit 0 |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
698 |
|
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
699 |
%files |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
700 |
%defattr(-,root,root) |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
701 |
%dir %{progdir} |
637
73640b76d6c3
first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
634
diff
changeset
|
702 |
%dir %{progdir}/browser/ |
73640b76d6c3
first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
634
diff
changeset
|
703 |
%dir %{progdir}/browser/chrome/ |
73640b76d6c3
first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
634
diff
changeset
|
704 |
%{progdir}/browser/defaults |
904 | 705 |
%{progdir}/browser/features/ |
637
73640b76d6c3
first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
634
diff
changeset
|
706 |
%{progdir}/browser/chrome/icons |
73640b76d6c3
first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
634
diff
changeset
|
707 |
%{progdir}/browser/omni.ja |
647 | 708 |
%dir %{progdir}/distribution/ |
709 |
%{progdir}/distribution/extensions/ |
|
157
6f59409302d1
switching back to jar chrome format (instead of omni)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
155
diff
changeset
|
710 |
%{progdir}/defaults/ |
828 | 711 |
%{progdir}/gmp-clearkey/ |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
712 |
%attr(755,root,root) %{progdir}/%{progname}.sh |
1111 | 713 |
%{progdir}/%{progname} |
714 |
%{progdir}/%{progname}-bin |
|
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
715 |
%{progdir}/application.ini |
263
64adf7ca3005
standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
262
diff
changeset
|
716 |
%{progdir}/dependentlibs.list |
64adf7ca3005
standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
262
diff
changeset
|
717 |
%{progdir}/*.so |
1190 | 718 |
%{progdir}/glxtest |
719 |
%if 0%{wayland_supported} |
|
1192 | 720 |
%ifarch %{arm} aarch64 %{ix86} x86_64 |
1190 | 721 |
%{progdir}/vaapitest |
722 |
%endif |
|
1192 | 723 |
%endif |
724 |
%ifarch aarch64 riscv64 %arm |
|
725 |
%{progdir}/v4l2test |
|
726 |
%endif |
|
368
8891dd9439a1
finalized Firefox 10.0b1
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
367
diff
changeset
|
727 |
%{progdir}/omni.ja |
932 | 728 |
%{progdir}/fonts/ |
983 | 729 |
%{progdir}/pingsender |
263
64adf7ca3005
standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
262
diff
changeset
|
730 |
%{progdir}/platform.ini |
64adf7ca3005
standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
262
diff
changeset
|
731 |
%{progdir}/plugin-container |
117 | 732 |
%if %crashreporter |
263
64adf7ca3005
standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
262
diff
changeset
|
733 |
%{progdir}/crashreporter |
64adf7ca3005
standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
262
diff
changeset
|
734 |
%{progdir}/crashreporter.ini |
270 | 735 |
%{progdir}/Throbber-small.gif |
942
66115255ad6f
prepare FF51 (currently 51.0b5)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
941
diff
changeset
|
736 |
%{progdir}/minidump-analyzer |
637
73640b76d6c3
first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
634
diff
changeset
|
737 |
%{progdir}/browser/crashreporter-override.ini |
117 | 738 |
%endif |
213
b2978eba3a92
rename desktop file for 11.4 and above (bnc#664211)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
210
diff
changeset
|
739 |
%{_datadir}/applications/%{desktop_file_name}.desktop |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
740 |
%{_datadir}/mime/packages/%{progname}.xml |
1151 | 741 |
%dir %{_datadir}/gnome-shell |
742 |
%dir %{_datadir}/gnome-shell/search-providers |
|
743 |
%{_datadir}/gnome-shell/search-providers/*.ini |
|
225
5a7504b93699
Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
223
diff
changeset
|
744 |
%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
|
745 |
%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
|
746 |
%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
|
747 |
%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
|
748 |
%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
|
749 |
%dir %{_libdir}/mozilla/extensions/%{firefox_appid} |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
750 |
%{gnome_dir}/share/icons/hicolor/ |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
751 |
%{_bindir}/%{progname} |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
752 |
%doc %{_mandir}/man1/%{progname}.1.gz |
1140 | 753 |
%{_datadir}/metainfo/ |
34
2d77a25d185f
Add firefox-crashreporter.patch to fix Firefox' application.ini
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
33
diff
changeset
|
754 |
|
1111 | 755 |
%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
|
756 |
%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
|
757 |
%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
|
758 |
%{_bindir}/mozilla-get-app-id |
1157 | 759 |
%{_rpmmacrodir}/macros.%{progname} |
1111 | 760 |
%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
|
761 |
|
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
762 |
%if %localize |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
763 |
%files translations-common -f %{_tmppath}/translations.common |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
764 |
%defattr(-,root,root) |
46
c743908ffe6f
Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
36
diff
changeset
|
765 |
%dir %{progdir} |
1143
ff28137410eb
FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1141
diff
changeset
|
766 |
%dir %{progdir}/browser/extensions/ |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
767 |
|
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
768 |
%files translations-other -f %{_tmppath}/translations.other |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
769 |
%defattr(-,root,root) |
46
c743908ffe6f
Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
36
diff
changeset
|
770 |
%dir %{progdir} |
1143
ff28137410eb
FF8 80.0.1 including some required patches (see changes)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
1141
diff
changeset
|
771 |
%dir %{progdir}/browser/extensions/ |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
772 |
%endif |
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
773 |
|
286
b1d254616456
reenable branding-upstream package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
285
diff
changeset
|
774 |
# 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
|
775 |
# requirements if no other branding package is to be installed |
b1d254616456
reenable branding-upstream package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
285
diff
changeset
|
776 |
%files branding-upstream |
b1d254616456
reenable branding-upstream package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
285
diff
changeset
|
777 |
%defattr(-,root,root) |
b1d254616456
reenable branding-upstream package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
285
diff
changeset
|
778 |
%dir %{progdir} |
5
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
779 |
|
17b1dd932700
Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
780 |
%changelog |