25 # FF70beta3 would be released as FF69.99 |
25 # FF70beta3 would be released as FF69.99 |
26 # orig_version would be the upstream tar ball |
26 # orig_version would be the upstream tar ball |
27 # orig_version 70.0 |
27 # orig_version 70.0 |
28 # orig_suffix b3 |
28 # orig_suffix b3 |
29 # major 69 |
29 # major 69 |
30 # mainver %major.99 |
30 # mainver %%major.99 |
31 %define major 110 |
31 %define major 111 |
32 %define mainver %major.0.1 |
32 %define mainver %major.0.1 |
33 %define orig_version 110.0.1 |
33 %define orig_version 111.0.1 |
34 %define orig_suffix %{nil} |
34 %define orig_suffix %{nil} |
35 %define update_channel release |
35 %define update_channel release |
36 %define branding 1 |
36 %define branding 1 |
37 %define devpkg 1 |
37 %define devpkg 1 |
38 |
38 |
91 BuildRequires: autoconf213 |
91 BuildRequires: autoconf213 |
92 BuildRequires: dbus-1-glib-devel |
92 BuildRequires: dbus-1-glib-devel |
93 BuildRequires: dejavu-fonts |
93 BuildRequires: dejavu-fonts |
94 BuildRequires: fdupes |
94 BuildRequires: fdupes |
95 BuildRequires: memory-constraints |
95 BuildRequires: memory-constraints |
96 %if 0%{?suse_version} < 1550 && 0%{?sle_version} <= 150400 |
96 %if 0%{?suse_version} < 1550 && 0%{?sle_version} <= 150500 |
97 BuildRequires: gcc11-c++ |
97 BuildRequires: gcc11-c++ |
98 %else |
98 %else |
99 BuildRequires: gcc-c++ |
99 BuildRequires: gcc-c++ |
100 %endif |
100 %endif |
101 %if 0%{?suse_version} < 1550 && 0%{?sle_version} < 150300 |
101 %if 0%{?suse_version} < 1550 && 0%{?sle_version} < 150300 |
106 # a different method for provides that we can use to request a |
106 # a different method for provides that we can use to request a |
107 # specific version |
107 # specific version |
108 # minimal requirement: |
108 # minimal requirement: |
109 BuildRequires: rust+cargo >= 1.65 |
109 BuildRequires: rust+cargo >= 1.65 |
110 # actually used upstream: |
110 # actually used upstream: |
111 BuildRequires: cargo1.66 |
111 BuildRequires: cargo1.67 |
112 BuildRequires: rust1.66 |
112 BuildRequires: rust1.67 |
113 %endif |
113 %endif |
114 %if 0%{useccache} != 0 |
114 %if 0%{useccache} != 0 |
115 BuildRequires: ccache |
115 BuildRequires: ccache |
116 %endif |
116 %endif |
117 BuildRequires: libXcomposite-devel |
117 BuildRequires: libXcomposite-devel |
118 BuildRequires: libcurl-devel |
118 BuildRequires: libcurl-devel |
119 BuildRequires: libiw-devel |
119 BuildRequires: libiw-devel |
120 BuildRequires: libproxy-devel |
120 BuildRequires: libproxy-devel |
121 BuildRequires: makeinfo |
121 BuildRequires: makeinfo |
122 BuildRequires: mozilla-nspr-devel >= 4.35 |
122 BuildRequires: mozilla-nspr-devel >= 4.35 |
123 BuildRequires: mozilla-nss-devel >= 3.87 |
123 BuildRequires: mozilla-nss-devel >= 3.88.1 |
124 BuildRequires: nasm >= 2.14 |
124 BuildRequires: nasm >= 2.14 |
125 BuildRequires: nodejs >= 10.22.1 |
125 BuildRequires: nodejs >= 10.22.1 |
126 %if 0%{?sle_version} >= 120000 && 0%{?sle_version} < 150000 |
126 %if 0%{?sle_version} >= 120000 && 0%{?sle_version} < 150000 |
127 BuildRequires: python-libxml2 |
127 BuildRequires: python-libxml2 |
128 BuildRequires: python36 |
128 BuildRequires: python36 |
191 Source8: firefox-mimeinfo.xml |
191 Source8: firefox-mimeinfo.xml |
192 Source9: firefox.js |
192 Source9: firefox.js |
193 Source11: firefox.1 |
193 Source11: firefox.1 |
194 Source12: mozilla-get-app-id |
194 Source12: mozilla-get-app-id |
195 Source13: spellcheck.js |
195 Source13: spellcheck.js |
196 Source14: https://github.com/openSUSE/firefox-scripts/raw/7335408da3073ec6b582fc364010cf09665765b3/create-tar.sh |
196 Source14: https://github.com/openSUSE/firefox-scripts/raw/9b77cf0/create-tar.sh |
197 Source15: firefox-appdata.xml |
197 Source15: firefox-appdata.xml |
198 Source16: %{name}.changes |
198 Source16: %{name}.changes |
199 Source17: firefox-search-provider.ini |
199 Source17: firefox-search-provider.ini |
200 # Set up API keys, see http://www.chromium.org/developers/how-tos/api-keys |
200 # Set up API keys, see http://www.chromium.org/developers/how-tos/api-keys |
201 # Note: these are for the openSUSE Firefox builds ONLY. For your own distribution, |
201 # Note: these are for the openSUSE Firefox builds ONLY. For your own distribution, |
226 Patch22: mozilla-silence-no-return-type.patch |
226 Patch22: mozilla-silence-no-return-type.patch |
227 Patch23: mozilla-bmo531915.patch |
227 Patch23: mozilla-bmo531915.patch |
228 Patch25: one_swizzle_to_rule_them_all.patch |
228 Patch25: one_swizzle_to_rule_them_all.patch |
229 Patch26: svg-rendering.patch |
229 Patch26: svg-rendering.patch |
230 Patch27: mozilla-buildfixes.patch |
230 Patch27: mozilla-buildfixes.patch |
231 Patch28: mozilla-bmo1810584.patch |
|
232 Patch29: gcc13-fix.patch |
|
233 # Firefox/browser |
231 # Firefox/browser |
234 Patch101: firefox-kde.patch |
232 Patch101: firefox-kde.patch |
235 Patch102: firefox-branded-icons.patch |
233 Patch102: firefox-branded-icons.patch |
236 %endif |
234 %endif |
237 BuildRoot: %{_tmppath}/%{name}-%{version}-build |
235 BuildRoot: %{_tmppath}/%{name}-%{version}-build |
246 # addon leads to startup crash (bnc#908892) |
244 # addon leads to startup crash (bnc#908892) |
247 Obsoletes: tracker-miner-firefox < 0.15 |
245 Obsoletes: tracker-miner-firefox < 0.15 |
248 %if 0%{?devpkg} == 0 |
246 %if 0%{?devpkg} == 0 |
249 Obsoletes: %{name}-devel < %{version} |
247 Obsoletes: %{name}-devel < %{version} |
250 %endif |
248 %endif |
251 # libproxy's mozjs pacrunner crashes FF (bnc#759123) |
|
252 %if 0%{?suse_version} < 1220 |
|
253 Obsoletes: libproxy1-pacrunner-mozjs <= 0.4.7 |
|
254 %endif |
|
255 ExcludeArch: armv6l armv6hl ppc ppc64 ppc64le |
249 ExcludeArch: armv6l armv6hl ppc ppc64 ppc64le |
256 |
250 |
257 %description |
251 %description |
258 Mozilla Firefox is a standalone web browser, designed for standards |
252 Mozilla Firefox is a standalone web browser, designed for standards |
259 compliance and performance. Its functionality can be enhanced via a |
253 compliance and performance. Its functionality can be enhanced via a |
265 Group: Development/Tools/Other |
259 Group: Development/Tools/Other |
266 Provides: firefox-devel = %{version}-%{release} |
260 Provides: firefox-devel = %{version}-%{release} |
267 Requires: %{name} = %{version} |
261 Requires: %{name} = %{version} |
268 Requires: perl(Archive::Zip) |
262 Requires: perl(Archive::Zip) |
269 Requires: perl(XML::Simple) |
263 Requires: perl(XML::Simple) |
|
264 BuildArch: noarch |
270 |
265 |
271 %description devel |
266 %description devel |
272 Development files for %{appname} to make packaging of addons easier. |
267 Development files for %{appname} to make packaging of addons easier. |
273 %endif |
268 %endif |
274 |
269 |
375 export MOZILLA_OFFICIAL=1 |
370 export MOZILLA_OFFICIAL=1 |
376 export BUILD_OFFICIAL=1 |
371 export BUILD_OFFICIAL=1 |
377 export MOZ_TELEMETRY_REPORTING=1 |
372 export MOZ_TELEMETRY_REPORTING=1 |
378 export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system |
373 export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system |
379 export CFLAGS="%{optflags}" |
374 export CFLAGS="%{optflags}" |
380 %if 0%{?suse_version} < 1550 && 0%{?sle_version} <= 150400 |
375 %if 0%{?suse_version} < 1550 && 0%{?sle_version} <= 150500 |
381 export CC=gcc-11 |
376 export CC=gcc-11 |
382 %else |
377 %else |
383 %if 0%{?clang_build} == 0 |
378 %if 0%{?clang_build} == 0 |
384 export CC=gcc |
379 export CC=gcc |
385 export CXX=g++ |
380 export CXX=g++ |
433 %else |
428 %else |
434 ac_add_options --enable-debug-symbols=-g1 |
429 ac_add_options --enable-debug-symbols=-g1 |
435 %endif |
430 %endif |
436 ac_add_options --disable-install-strip |
431 ac_add_options --disable-install-strip |
437 # building with elf-hack started to fail everywhere with FF73 |
432 # building with elf-hack started to fail everywhere with FF73 |
438 #%if 0%{?suse_version} > 1549 |
433 #%%if 0%%{?suse_version} > 1549 |
439 %ifarch %arm %ix86 x86_64 |
434 %ifarch %arm %ix86 x86_64 |
440 ac_add_options --disable-elf-hack |
435 ac_add_options --disable-elf-hack |
441 %endif |
436 %endif |
442 #%endif |
437 #%%endif |
443 ac_add_options --with-system-nspr |
438 ac_add_options --with-system-nspr |
444 ac_add_options --with-system-nss |
439 ac_add_options --with-system-nss |
445 %if 0%{useccache} != 0 |
440 %if 0%{useccache} != 0 |
446 ac_add_options --with-ccache |
441 ac_add_options --with-ccache |
447 %endif |
442 %endif |
456 ac_add_options --enable-alsa |
451 ac_add_options --enable-alsa |
457 ac_add_options --disable-debug |
452 ac_add_options --disable-debug |
458 ac_add_options --enable-update-channel=%{update_channel} |
453 ac_add_options --enable-update-channel=%{update_channel} |
459 ac_add_options --with-mozilla-api-keyfile=%{SOURCE18} |
454 ac_add_options --with-mozilla-api-keyfile=%{SOURCE18} |
460 # Google-service currently not available for free anymore |
455 # Google-service currently not available for free anymore |
461 #ac_add_options --with-google-location-service-api-keyfile=%{SOURCE19} |
456 #ac_add_options --with-google-location-service-api-keyfile=%%{SOURCE19} |
462 ac_add_options --with-google-safebrowsing-api-keyfile=%{SOURCE19} |
457 ac_add_options --with-google-safebrowsing-api-keyfile=%{SOURCE19} |
463 ac_add_options --with-unsigned-addon-scopes=app |
458 ac_add_options --with-unsigned-addon-scopes=app |
464 ac_add_options --allow-addon-sideload |
459 ac_add_options --allow-addon-sideload |
465 # at least temporary until the "wasi-sysroot" issue is solved |
460 # at least temporary until the "wasi-sysroot" issue is solved |
466 ac_add_options --without-wasm-sandboxed-libraries |
461 ac_add_options --without-wasm-sandboxed-libraries |
667 mkdir -p %{buildroot}%{_bindir} |
662 mkdir -p %{buildroot}%{_bindir} |
668 install -m 755 %SOURCE12 %{buildroot}%{_bindir} |
663 install -m 755 %SOURCE12 %{buildroot}%{_bindir} |
669 # inspired by mandriva |
664 # inspired by mandriva |
670 mkdir -p %{buildroot}%{_rpmmacrodir} |
665 mkdir -p %{buildroot}%{_rpmmacrodir} |
671 cat <<'FIN' >%{buildroot}%{_rpmmacrodir}/macros.%{progname} |
666 cat <<'FIN' >%{buildroot}%{_rpmmacrodir}/macros.%{progname} |
672 # Macros from %{name} package |
667 # Macros from %%{name} package |
673 %%firefox_major %{major} |
668 %%firefox_major %{major} |
674 %%firefox_version %{version} |
669 %%firefox_version %{version} |
675 %%firefox_mainver %{mainver} |
670 %%firefox_mainver %{mainver} |
676 %%firefox_mozillapath %%{_libdir}/%{progname} |
671 %%firefox_mozillapath %%{_libdir}/%{progname} |
677 %%firefox_pluginsdir %%{_libdir}/mozilla/plugins |
672 %%firefox_pluginsdir %%{_libdir}/mozilla/plugins |