From 601f92d61c6e443623b2977eba0ee834d03c1601 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 30 Mar 2017 20:47:25 +0200 Subject: [PATCH] Tweak bacula.spec.in again --- bacula/platforms/rpms/redhat/bacula.spec.in | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/bacula/platforms/rpms/redhat/bacula.spec.in b/bacula/platforms/rpms/redhat/bacula.spec.in index 624c57651e..d5a0374cb9 100644 --- a/bacula/platforms/rpms/redhat/bacula.spec.in +++ b/bacula/platforms/rpms/redhat/bacula.spec.in @@ -314,15 +314,8 @@ exit 1 %if %{mdk} %define _dist %(grep Mand /etc/mandrake-release) %endif -%if %{rhat} || %{rhel} -%define _dist %(grep Red /etc/redhat-release) -%endif -%{?DISTNAME:%define _dist %{DISTNAME}} -# only set Disribution if not in opensuse build service, as it sets it itself -%if ! 0%{?opensuse_bs} -Distribution: %{_dist} -%endif +Distribution: %_dist %if 0%{?opensuse_bs} && %{mysql} && %{suse} # needed in opensuse_bs, as rpm is installed during build process -- 2.39.5