From 8a71368bcca5c2990b3cc5ff0710c779c13bf188 Mon Sep 17 00:00:00 2001 From: Jan Kolarik Date: Aug 04 2023 11:03:47 +0000 Subject: Revert DNF obsoletion --- diff --git a/dnf.spec b/dnf.spec index 0b6511e..60e10dc 100644 --- a/dnf.spec +++ b/dnf.spec @@ -66,7 +66,7 @@ It supports RPMs, modules and comps groups & environments. Name: dnf Version: 4.16.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: %{pkg_summary} # For a breakdown of the licensing, see PACKAGE-LICENSING License: GPL-2.0-or-later AND GPL-1.0-only @@ -95,7 +95,7 @@ Conflicts: python3-dnf-plugins-extras-common < %{conflicts_dnf_plugins_extr %package data Summary: Common data and configuration files for DNF Requires: libreport-filesystem -%if 0%{?fedora} > 38 +%if 0%{?fedora} > 40 || 0%{?rhel} > 10 Requires: /etc/dnf/dnf.conf %endif Obsoletes: %{name}-conf <= %{version}-%{release} @@ -235,7 +235,7 @@ ln -sr %{buildroot}%{confdir}/protected.d %{buildroot}%{_sysconfdir}/yum/protec ln -sr %{buildroot}%{confdir}/vars %{buildroot}%{_sysconfdir}/yum/vars %endif -%if 0%{?fedora} > 38 +%if 0%{?fedora} > 40 || 0%{?rhel} > 10 rm %{buildroot}%{confdir}/%{name}.conf %endif @@ -290,13 +290,13 @@ popd %dir %{confdir}/modules.d %dir %{confdir}/modules.defaults.d %dir %{pluginconfpath} -%if 0%{?fedora} <= 38 +%if ! (0%{?fedora} > 40 || 0%{?rhel} > 10) %dir %{confdir}/protected.d %dir %{confdir}/vars %endif %dir %{confdir}/aliases.d %exclude %{confdir}/aliases.d/zypper.conf -%if 0%{?fedora} <= 38 +%if ! (0%{?fedora} > 40 || 0%{?rhel} > 10) %config(noreplace) %{confdir}/%{name}.conf %endif @@ -380,6 +380,9 @@ popd %{python3_sitelib}/%{name}/automatic/ %changelog +* Fri Aug 04 2023 Jan Kolarik - 4.16.2-2 +- Revert DNF obsoletion + * Thu Jul 27 2023 Nicola Sella - 4.16.2-1 - Update to 4.16.2 - depend on /etc/dnf/dnf.conf, not libdnf5