]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
rpms: Fix bacula.spec for rhel8 / centos 8
authorDavide Franco <packager@dflc.ch>
Sun, 28 Feb 2021 18:05:08 +0000 (18:05 +0000)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:24 +0000 (09:03 +0100)
 - do not build lzo on rhel 8 / centos 8

bacula/platforms/rpms/redhat/bacula.spec.in

index 62c16ce31af37c0fa6a63b1ef28b7bed60ee4d58..d70ee4c638560bea23529c4f61f2c5680d28bf53 100644 (file)
@@ -577,11 +577,14 @@ make sqlite3
 cd ${cwd}
 %endif
 
+## Do not build lzo on rhel8/centos8
+%if !%{rhel8}
 cd %{depkgs}
 make lzo
 export LDFLAGS="${LDFLAGS} -L${PWD}/lzo/lib"
 export CPPFLAGS="${CPPFLAGS} -I${PWD}/lzo/include"
 cd ${cwd}
+%endif
 
 # hostname is the build hostname, so use XXX_HOSTNAME_XXX for Address parameter
 sed -i s/hostname/basename/ src/console/bconsole.conf.in src/dird/bacula-dir.conf.in src/qt-console/bat.conf.in