public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Martin Stransky <stransky@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/firefox] f43: Remove Fedora 40/41 tweaks
Date: Tue, 07 Jul 2026 09:14:20 GMT	[thread overview]
Message-ID: <178341566099.1.4557603829308672699.rpms-firefox-4e2dd2108251@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/firefox
Branch : f43
Commit : 4e2dd2108251d78e5812711828206ebae3bd3c21
Author : Martin Stransky <stransky@redhat.com>
Date   : 2026-07-07T11:13:48+02:00
Stats  : +6/-77 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/firefox/c/4e2dd2108251d78e5812711828206ebae3bd3c21?branch=f43

Log:
Remove Fedora 40/41 tweaks

---
diff --git a/firefox.spec b/firefox.spec
index 4a97e4c..6bb3065 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -25,13 +25,7 @@ ExcludeArch: i686
 # Disabled due to various issues now.
 %global use_xdg_file_portal 0
 
-# PipeWire camera is needed for IPU6 camera support in Fedora 41+
-# https://fedoraproject.org/wiki/Changes/IPU6_Camera_support
-%if 0%{?fedora} >= 41
 %global use_pipewire_camera 1
-%else
-%global use_pipewire_camera 0
-%endif
 
 %global system_nss        1
 %global system_libevent   1
@@ -42,15 +36,10 @@ ExcludeArch: i686
 %global enable_replace_malloc 0
 %endif
 
-# wasi_sdk 30 is not compatible with llvm 18
-%if 0%{?fedora} <= 40
+%ifarch s390x
   %bcond wasi_sdk 0
 %else
-  %ifarch s390x
-    %bcond wasi_sdk 0
-  %else
-    %bcond wasi_sdk 1
-  %endif
+  %bcond wasi_sdk 1
 %endif
 
 %bcond build_with_clang 0
@@ -60,10 +49,7 @@ ExcludeArch: i686
 %global toolchain gcc
 %endif
 
-%global gnome_shell_search_provider 0
-%if 0%{?fedora} >= 40
 %global gnome_shell_search_provider 1
-%endif
 
 # Temporary disabled due to
 # https://bugzilla.redhat.com/show_bug.cgi?id=1951606
@@ -204,7 +190,7 @@ ExcludeArch: i686
 Summary:        Mozilla Firefox Web browser
 Name:           firefox
 Version:        152.0.4
-Release:        1%{?pre_tag}%{?dist}
+Release:        2%{?pre_tag}%{?dist}
 URL:            https://www.mozilla.org/firefox/
 # Automatically converted from old format: MPLv1.1 or GPLv2+ or LGPLv2+ - review is highly recommended.
 License:        LicenseRef-Callaway-MPLv1.1 OR GPL-2.0-or-later OR LicenseRef-Callaway-LGPLv2+
@@ -473,15 +459,8 @@ BuildRequires:  compiler-rt
 Obsoletes:      mozilla <= 37:1.7.13
 Provides:       webclient
 
-# Don't ship firefox-x11 and firefox-wayland on Fedora 40.
-# Wayland backend is considered as mature enough now.
-# We need to use v-r in Obsoletes because new versions of this
-# package keep being built in older releases, and we want to
-# obsolete all of them when the user updates to F40+.
-%if 0%{?fedora} >= 40
 Obsoletes:  firefox-wayland < %{version}-%{release}
 Obsoletes:  firefox-x11 <  %{version}-%{release}
-%endif
 
 %description
 Mozilla Firefox is an open-source web browser, designed for standards
@@ -517,28 +496,6 @@ debug %{name}, you want to install %{name}-debuginfo instead.
 %global _find_debuginfo_opts %{limit_build -m 32768}
 %endif
 
-%if 0%{?fedora} < 40
-%package x11
-Summary: Firefox X11 launcher.
-Requires: %{name}
-%description x11
-The firefox-x11 package contains launcher and desktop file
-to run Firefox explicitly on X11.
-%files x11
-%{_bindir}/firefox-x11
-%{_datadir}/applications/firefox-x11.desktop
-
-%package wayland
-Summary: Firefox Wayland launcher.
-Requires: %{name}
-%description wayland
-The firefox-wayland package contains launcher and desktop file
-to run Firefox explicitly on Wayland.
-%files wayland
-%{_bindir}/firefox-wayland
-%{_datadir}/applications/firefox-wayland.desktop
-%endif
-
 %if 0%{?run_firefox_tests}
 %global testsuite_pkg_name %{name}-testresults
 %package -n %{testsuite_pkg_name}
