Only require cmake-rpm-macros when rpm-build is installed
There are other use-cases for cmake besides building rpms, for which a hard requirement of rpm is absurd. Ironically enough, this hard dependency also causes an ugly conflict requiring --nodeps hacks when building rpm's own test-suite. A conditional dependency on rpm-build sorts the issue nicely with no regressions to the use-case of building packages.
This commit is contained in:
parent
cbd49edade
commit
9802a8d657
@ -72,7 +72,7 @@
|
|||||||
%global patch_version 4
|
%global patch_version 4
|
||||||
|
|
||||||
# For handling bump release by rpmdev-bumpspec and mass rebuild
|
# For handling bump release by rpmdev-bumpspec and mass rebuild
|
||||||
%global baserelease 2
|
%global baserelease 3
|
||||||
|
|
||||||
# Set to RC version if building RC, else comment out.
|
# Set to RC version if building RC, else comment out.
|
||||||
#global rcsuf rc1
|
#global rcsuf rc1
|
||||||
@ -208,7 +208,7 @@ BuildRequires: %{name}-rpm-macros
|
|||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
|
|
||||||
Requires: %{name}-data = %{version}-%{release}
|
Requires: %{name}-data = %{version}-%{release}
|
||||||
Requires: %{name}-rpm-macros = %{version}-%{release}
|
Requires: (%{name}-rpm-macros = %{version}-%{release} if rpm-build)
|
||||||
Requires: %{name}-filesystem%{?_isa} = %{version}-%{release}
|
Requires: %{name}-filesystem%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
# Explicitly require make. (rhbz#1862014)
|
# Explicitly require make. (rhbz#1862014)
|
||||||
@ -552,6 +552,9 @@ popd
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 31 2023 Panu Matilainen <pmatilai@redhat.com> - 3.27.4-3
|
||||||
|
- Only require cmake-rpm-macros when rpm-build is installed
|
||||||
|
|
||||||
* Mon Aug 28 2023 Björn Esser <besser82@fedoraproject.org> - 3.27.4-2
|
* Mon Aug 28 2023 Björn Esser <besser82@fedoraproject.org> - 3.27.4-2
|
||||||
- Add upstream patch to fix linking non-builtin libatomic on some arches
|
- Add upstream patch to fix linking non-builtin libatomic on some arches
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user