14
0
forked from pool/python-pydub

- Add patch fix-assertions.patch:

* Fix assetion methods.
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydub?expand=0&rev=19
This commit is contained in:
2024-02-16 03:32:20 +00:00
committed by Git OBS Bridge
parent c7d8e2e2b2
commit c54d01ba41
3 changed files with 48 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pydub
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -21,13 +21,16 @@ Version: 0.25.1
Release: 0
Summary: Audio manipulation with Python
License: MIT
Group: Development/Languages/Python
URL: https://github.com/jiaaro/pydub
Source: https://github.com/jiaaro/pydub/archive/v%{version}.tar.gz#/pydub-%{version}.tar.gz
# PATCH-FIX-OPENSUSE skip_libopenh264-7.patch gh#jiaaro/pydub#700 mcepl@suse.com
# We don't have libopenh264-7 on the plain openSUSE
Patch0: skip_libopenh264-7.patch
# PATCH-FIX-UPSTREAM gh#jiaaro/pydub#769
Patch1: fix-assertions.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: ffmpeg
BuildRequires: python-rpm-macros
@@ -46,10 +49,10 @@ A Python module to manipulate audio with a high level interface.
%autosetup -p1 -n pydub-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -58,7 +61,7 @@ export NO_OPENH264=1
%files %{python_files}
%license LICENSE
%{python_sitelib}/pydub-%{version}*-info
%{python_sitelib}/pydub-%{version}.dist-info
%{python_sitelib}/pydub
%changelog