From 9df722c3e41c0a6d947f3d14c639e20104646dec2b0f9f1a2b68fd56a6d611bc 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 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + py-espeak-ng-0.1.8.tar.gz | 3 ++ python-py-espeak-ng.changes | 23 ++++++++++++++ python-py-espeak-ng.spec | 63 +++++++++++++++++++++++++++++++++++++ 5 files changed, 113 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 py-espeak-ng-0.1.8.tar.gz create mode 100644 python-py-espeak-ng.changes create mode 100644 python-py-espeak-ng.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/py-espeak-ng-0.1.8.tar.gz b/py-espeak-ng-0.1.8.tar.gz new file mode 100644 index 0000000..febbac9 --- /dev/null +++ b/py-espeak-ng-0.1.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:749f7c802caf2d314e0091552c689325da31ded738bfdfef4c1ae0cb5ecfbddd +size 11375 diff --git a/python-py-espeak-ng.changes b/python-py-espeak-ng.changes new file mode 100644 index 0000000..43bb995 --- /dev/null +++ b/python-py-espeak-ng.changes @@ -0,0 +1,23 @@ +------------------------------------------------------------------- +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 + +- Update to 0.1.8: + * Include tests in the tarball + * Include license in the tarball + * Use apache-2.0 license + * Fix various typos + +------------------------------------------------------------------- +Tue Dec 4 12:52:11 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Mon Feb 12 17:11:58 UTC 2018 - aloisio@gmx.com + +- Initial package (0.1.1) diff --git a/python-py-espeak-ng.spec b/python-py-espeak-ng.spec new file mode 100644 index 0000000..b675b55 --- /dev/null +++ b/python-py-espeak-ng.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-py-espeak-ng +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-py-espeak-ng +Version: 0.1.8 +Release: 0 +Summary: Python interface for eSpeak NG +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 +Requires: espeak-ng +BuildArch: noarch +%python_subpackages + +%description +Python interface for eSpeak NG, a speech synthesis library. + +%prep +%setup -q -n py-espeak-ng-%{version} +# fix shebang +sed -i '/^#!\/usr\/bin\/env python/d' espeakng/__init__.py + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# Needs properly setup espeak sadly +#%%pytest + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/espeakng +%{python_sitelib}/py[-_]espeak[-_]ng-%{version}*-info + +%changelog