Provide compatibility provides only from f37+
I do not want to install this package when dnf install bind-utils is specified. I want to prefer original bind-utils if they are available. Install this by bind9-next-utils only, but be able to satisfy bind-utils requirements from other package. That works as expected only on recent enough distribution, starting with f37.
This commit is contained in:
parent
47ebe1cef0
commit
a4d1dd48c9
|
@ -52,13 +52,11 @@
|
|||
|
||||
# Upstream package name
|
||||
%global upname bind
|
||||
# Unversioned provides for previous version
|
||||
# Provide only bind-utils on f37+, it has better behaviour
|
||||
%define upname_compat() \
|
||||
%if "%{name}" != "%{upname}" \
|
||||
%if 0%{?fedora} >= 37 \
|
||||
Provides: %1 = %{epoch}:%{version}-%{release} \
|
||||
%else \
|
||||
Provides: %1 \
|
||||
%endif \
|
||||
Obsoletes: %1 < 32:9.17.0 \
|
||||
Conflicts: %1 \
|
||||
|
@ -68,7 +66,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv
|
|||
Name: bind9-next
|
||||
License: MPLv2.0
|
||||
Version: 9.19.5
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Epoch: 32
|
||||
Url: https://www.isc.org/downloads/bind/
|
||||
#
|
||||
|
@ -969,6 +967,9 @@ fi;
|
|||
%endif
|
||||
|
||||
%changelog
|
||||
* Tue Sep 27 2022 Petr Menšík <pemensik@redhat.com> - 32:9.19.5-3
|
||||
- Provide compatibility provides only on f37+
|
||||
|
||||
* Sat Sep 24 2022 Petr Menšík <pemensik@redhat.com> - 32:9.19.5-2
|
||||
- Build ARM docs even on RHEL9
|
||||
|
||||
|
|
Loading…
Reference in New Issue