]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
rpms: Update bacula.spec for rhel8
authorDavide Franco <packager@dflc.ch>
Sun, 28 Feb 2021 18:02:27 +0000 (18:02 +0000)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:24 +0000 (09:03 +0100)
bacula/platforms/rpms/redhat/bacula.spec.in

index 85e314eabc0fc8ed73e35ccd9fdaebedd385e597..62c16ce31af37c0fa6a63b1ef28b7bed60ee4d58 100644 (file)
@@ -155,6 +155,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}
@@ -212,7 +215,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
 
@@ -239,7 +242,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