From bbf2e891aa84a2384a5b9abdb8a6add65df970aa Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Jan 02 2018 11:56:19 +0000 Subject: Require annobin only if gcc is installed Since b5ea4b290b4eace5568bb1a9a3fe178faae1c2d1 we started to require gcc (because annobin requires gcc). Since annobin does work only with gcc, we don't have to install it if user doesn't have it. Reported-by: Dominick Grift Signed-off-by: Igor Gnatenko --- diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index 74635d3..3b87162 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -6,8 +6,8 @@ Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config -Version: 70 -Release: 2%{?dist} +Version: 71 +Release: 1%{?dist} # No version specified. License: GPL+ Group: Development/System @@ -82,7 +82,7 @@ Requires: qt5-srpm-macros Requires: rpm >= 4.11.0 Requires: dwz >= 0.4 Requires: zip -Requires: annobin +Requires: (annobin if gcc) Provides: system-rpm-config = %{version}-%{release} @@ -151,6 +151,9 @@ install -p -m 755 -t %{buildroot}%{_rpmconfigdir} kmod.prov %{_rpmconfigdir}/macros.d/macros.kmp %changelog +* Tue Jan 02 2018 Igor Gnatenko - 71-1 +- Require annobin only if gcc is installed + * Thu Dec 21 2017 Björn Esser - 70-2 - Add Requires: cmake-rpm-macros for CMake auto-{provides,requires} (#1498894)