]> git.proxmox.com Git - swtpm.git/commitdiff
rpm: Update spec file to also work on CentOS9-stream
authorStefan Berger <stefanb@linux.ibm.com>
Mon, 18 Oct 2021 16:06:22 +0000 (12:06 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Mon, 18 Oct 2021 17:47:13 +0000 (13:47 -0400)
CentOS9 has no more trousers, so disable it for rhel >= 9.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
swtpm.spec
swtpm.spec.in

index 6f550329864f02625689080a02180bd3960a387f..de807d26737d337d2aeb5516c40cd248ddfff9b5 100644 (file)
@@ -1,3 +1,4 @@
+# spec file for RHEL/CentOS and Fedora
 %bcond_without gnutls
 
 # Macros needed by SELinux
@@ -24,7 +25,9 @@ BuildRequires:  net-tools
 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
index d098a8423766d0b7300d09a026b3b1f3daada933..1f6866f4386fc18c88d4faee878c81a2f128a2c5 100644 (file)
@@ -1,3 +1,4 @@
+# spec file for RHEL/CentOS and Fedora
 %bcond_without gnutls
 
 # Macros needed by SELinux
@@ -24,7 +25,9 @@ BuildRequires:  net-tools
 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