]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
rpms: Fix bacula.spec for Fedora 31
authorDavide Franco <packager@dflc.ch>
Sun, 28 Feb 2021 18:57:34 +0000 (18:57 +0000)
committerDavide Franco <packager@dflc.ch>
Sun, 28 Feb 2021 18:57:34 +0000 (18:57 +0000)
bacula/platforms/rpms/redhat/bacula.spec.in

index 645ab58daac75769871440f9afc7e8ee65e42fed..4ec5c366625c30ce52904d03c1cad4f268efddd0 100644 (file)
@@ -135,6 +135,8 @@ Source2: Release_Notes-%{version}-%{release}.tar.gz
 %{?build_fc26:%define fc26 1}
 %define fc27 0
 %{?build_fc27:%define fc27 1}
+%define fc31 0
+%{?build_fc31:%define fc31 1}
 # RedHat Enterprise builds
 %define rhel3 0
 %{?build_rhel3:%define rhel3 1}
@@ -214,7 +216,7 @@ Source2: Release_Notes-%{version}-%{release}.tar.gz
 # if the platform is using systemd
 %define usesystemd 0
 
-%if %{rhel7} || %{rhel8} || %{fc22}|| %{fc25} || %{fc26} || %{fc27} || %{centos7}
+%if %{rhel7} || %{rhel8} || %{fc22}|| %{fc25} || %{fc26} || %{fc27} || %{fc31} || %{centos7}
 %define usesystemd 1
 %endif
 
@@ -233,7 +235,7 @@ Source2: Release_Notes-%{version}-%{release}.tar.gz
 %define rhat 1
 %endif
 %define fed 0
-%if %{fc16} || %{fc17} || %{fc18} || %{fc22} || %{fc25} || %{fc26} || %{fc27}
+%if %{fc16} || %{fc17} || %{fc18} || %{fc22} || %{fc25} || %{fc26} || %{fc27} || %{fc31}
 %define fed 1
 %endif
 %define suse 0
@@ -296,7 +298,7 @@ exit 1
 %{?build_x86_64:%define x86_64 1}
 
 # check what distribution we are
-%if %{fc16} || %{fc17} || %{fc18} || %{fc22} || %{fc25} || %{fc26} || %{fc27}
+%if %{fc16} || %{fc17} || %{fc18} || %{fc22} || %{fc25} || %{fc26} || %{fc27} || %{fc31}
 %define _dist %(grep Fedora /etc/redhat-release)
 %endif
 %if %{centos7} || %{centos6}
@@ -575,7 +577,7 @@ cd ${cwd}
 %endif
 
 ## Do not build lzo on rhel8/centos8
-%if !%{rhel8}
+%if ! ( %{rhel8} ||  %{fc31})
 cd %{depkgs}
 make lzo
 export LDFLAGS="${LDFLAGS} -L${PWD}/lzo/lib"