From 90d555b80f6869edaf33505326c0f5b5d45ad43a6933270beabc3e68e8702cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 27 May 2025 09:51:42 +0000 Subject: [PATCH 1/2] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-espeak?expand=0&rev=13 --- python-espeak.changes | 5 +++++ python-espeak.spec | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/python-espeak.changes b/python-espeak.changes index 1e3893d..c9b4f5a 100644 --- a/python-espeak.changes +++ b/python-espeak.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 27 09:51:17 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Wed Feb 21 16:12:26 UTC 2024 - Markéta Machová diff --git a/python-espeak.spec b/python-espeak.spec index da16708..1d4e4b3 100644 --- a/python-espeak.spec +++ b/python-espeak.spec @@ -1,7 +1,7 @@ # # spec file for package python-espeak # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2012 Malcolm J Lewis # # All modifications and additions to the file contributed by third parties @@ -18,7 +18,6 @@ %{!?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 Release: 0 @@ -28,7 +27,9 @@ 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 pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: espeak-devel BuildRequires: fdupes BuildRequires: gcc-c++ @@ -44,10 +45,10 @@ sed -i 's/distutils.core/setuptools/' setup.py %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %fdupes %{buildroot} %files %{python_files} From 1633886bdac02fc8a8f72850be093be6088d8a7f0ceef922a7c5ca007718b0ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 27 May 2025 09:52:14 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-espeak?expand=0&rev=14 --- python-espeak.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-espeak.spec b/python-espeak.spec index 1d4e4b3..1868f74 100644 --- a/python-espeak.spec +++ b/python-espeak.spec @@ -55,6 +55,6 @@ export CFLAGS="%{optflags}" %license COPYING %doc NEWS %{python_sitearch}/espeak/ -%{python_sitearch}/python_espeak-%{version}-py%{python_version}.egg-info +%{python_sitearch}/python_espeak-%{version}*-info %changelog