public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/bind] rawhide: Import back more recent upname_compat without -a
Date: Wed, 25 Nov 2026 12:05:35 GMT [thread overview]
Message-ID: <179560833596.1.7142117853725355265.rpms-bind-5e3450f32c0c@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/bind
Branch : rawhide
Commit : 5e3450f32c0c62564de07aa7ab5176d165eeeab0
Author : Petr Menšík <pemensik@redhat.com>
Date : 2026-11-24T15:47:50+01:00
Stats : +34/-14 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/bind/c/5e3450f32c0c62564de07aa7ab5176d165eeeab0?branch=rawhide
Log:
Import back more recent upname_compat without -a
Provide similar symbols than before, but without -a parameter enabling
alternatives support. Using suffix allows better provision of both bind-
and bind9- prefixed provides on subpackages.
---
diff --git a/bind.spec b/bind.spec
index a2d38d9..a82d1a5 100644
--- a/bind.spec
+++ b/bind.spec
@@ -64,18 +64,38 @@
# lib*-%%{version}-RH.so is provided as an internal implementation detail
# Upstream package name
-%global upname bind
+%global upname bind9
+
+# original name of this package
+%global oldname bind
# Used on shared libraries, snapshot adds -dev suffix
%global lib_version 9.18.51
# Epoch is intentionally missing from Provides to be lower than bind package
-%define upname_compat() \
-%if "%{name}" != "%{upname}" \
-Provides: %1 = %{version}-%{release} \
-Conflicts: %1 \
+%if "%{name}" != "%{upname}" && "%{name}" != "%{oldname}"
+# alternative version usually has higher version, do not provide epoch on compat symbols.
+# keeps the default bind package the preferred one on dnf install bind{,-utils}
+%global provide_epoch %{nil}
+%else
+# On regular version provide also epoch
+%global provide_epoch %{epoch}:
%endif
+# Conflict with all packages not yet using alternatives
+# bind*-chroot should conflict always, not supporting alternatives
+%define upname_compat(as:) \
+Provides: %{upname}%{-s:-}%{-s*}-any = %{provide_epoch}%{version}-%{release} \
+%if "%{name}" != "%{upname}" \
+Provides: %{upname}%{-s:-}%{-s*} = %{provide_epoch}%{version}-%{release} \
+%endif \
+%if "%{name}" != "%{oldname}" \
+Provides: %{oldname}%{-s:-}%{-s*} = %{provide_epoch}%{version}-%{release} \
+%endif \
+Conflicts: %{upname}%{-s:-}%{-s*} \
+Conflicts: %{oldname}%{-s:-}%{-s*} \
+# end of upname_compat. Conflict with other providers of the same symbols
+
Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) server
Name: bind
License: MPL-2.0 AND ISC AND MIT AND BSD-3-Clause AND BSD-2-Clause
@@ -101,10 +121,10 @@ Release: %autorelease
Epoch: 32
Url: https://www.isc.org/downloads/bind/
#
-%dnl Source0: https://downloads.isc.org/isc/bind9/%{version}/%{upname}-%{version}.tar.xz
+%dnl Source0: https://downloads.isc.org/isc/bind9/%{version}/%{oldname}-%{version}.tar.xz
Source0: https://gitlab.isc.org/isc-projects/bind9/-/archive/%{git_commit}/bind9-%{git_commit}.tar.bz2
Source1: named.sysconfig
-%dnl Source2: https://downloads.isc.org/isc/bind9/%{version}/%{upname}-%{version}.tar.xz.asc
+%dnl Source2: https://downloads.isc.org/isc/bind9/%{version}/%{oldname}-%{version}.tar.xz.asc
Source3: named.logrotate
Source4: https://www.isc.org/docs/isc-keyblock.asc
Source16: named.conf
@@ -168,7 +188,7 @@ Requires(post): glibc-common
Requires(post): grep
Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release}
Recommends: %{name}-utils %{name}-dnssec-utils
-%upname_compat %{upname}
+%upname_compat
Obsoletes: %{name}-pkcs11 < 32:9.18.4-2
BuildRequires: gcc
@@ -266,7 +286,7 @@ Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release}
# For compatibility with Debian package
Provides: dnsutils = %{epoch}:%{version}-%{release}
Obsoletes: %{name}-pkcs11-utils < 32:9.18.4-2
-%upname_compat %{upname}-utils
+%upname_compat -s utils
%description utils
Bind-utils contains a collection of utilities for querying DNS (Domain
@@ -284,7 +304,7 @@ Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release}
Recommends: %{name}-utils
Obsoletes: python3-%{name} < 32:9.18.0
Obsoletes: %{name}-dnssec-doc < 32:9.18.4-2
-%upname_compat %{upname}-dnssec-utils
+%upname_compat -s dnssec-utils
%description dnssec-utils
%{name}-dnssec-utils contains a collection of utilities for editing
@@ -302,7 +322,7 @@ Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release}
Requires: pkgconfig(libcrypto) pkgconfig(libssl)
Requires: pkgconfig(libxml-2.0)
Requires: pkgconfig(libcap)
-%upname_compat %{upname}-devel
+%upname_compat -s devel
%if %{with GSSTSIG}
Requires: pkgconfig(krb5)
%endif
@@ -331,9 +351,9 @@ Prefix: %{chroot_prefix}
# grep is required due to setup-named-chroot.sh script
Requires: grep
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
-%upname_compat %{upname}-chroot
-%if "%{name}" != "%{upname}"
-Conflicts: %{upname}-sdb-chroot
+%upname_compat -s chroot
+%if "%{name}" != "%{oldname}"
+Conflicts: %{oldname}-sdb-chroot
%endif
%description chroot
reply other threads:[~2026-11-25 12:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179560833596.1.7142117853725355265.rpms-bind-5e3450f32c0c@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox