Skip to content

Commit

Permalink
Configure copr repo dnf5-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
inknos authored and jan-kolarik committed Aug 15, 2023
1 parent 8e7ae4f commit 48c3dd5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions dnf.spec
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
%global conflicts_dnf_plugins_extras_version 4.0.4
%global conflicts_dnfdaemon_version 0.3.19

%bcond obsolete_dnf %[0%{?fedora} > 40 || 0%{?rhel} > 10]

# override dependencies for rhel 7
%if 0%{?rhel} == 7
%global rpm_version 4.11.3-32
Expand Down Expand Up @@ -95,7 +97,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} > 40 || 0%{?rhel} > 10
%if %{without obsolete_dnf}
Requires: /etc/dnf/dnf.conf
%endif
Obsoletes: %{name}-conf <= %{version}-%{release}
Expand Down Expand Up @@ -235,7 +237,7 @@ ln -sr %{buildroot}%{confdir}/protected.d %{buildroot}%{_sysconfdir}/yum/protec
ln -sr %{buildroot}%{confdir}/vars %{buildroot}%{_sysconfdir}/yum/vars
%endif

%if 0%{?fedora} > 40 || 0%{?rhel} > 10
%if %{without obsolete_dnf}
rm %{buildroot}%{confdir}/%{name}.conf
%endif

Expand Down Expand Up @@ -290,13 +292,13 @@ popd
%dir %{confdir}/modules.d
%dir %{confdir}/modules.defaults.d
%dir %{pluginconfpath}
%if ! (0%{?fedora} > 40 || 0%{?rhel} > 10)
%if %{with obsolete_dnf}
%dir %{confdir}/protected.d
%dir %{confdir}/vars
%endif
%dir %{confdir}/aliases.d
%exclude %{confdir}/aliases.d/zypper.conf
%if ! (0%{?fedora} > 40 || 0%{?rhel} > 10)
%if %{with obsolete_dnf}
%config(noreplace) %{confdir}/%{name}.conf
%endif

Expand Down

0 comments on commit 48c3dd5

Please sign in to comment.