From: Kern Sibbald Date: Thu, 30 Mar 2017 18:47:25 +0000 (+0200) Subject: Tweak bacula.spec.in again X-Git-Tag: Release-7.9.0~61 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=601f92d61c6e443623b2977eba0ee834d03c1601;p=bacula%2Fbacula Tweak bacula.spec.in again --- 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