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.
This commit is contained in:
parent
65e87b6f89
commit
17fb87653c
@ -6,6 +6,8 @@
|
|||||||
# ctdb is enabled by default, you can disable it with: --without clustering
|
# ctdb is enabled by default, you can disable it with: --without clustering
|
||||||
%bcond_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 main_release 4
|
||||||
|
|
||||||
%define samba_version 4.12.0
|
%define samba_version 4.12.0
|
||||||
@ -366,7 +368,7 @@ Requires: ldb-tools
|
|||||||
# Force using libldb version to be the same as build version
|
# Force using libldb version to be the same as build version
|
||||||
# Otherwise LDB modules will not be loaded and samba-tool will fail
|
# Otherwise LDB modules will not be loaded and samba-tool will fail
|
||||||
# See bug 1507420
|
# See bug 1507420
|
||||||
%requires_eq libldb
|
%samba_requires_eq libldb
|
||||||
|
|
||||||
Requires: python3-crypto
|
Requires: python3-crypto
|
||||||
Requires: python3-%{name} = %{samba_depver}
|
Requires: python3-%{name} = %{samba_depver}
|
||||||
|
Loading…
Reference in New Issue
Block a user