From: Davide Franco Date: Sun, 28 Feb 2021 18:57:34 +0000 (+0000) Subject: rpms: Fix bacula.spec for Fedora 31 X-Git-Tag: Release-11.3.2~282 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a41a16cdcc9a66a68c7de46e423ad9fdb5c9be27;p=thirdparty%2Fbacula.git rpms: Fix bacula.spec for Fedora 31 --- diff --git a/bacula/platforms/rpms/redhat/bacula.spec.in b/bacula/platforms/rpms/redhat/bacula.spec.in index d70ee4c63..ea8095781 100644 --- a/bacula/platforms/rpms/redhat/bacula.spec.in +++ b/bacula/platforms/rpms/redhat/bacula.spec.in @@ -136,6 +136,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} @@ -215,7 +217,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 @@ -234,7 +236,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 @@ -297,7 +299,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} @@ -578,7 +580,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"