The %post scriptlet ran "dnf config-manager --save --setopt=...", which is dnf4-only syntax. On Fedora 44 (dnf5) it fails with "Unknown argument --save" (exit 2), so every install of this package ends with the dnf transaction marked as an error even though the package is installed, and the fedora*/updates* excludepkgs were never applied. Drop the scriptlet and ship a declarative dnf5 distribution override at /usr/share/dnf5/repos.override.d/50-ims-fedora-extras.repo instead. It uses glob repo IDs ([fedora*], [updates*]) to set excludepkgs=freeipa* frr* strongswan* on the stock Fedora repos. Require dnf5 explicitly.
52 lines
1.7 KiB
RPMSpec
52 lines
1.7 KiB
RPMSpec
Summary: InfoMaOS Fedora extras release
|
|
Name: ims-fedora-extras-release
|
|
Version: 44
|
|
Release: 1%{?dist}
|
|
License: GPLv2+
|
|
Group: System Environment/Base
|
|
URL: http://gitea.netst.org/rpms-fedora-extras/ims-fedora-extras-release
|
|
BuildArch: noarch
|
|
Source0: ims-fedora-extras.repo
|
|
Source1: ims-fedora.repo
|
|
Source2: ims-fedora-updates.repo
|
|
Source3: 50-ims-fedora-extras.repo
|
|
|
|
Requires: dnf5
|
|
|
|
%description
|
|
InfoMaOS Fedora extras repository
|
|
|
|
|
|
%install
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
install -dm 755 %{buildroot}%{_sysconfdir}/yum.repos.d
|
|
install -pm 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/yum.repos.d
|
|
install -pm 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/yum.repos.d
|
|
install -pm 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/yum.repos.d
|
|
|
|
# dnf5 distribution repo override: exclude our rebuilt packages from the
|
|
# stock fedora*/updates* repos. Replaces the former dnf4 config-manager %%post.
|
|
install -dm 755 %{buildroot}%{_datadir}/dnf5/repos.override.d
|
|
install -pm 644 %{SOURCE3} %{buildroot}%{_datadir}/dnf5/repos.override.d
|
|
|
|
%clean
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{_sysconfdir}/yum.repos.d/*
|
|
%{_datadir}/dnf5/repos.override.d/50-ims-fedora-extras.repo
|
|
|
|
%changelog
|
|
* Thu Sep 10 2026 Zoran Pericic <zoran.pericic@netst.org> - 44-1
|
|
- Drop %%post scriptlet: "dnf config-manager --save" is dnf4-only and fails
|
|
with exit status 2 on dnf5, making the install transaction report an error
|
|
- Ship /usr/share/dnf5/repos.override.d/50-ims-fedora-extras.repo instead,
|
|
a declarative dnf5 override excluding freeipa*/frr*/strongswan* from
|
|
fedora* and updates* repos
|
|
- Require dnf5
|
|
|
|
* Wed Mar 23 2022 Zoran Pericic <zoran.pericic@netst.org>
|
|
Initial release
|