]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
rpms: Add rhel9 target to spec file
authorEric Bollengier <eric@baculasystems.com>
Tue, 21 Feb 2023 08:38:25 +0000 (09:38 +0100)
committerEric Bollengier <eric@baculasystems.com>
Tue, 2 May 2023 07:07:18 +0000 (09:07 +0200)
bacula/platforms/rpms/redhat/bacula.spec.in

index 9fa8f0130b4c21dcd3ec558290d41a6ff65ec709..64daf31c58b280804fa678198b8e97e0e9c68cb9 100644 (file)
@@ -161,6 +161,9 @@ Source2: Release_Notes-%{version}-%{release}.tar.gz
 %define rhel8 0
 %{?build_rhel8:%define rhel8 1}
 %{?build_el8:%define rhel8 1}
+%define rhel9 0
+%{?build_rhel9:%define rhel9 1}
+%{?build_el9:%define rhel9 1}
 # CentOS build
 %define centos3 0
 %{?build_centos3:%define centos3 1}
@@ -218,7 +221,7 @@ Source2: Release_Notes-%{version}-%{release}.tar.gz
 # if the platform is using systemd
 %define usesystemd 0
 
-%if %{rhel7} || %{rhel8} || %{fc22}|| %{fc25} || %{fc26} || %{fc27} || %{fc31} || %{centos7}
+%if %{rhel7} || %{rhel8} || %{rhel9} || %{fc22}|| %{fc25} || %{fc26} || %{fc27} || %{fc31} || %{centos7}
 %define usesystemd 1
 %endif
 
@@ -245,7 +248,7 @@ Source2: Release_Notes-%{version}-%{release}.tar.gz
 %define suse 1
 %endif
 %define rhel 0
-%if %{rhel3} || %{rhel4} || %{rhel5} || %{rhel6} || %{rhel7} || %{rhel8} || %{centos3} || %{centos4} || %{centos5} || %{centos6} || %{centos7}
+%if %{rhel3} || %{rhel4} || %{rhel5} || %{rhel6} || %{rhel7} || %{rhel8} || %{rhel9} || %{centos3} || %{centos4} || %{centos5} || %{centos6} || %{centos7}
 %define rhel 1
 %endif
 %define scil 0
@@ -324,7 +327,7 @@ BuildRequires: openldap-devel
 %{?build_tcpwrappers:%define tcpwrappers 1}
 
 # should we enable tcp wrappers support
-%if %{rhel8} || %{fc31}
+%if %{rhel8} || %{rhel9} || %{fc31}
 %define tcpwrappers 0
 %else
 %define tcpwrappers 1
@@ -589,7 +592,7 @@ cd ${cwd}
 %endif
 
 ## Do not build lzo on rhel8/centos8
-%if ! ( %{rhel8} ||  %{fc31})
+%if ! ( %{rhel8} || %{rhel9} ||  %{fc31})
 cd %{depkgs}
 make lzo
 export LDFLAGS="${LDFLAGS} -L${PWD}/lzo/lib"