Skip to content

Commit

Permalink
Postpone replace of DNF to Fedora 41
Browse files Browse the repository at this point in the history
The change will effect also rawhide users.
  • Loading branch information
j-mracek authored and inknos committed Aug 4, 2023
1 parent 4e19cb7 commit 4578178
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions dnf5.spec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Source0: %{url}/archive/%{version}/dnf5-%{version}.tar.gz

Requires: libdnf5%{?_isa} = %{version}-%{release}
Requires: libdnf5-cli%{?_isa} = %{version}-%{release}
%if ! (0%{?fedora} > 38 || 0%{?rhel} > 10)
%if ! (0%{?fedora} > 40 || 0%{?rhel} > 10)
Requires: dnf-data
%endif
Recommends: bash-completion
Expand All @@ -23,7 +23,7 @@ Provides: microdnf = %{version}-%{release}
Obsoletes: microdnf < 4
%endif

%if 0%{?fedora} > 38 || 0%{?rhel} > 10
%if 0%{?fedora} > 40 || 0%{?rhel} > 10
Provides: dnf = %{version}-%{release}
Obsoletes: dnf < 5

Expand Down Expand Up @@ -217,7 +217,7 @@ It supports RPM packages, modulemd modules, and comps groups & environments.

%files
%{_bindir}/dnf5
%if 0%{?fedora} > 38 || 0%{?rhel} > 10
%if 0%{?fedora} > 40 || 0%{?rhel} > 10
%{_bindir}/dnf
%{_bindir}/yum
%endif
Expand Down Expand Up @@ -283,15 +283,15 @@ License: LGPL-2.1-or-later
Requires: libsolv%{?_isa} >= %{libsolv_version}
Requires: librepo%{?_isa} >= %{librepo_version}
Requires: sqlite-libs%{?_isa} >= %{sqlite_version}
%if 0%{?fedora} > 38 || 0%{?rhel} > 10
%if 0%{?fedora} > 40 || 0%{?rhel} > 10
Conflicts: dnf-data < 4.16.0
%endif

%description -n libdnf5
Package management library.

%files -n libdnf5
%if 0%{?fedora} > 38 || 0%{?rhel} > 10
%if 0%{?fedora} > 40 || 0%{?rhel} > 10
%config(noreplace) %{_sysconfdir}/dnf/dnf.conf
%dir %{_sysconfdir}/dnf/vars
%dir %{_sysconfdir}/dnf/protected.d
Expand Down Expand Up @@ -566,7 +566,7 @@ Requires: libdnf5%{?_isa} = %{version}-%{release}
Requires: libdnf5-cli%{?_isa} = %{version}-%{release}
Requires: dbus
Requires: polkit
%if ! (0%{?fedora} > 38 || 0%{?rhel} > 10)
%if ! (0%{?fedora} > 40 || 0%{?rhel} > 10)
Requires: dnf-data
%endif

Expand Down Expand Up @@ -672,7 +672,7 @@ Core DNF5 plugins that enhance dnf5 with builddep, changelog, copr, and repoclos
%install
%cmake_install

%if 0%{?fedora} > 38 || 0%{?rhel} > 10
%if 0%{?fedora} > 40 || 0%{?rhel} > 10
ln -sr %{buildroot}%{_bindir}/dnf5 %{buildroot}%{_bindir}/dnf
ln -sr %{buildroot}%{_bindir}/dnf5 %{buildroot}%{_bindir}/yum
%endif
Expand Down

0 comments on commit 4578178

Please sign in to comment.