From 932a3729aeb857fdb315426480bc052ff2585ac94c6b1f60741c2a7d285e1228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 3 Jun 2025 12:41:00 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py-espeak-ng?expand=0&rev=7 --- python-py-espeak-ng.changes | 5 +++++ python-py-espeak-ng.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-py-espeak-ng.changes b/python-py-espeak-ng.changes index 447c694..43bb995 100644 --- a/python-py-espeak-ng.changes +++ b/python-py-espeak-ng.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 3 12:39:52 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Mar 19 08:16:04 UTC 2019 - Tomáš Chvátal diff --git a/python-py-espeak-ng.spec b/python-py-espeak-ng.spec index 5f54126..b675b55 100644 --- a/python-py-espeak-ng.spec +++ b/python-py-espeak-ng.spec @@ -1,7 +1,7 @@ # # spec file for package python-py-espeak-ng # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-py-espeak-ng Version: 0.1.8 Release: 0 @@ -25,8 +24,10 @@ License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/gooofy/py-espeak-ng Source0: https://files.pythonhosted.org/packages/source/p/py-espeak-ng/py-espeak-ng-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: espeak-ng BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -43,10 +44,10 @@ Python interface for eSpeak NG, a speech synthesis library. sed -i '/^#!\/usr\/bin\/env python/d' espeakng/__init__.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -56,6 +57,7 @@ sed -i '/^#!\/usr\/bin\/env python/d' espeakng/__init__.py %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/espeakng +%{python_sitelib}/py[-_]espeak[-_]ng-%{version}*-info %changelog