]> 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)
committerDavide Franco <packager@dflc.ch>
Sun, 28 Feb 2021 18:06:49 +0000 (18:06 +0000)
 - do not build lzo on rhel 8 / centos 8

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

index a609d412842109bde69f67a7b3ed3089366923d8..645ab58daac75769871440f9afc7e8ee65e42fed 100644 (file)
@@ -574,11 +574,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