Generate distribution.ini using /etc/os-release values

This commit is contained in:
Andrew Lukoshko 2024-08-09 09:06:30 +00:00
parent cf9855bfcf
commit f346de3ef9
2 changed files with 13 additions and 7 deletions

View File

@ -1,9 +1,9 @@
[Global]
id=fedora
id=__ID__
version=1.0
about=Mozilla Firefox for Fedora
about=Mozilla Firefox for __NAME__
[Preferences]
app.distributor=fedora
app.distributor.channel=fedora
app.partner.fedora=fedora
app.distributor=__ID__
app.distributor.channel=__ID__
app.partner.fedora=__ID__

View File

@ -137,7 +137,7 @@ end}
Summary: Mozilla Firefox Web browser
Name: firefox
Version: 128.0
Release: 2%{?dist}
Release: 2%{?dist}.alma.1
URL: https://www.mozilla.org/firefox/
License: MPLv1.1 or GPLv2+ or LGPLv2+
@ -1610,7 +1610,10 @@ ln -s %{_datadir}/myspell %{buildroot}%{mozappdir}/dictionaries
# Add distribution.ini
%{__mkdir_p} %{buildroot}%{mozappdir}/distribution
%{__cp} %{SOURCE26} %{buildroot}%{mozappdir}/distribution
%{__sed} -e "s/__NAME__/%(source /etc/os-release; echo ${NAME})/" \
-e "s/__ID__/%(source /etc/os-release; echo ${ID})/" \
-e "s/rhel/redhat/" \
%{SOURCE26} > %{buildroot}%{mozappdir}/distribution/distribution.ini
# Install appdata file
mkdir -p %{buildroot}%{_datadir}/metainfo
@ -1745,6 +1748,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
#---------------------------------------------------------------------
%changelog
* Fri Aug 09 2024 Andrew Lukoshko <alukoshko@almalinux.org> - 128.0-2.alma.1
- Generate distribution.ini using /etc/os-release values
* Wed Jul 10 2024 Tomas Popela <tpopela@redhat.com> - 128.0-1
- Update to 128.0