diff --git a/python-audiogrep.changes b/python-audiogrep.changes index 3a0f9c4..4efdff1 100644 --- a/python-audiogrep.changes +++ b/python-audiogrep.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 13 16:07:15 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Wed May 27 09:36:09 UTC 2020 - Petr Gajdos diff --git a/python-audiogrep.spec b/python-audiogrep.spec index 74beff3..52698dc 100644 --- a/python-audiogrep.spec +++ b/python-audiogrep.spec @@ -1,7 +1,7 @@ # # spec file for package python-audiogrep # -# Copyright (c) 2020 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-audiogrep Version: 0.1.5 Release: 0 @@ -25,14 +24,16 @@ License: MIT Group: Development/Languages/Python URL: https://antiboredom.github.io/audiogrep Source: https://files.pythonhosted.org/packages/source/a/audiogrep/audiogrep-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: ffmpeg Requires: pocketsphinx Requires: python-pydub -Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(post): alts +Requires(postun): alts BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module pydub} @@ -47,10 +48,10 @@ based on search phrases. %setup -q -n audiogrep-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/audiogrep %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -64,6 +65,7 @@ based on search phrases. %doc README.md %license LICENSE %python_alternative %{_bindir}/audiogrep -%{python_sitelib}/* +%{python_sitelib}/audiogrep +%{python_sitelib}/audiogrep-%{version}*-info %changelog