From e357b750ec25d15e2ed80114d0434a4c4095115ab62e06ba9b2cc265a455f1a5 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 22 Feb 2024 09:26:18 +0000 Subject: [PATCH] Accepting request 1148798 from home:mcalabkova:branches:devel:languages:python - Minimal change to make it work on Python 3.12 OBS-URL: https://build.opensuse.org/request/show/1148798 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-espeak?expand=0&rev=11 --- python-espeak.changes | 5 +++++ python-espeak.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/python-espeak.changes b/python-espeak.changes index a2b5459..1e3893d 100644 --- a/python-espeak.changes +++ b/python-espeak.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 21 16:12:26 UTC 2024 - Markéta Machová + +- Minimal change to make it work on Python 3.12 + ------------------------------------------------------------------- Sat Jul 28 17:28:56 UTC 2018 - jengelh@inai.de diff --git a/python-espeak.spec b/python-espeak.spec index 5a2d4e9..da16708 100644 --- a/python-espeak.spec +++ b/python-espeak.spec @@ -1,7 +1,7 @@ # # spec file for package python-espeak # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2024 SUSE LLC # Copyright (c) 2012 Malcolm J Lewis # # All modifications and additions to the file contributed by third parties @@ -13,11 +13,11 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} +%{!?python_sitearch: %global python_sitearch %(python -c "from setuptools.sysconfig import get_python_lib; print(get_python_lib(1))")} %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-espeak Version: 0.5 @@ -28,6 +28,7 @@ Group: Development/Languages/Python URL: https://launchpad.net/python-espeak Source0: https://launchpad.net/python-espeak/trunk/0.5/+download/python-espeak-0.5.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} BuildRequires: espeak-devel BuildRequires: fdupes BuildRequires: gcc-c++ @@ -39,6 +40,7 @@ Python bindings for the eSpeak speech synthesizer. %prep %setup -q +sed -i 's/distutils.core/setuptools/' setup.py %build export CFLAGS="%{optflags}"