Skip to content

Commit

Permalink
chore: Clean up Fedora 37-related conditionals in RPM spec
Browse files Browse the repository at this point in the history
Fedora 37 was end-of-life on 2023-12-05.
  • Loading branch information
bc-lee authored and pkratoch committed Oct 18, 2024
1 parent 5268783 commit bed44b7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions dnf5.spec
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ Recommends: (dnf5-plugins if dnf-plugins-core)
Recommends: bash-completion
Requires: coreutils

# Remove if condition when Fedora 37 is EOL
%if 0%{?fedora} > 37 || 0%{?rhel} > 10
%if 0%{?fedora} || 0%{?rhel} > 10
Provides: microdnf = %{version}-%{release}
Obsoletes: microdnf < 4
%endif
Expand Down Expand Up @@ -271,8 +270,7 @@ It supports RPM packages, modulemd modules, and comps groups & environments.
%{_bindir}/yum
%endif

# Remove if condition when Fedora 37 is EOL
%if 0%{?fedora} > 37 || 0%{?rhel} > 10
%if 0%{?fedora} || 0%{?rhel} > 10
%{_bindir}/microdnf
%endif

Expand Down Expand Up @@ -857,8 +855,7 @@ mkdir -p %{buildroot}%{_prefix}/lib/sysimage/libdnf5/comps_groups
mkdir -p %{buildroot}%{_prefix}/lib/sysimage/libdnf5/offline
touch %{buildroot}%{_sysconfdir}/dnf/versionlock.toml

# Remove if condition when Fedora 37 is EOL
%if 0%{?fedora} > 37 || 0%{?rhel} > 10
%if 0%{?fedora} || 0%{?rhel} > 10
ln -sr %{buildroot}%{_bindir}/dnf5 %{buildroot}%{_bindir}/microdnf
%endif

Expand Down

0 comments on commit bed44b7

Please sign in to comment.