@@ -997,25 +954,11 @@ mkdir -p %{buildroot}%{_datadir}/dbus-1/services
 cp %{SOURCE46} %{buildroot}%{_datadir}/dbus-1/services
 %endif
 
-%if 0%{?fedora} >= 40
 desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE47}
-%else
-# We can't use desktop-file-install as it refuses to install firefox.desktop file.
-cp %{SOURCE20} %{buildroot}%{_datadir}/applications
-%endif
-
-%if 0%{?fedora} < 40
-desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE31}
-desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE29}
-%endif
 
 # set up the firefox start script
 rm -rf %{buildroot}%{_bindir}/firefox
-%if 0%{?fedora} < 40
-sed -e 's,/__PREFIX__,%{_prefix},g' -e 's,__APP_NAME__,firefox,g' %{SOURCE21} > %{buildroot}%{_bindir}/firefox
-%else
 sed -e 's,/__PREFIX__,%{_prefix},g' -e 's,__APP_NAME__,org.mozilla.firefox,g' %{SOURCE21} > %{buildroot}%{_bindir}/firefox
-%endif
 chmod 755 %{buildroot}%{_bindir}/firefox
 
 %if 0%{?flatpak}
@@ -1024,13 +967,6 @@ sed -i -e 's|%FLATPAK_ENV_VARS%|export TMPDIR="$XDG_CACHE_HOME/tmp"|' %{buildroo
 sed -i -e 's|%FLATPAK_ENV_VARS%||' %{buildroot}%{_bindir}/firefox
 %endif
 
-%if 0%{?fedora} < 40
-sed -e 's,/__PREFIX__,%{_prefix},g' %{SOURCE30} > %{buildroot}%{_bindir}/firefox-x11
-chmod 755 %{buildroot}%{_bindir}/firefox-x11
-sed -e 's,/__PREFIX__,%{_prefix},g' %{SOURCE28} > %{buildroot}%{_bindir}/firefox-wayland
-chmod 755 %{buildroot}%{_bindir}/firefox-wayland
-%endif
-
 install -p -D -m 644 %{SOURCE23} %{buildroot}%{_mandir}/man1/firefox.1
 
 rm -f %{buildroot}/%{mozappdir}/firefox-config
@@ -1153,15 +1089,9 @@ sed -e "s/__NAME__/%(source /etc/os-release; echo ${NAME})/" \
 
 # Install appdata file
 mkdir -p %{buildroot}%{_datadir}/metainfo
-%if 0%{?fedora} >= 40
 sed -e "s/__VERSION__/%{version}/" \
     -e "s/__DATE__/$(date '+%F')/" \
     %{SOURCE48} > %{buildroot}%{_datadir}/metainfo/org.mozilla.firefox.appdata.xml
-%else
-sed -e "s/__VERSION__/%{version}/" \
-    -e "s/__DATE__/$(date '+%F')/" \
-    %{SOURCE33} > %{buildroot}%{_datadir}/metainfo/firefox.appdata.xml
-%endif
 
 # Remove copied libraries to speed up build
 rm -f %{buildroot}%{mozappdirdev}/sdk/lib/libmozjs.so
@@ -1224,11 +1154,7 @@ fi
 %dir %{_sysconfdir}/%{name}/*
 %dir %{_datadir}/mozilla/extensions/*
 %dir %{_libdir}/mozilla/extensions/*
-%if 0%{?fedora} >= 40
 %{_datadir}/applications/org.mozilla.firefox.desktop
-%else
-%{_datadir}/applications/firefox.desktop
-%endif
 %if %{gnome_shell_search_provider}
 %{_datadir}/dbus-1/services/*
 %{_datadir}/gnome-shell/search-providers/*.ini
@@ -1286,6 +1212,9 @@ fi
 #---------------------------------------------------------------------
 
 %changelog
+* Tue Jul 07 2026 Martin Stransky <stransky@redhat.com> - 152.0.4-2
+- Remove Fedora 40/41 tweaks.
+
 * Mon Jul 06 2026 Martin Stransky <stransky@redhat.com> - 152.0.4-1
 - Update to latest upstream (152.0.4)
 

                 reply	other threads:[~2026-07-07  9:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178341566099.1.4557603829308672699.rpms-firefox-4e2dd2108251@fedoraproject.org \
    --to=stransky@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox