From b3d56b14790a8e560c7fe5943acc1c754c8d6223 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 2 Jun 2023 15:28:34 +0000 Subject: [PATCH] libevent: Run event_rpcgen.py with Python 3 Signed-off-by: Michael Tremer --- gnutls/gnutls.nm | 2 ++ libevent/libevent.nm | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gnutls/gnutls.nm b/gnutls/gnutls.nm index 880a356f9..5231334c2 100644 --- a/gnutls/gnutls.nm +++ b/gnutls/gnutls.nm @@ -26,6 +26,7 @@ sources = %{thisapp}.tar.xz build requires + ca-certificates gettext libgcrypt-devel libidn-devel @@ -44,6 +45,7 @@ build CFLAGS += -Wa,--noexecstack configure_options += \ + --with-default-trust-store-file="%{sysconfdir}/pki/tls/certs/ca-bundle.crt" \ --with-included-libcfg \ --disable-openssl-compatibility \ --disable-non-suiteb-curves \ diff --git a/libevent/libevent.nm b/libevent/libevent.nm index 8d5a05d88..dfa64c4cd 100644 --- a/libevent/libevent.nm +++ b/libevent/libevent.nm @@ -5,7 +5,7 @@ name = libevent version = 2.1.12 -release = 1 +release = 1.1 thisapp = %{name}-%{version}-stable groups = Development/Tools @@ -29,6 +29,12 @@ build requires openssl-devel end + + prepare_cmds + # Run event_rpcgen.py using Python 3 + sed -i event_rpcgen.py \ + -e "s@^#!.*@#!%{bindir}/python3@" + end end packages -- 2.47.3