From 17fb87653c637ca84962ec648930b8d1357c5a19 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Tue, 17 Mar 2020 15:18:49 +0200 Subject: [PATCH] Internalize requires_eq macro %requires_eq macro is going to be removed from Fedora: https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/81 Until a better solution is provided, internalize the macro definition. --- samba.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/samba.spec b/samba.spec index f33c57b..a2d1633 100644 --- a/samba.spec +++ b/samba.spec @@ -6,6 +6,8 @@ # ctdb is enabled by default, you can disable it with: --without clustering %bcond_without clustering +%define samba_requires_eq %(LC_ALL="C" echo '%*' | xargs -r rpm -q --qf 'Requires: %%{name} = %%{epoch}:%%{version}\n' | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not") + %define main_release 4 %define samba_version 4.12.0 @@ -366,7 +368,7 @@ Requires: ldb-tools # Force using libldb version to be the same as build version # Otherwise LDB modules will not be loaded and samba-tool will fail # See bug 1507420 -%requires_eq libldb +%samba_requires_eq libldb Requires: python3-crypto Requires: python3-%{name} = %{samba_depver}