forked from pool/python-audiogrep
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| a4ec2f6f0c | |||
| bc390ab0a0 | |||
| 640d15bc43 | |||
| 692e115914 |
@@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 4 15:15:00 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
|
||||||
|
|
||||||
|
- fix usage of libalternatives
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 13 16:07:15 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to pip-based build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 27 09:36:09 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
Wed May 27 09:36:09 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-audiogrep
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%bcond_without libalternatives
|
||||||
Name: python-audiogrep
|
Name: python-audiogrep
|
||||||
Version: 0.1.5
|
Version: 0.1.5
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -25,14 +25,16 @@ License: MIT
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://antiboredom.github.io/audiogrep
|
URL: https://antiboredom.github.io/audiogrep
|
||||||
Source: https://files.pythonhosted.org/packages/source/a/audiogrep/audiogrep-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/a/audiogrep/audiogrep-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: alts
|
||||||
Requires: ffmpeg
|
Requires: ffmpeg
|
||||||
Requires: pocketsphinx
|
Requires: pocketsphinx
|
||||||
Requires: python-pydub
|
Requires: python-pydub
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun): update-alternatives
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module pydub}
|
BuildRequires: %{python_module pydub}
|
||||||
@@ -47,23 +49,22 @@ based on search phrases.
|
|||||||
%setup -q -n audiogrep-%{version}
|
%setup -q -n audiogrep-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/audiogrep
|
%python_clone -a %{buildroot}%{_bindir}/audiogrep
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative audiogrep
|
# Removing old update-alternatives entries.
|
||||||
|
%python_libalternatives_reset_alternative audiogrep
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative audiogrep
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python_alternative %{_bindir}/audiogrep
|
%python_alternative %{_bindir}/audiogrep
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/audiogrep
|
||||||
|
%{python_sitelib}/audiogrep-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user