From: Davide Franco Date: Sun, 28 Feb 2021 18:02:27 +0000 (+0000) Subject: rpms: Update bacula.spec for rhel8 X-Git-Tag: Release-11.0.2~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d630fb8d343bf925c4dafdde3b14c68c2ba071a;p=thirdparty%2Fbacula.git rpms: Update bacula.spec for rhel8 --- diff --git a/bacula/platforms/rpms/redhat/bacula.spec.in b/bacula/platforms/rpms/redhat/bacula.spec.in index 4f076e711..a609d4128 100644 --- a/bacula/platforms/rpms/redhat/bacula.spec.in +++ b/bacula/platforms/rpms/redhat/bacula.spec.in @@ -154,6 +154,9 @@ Source2: Release_Notes-%{version}-%{release}.tar.gz %define rhel7 0 %{?build_rhel7:%define rhel7 1} %{?build_el7:%define rhel7 1} +%define rhel8 0 +%{?build_rhel8:%define rhel8 1} +%{?build_el8:%define rhel8 1} # CentOS build %define centos3 0 %{?build_centos3:%define centos3 1} @@ -211,7 +214,7 @@ Source2: Release_Notes-%{version}-%{release}.tar.gz # if the platform is using systemd %define usesystemd 0 -%if %{rhel7} || %{fc22}|| %{fc25} || %{fc26} || %{fc27} || %{centos7} +%if %{rhel7} || %{rhel8} || %{fc22}|| %{fc25} || %{fc26} || %{fc27} || %{centos7} %define usesystemd 1 %endif @@ -238,7 +241,7 @@ Source2: Release_Notes-%{version}-%{release}.tar.gz %define suse 1 %endif %define rhel 0 -%if %{rhel3} || %{rhel4} || %{rhel5} || %{rhel6} || %{rhel7} || %{centos3} || %{centos4} || %{centos5} || %{centos6} || %{centos7} +%if %{rhel3} || %{rhel4} || %{rhel5} || %{rhel6} || %{rhel7} || %{rhel8} || %{centos3} || %{centos4} || %{centos5} || %{centos6} || %{centos7} %define rhel 1 %endif %define scil 0