]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak bacula.spec.in again
authorKern Sibbald <kern@sibbald.com>
Thu, 30 Mar 2017 18:47:25 +0000 (20:47 +0200)
committerKern Sibbald <kern@sibbald.com>
Thu, 30 Mar 2017 18:47:25 +0000 (20:47 +0200)
bacula/platforms/rpms/redhat/bacula.spec.in

index 624c57651ec4eb4fbb6542f6f83bb4326640cf21..d5a0374cb9d5b779287709c19ea8c71caa3f8635 100644 (file)
@@ -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