%{?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}
# 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
%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
%{?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}
%endif
## Do not build lzo on rhel8/centos8
-%if !%{rhel8}
+%if ! ( %{rhel8} || %{fc31})
cd %{depkgs}
make lzo
export LDFLAGS="${LDFLAGS} -L${PWD}/lzo/lib"