forked from pool/python-pytaglib
Accepting request 1154288 from home:jaimeMF:branches:devel:languages:python
- version update to 2.1.0 * Fix #110 (broken test) in #113 * CI: update cibuildwheel; ensure Python-3.12 builds in #116 * Modernize tooling in #117 - version update to 2.0.0 * improve build_taglib.py helper script (now supports all platforms) * add taglib_version() to the taglib module * allow using File as a context manager, optionally saving on exit * new property File.is_closed * fix #94: Accept os.PathLike in constructor * File.path is now a Path object - Add upgrade_taglib_version.patch - Skip building for python 3.6 on Leap since it now uses a pyproject.toml OBS-URL: https://build.opensuse.org/request/show/1154288 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytaglib?expand=0&rev=17
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pytaglib
|
||||
#
|
||||
# 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
|
||||
@@ -17,24 +17,29 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-pytaglib
|
||||
Version: 1.5.0
|
||||
Version: 2.1.0
|
||||
Release: 0
|
||||
Summary: Metadata "tagging" library based on TagLib
|
||||
License: GPL-3.0-only OR MIT
|
||||
URL: https://github.com/supermihi/pytaglib
|
||||
Source: https://github.com/supermihi/pytaglib/archive/v%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM
|
||||
Patch1: upgrade_taglib_version.patch
|
||||
BuildRequires: %{python_module Cython}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module setuptools >= 61.0.0}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libtag-devel
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-setuptools
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -42,18 +47,20 @@ pytaglib is an audio metadata (“tag”) library for Python.
|
||||
It relies on the TagLib C++ library.
|
||||
|
||||
%prep
|
||||
%setup -q -n "pytaglib-%{version}"
|
||||
%autosetup -N -n "pytaglib-%{version}"
|
||||
%if %{pkg_vcmp libtag-devel >= 2}
|
||||
%autopatch -p1 1
|
||||
%endif
|
||||
# Remove pre-generated source
|
||||
rm -vf src/taglib.cpp
|
||||
sed -i -e "1d" src/pyprinttags.py
|
||||
|
||||
%build
|
||||
sed -i "s:\(script_name =\).*:\1 'pyprinttags':" setup.py
|
||||
export PYTAGLIB_CYTHONIZE=1
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
%python_clone -a %{buildroot}%{_bindir}/pyprinttags
|
||||
|
||||
@@ -68,11 +75,11 @@ export LANG=en_US.UTF-8
|
||||
%python_uninstall_alternative pyprinttags
|
||||
|
||||
%files %{python_files}
|
||||
%license COPYING
|
||||
%license LICENSE.txt
|
||||
%doc README.md
|
||||
%{python_sitearch}/taglib*.so
|
||||
%{python_sitearch}/pyprinttags.*
|
||||
%{python_sitearch}/pytaglib-%{version}-py%{python_version}.egg-info/
|
||||
%{python_sitearch}/pytaglib-%{version}.dist-info/
|
||||
%pycache_only %{python_sitearch}/__pycache__/pyprinttags.*
|
||||
%python_alternative %{_bindir}/pyprinttags
|
||||
|
||||
|
Reference in New Issue
Block a user