CentOS9 has no more trousers, so disable it for rhel >= 9.
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
+# spec file for RHEL/CentOS and Fedora
%bcond_without gnutls
# Macros needed by SELinux
BuildRequires: openssl-devel
BuildRequires: socat
BuildRequires: softhsm
+%if (0%{?fedora}) || (0%{?rhel} && 0%{?rhel} < 9)
BuildRequires: trousers >= 0.3.9
+%endif
%if %{with gnutls}
BuildRequires: gnutls >= 3.1.0
BuildRequires: gnutls-devel
+# spec file for RHEL/CentOS and Fedora
%bcond_without gnutls
# Macros needed by SELinux
BuildRequires: openssl-devel
BuildRequires: socat
BuildRequires: softhsm
+%if (0%{?fedora}) || (0%{?rhel} && 0%{?rhel} < 9)
BuildRequires: trousers >= 0.3.9
+%endif
%if %{with gnutls}
BuildRequires: gnutls >= 3.1.0
BuildRequires: gnutls-devel