From bf308dc69461848592a26d81f630f91457bd4b71ccb6e8d5e6736b19ea3ddcca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 4 Jun 2025 08:48:19 +0000 Subject: [PATCH 1/2] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyacoustid?expand=0&rev=15 --- python-pyacoustid.changes | 5 +++++ python-pyacoustid.spec | 13 ++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-pyacoustid.changes b/python-pyacoustid.changes index ddf8036..4b965d9 100644 --- a/python-pyacoustid.changes +++ b/python-pyacoustid.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 4 08:46:21 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu Dec 14 19:37:46 UTC 2023 - Dirk Müller diff --git a/python-pyacoustid.spec b/python-pyacoustid.spec index 3a34f36..4fa9f48 100644 --- a/python-pyacoustid.spec +++ b/python-pyacoustid.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyacoustid # -# Copyright (c) 2023 SUSE LLC +# 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-pyacoustid Version: 1.3.0 Release: 0 @@ -26,8 +25,10 @@ Group: Development/Languages/Python URL: https://github.com/sampsyo/pyacoustid Source: https://files.pythonhosted.org/packages/source/p/pyacoustid/pyacoustid-%{version}.tar.gz BuildRequires: %{python_module audioread} +BuildRequires: %{python_module pip} BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-audioread @@ -47,15 +48,17 @@ in C but portable, and the Web service, which provides fingerprint lookups. %setup -q -n pyacoustid-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/acoustid.py +%{python_sitelib}/pyacoustid-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__/acoustid* %changelog From 5ccb3de1e4ae8cdc476700879e4ebd59306bc96ec6247158e54e117745e043f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 4 Jun 2025 08:50:42 +0000 Subject: [PATCH 2/2] fix files OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyacoustid?expand=0&rev=16 --- python-pyacoustid.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python-pyacoustid.spec b/python-pyacoustid.spec index 4fa9f48..d596ee1 100644 --- a/python-pyacoustid.spec +++ b/python-pyacoustid.spec @@ -58,7 +58,9 @@ in C but portable, and the Web service, which provides fingerprint lookups. %doc README.rst %license LICENSE %{python_sitelib}/acoustid.py +%{python_sitelib}/chromaprint.py %{python_sitelib}/pyacoustid-%{version}*-info %pycache_only %{python_sitelib}/__pycache__/acoustid* +%pycache_only %{python_sitelib}/__pycache__/chromaprint* %changelog