From 6c794a95956dee4b4afa57321d3eeac754604844 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Sat, 27 Jan 2024 23:11:45 -0500 Subject: [PATCH] Fix build with Python 3.12 The configure script uses distutils to determine various locations. While that has been removed from the standard library, setuptools provides a compatibility layer. --- volume_key.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/volume_key.spec b/volume_key.spec index 3eb0d94..e6eee80 100644 --- a/volume_key.spec +++ b/volume_key.spec @@ -48,7 +48,8 @@ BuildRequires: autoconf, automake, libtool BuildRequires: make BuildRequires: gcc BuildRequires: cryptsetup-devel, gettext-devel, glib2-devel, /usr/bin/gpg2 -BuildRequires: gpgme-devel, libblkid-devel, nss-devel, python3-devel +BuildRequires: gpgme-devel, libblkid-devel, nss-devel +BuildRequires: python3-devel, python3-setuptools %if 0%{?drop_python2} < 1 BuildRequires: python2-devel %endif