[packages/python3-mutagen] - up to 1.48.1
baggins
baggins at pld-linux.org
Sat Oct 17 23:28:47 CEST 2026
commit 5b625ce6975a9c50793a88128df66edd52863feb
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Oct 17 23:28:33 2026 +0200
- up to 1.48.1
python-mutagen.spec => python3-mutagen.spec | 86 ++++-------------------------
1 file changed, 10 insertions(+), 76 deletions(-)
---
diff --git a/python-mutagen.spec b/python3-mutagen.spec
similarity index 62%
rename from python-mutagen.spec
rename to python3-mutagen.spec
index 6f26b37..501ebbf 100644
--- a/python-mutagen.spec
+++ b/python3-mutagen.spec
@@ -1,45 +1,32 @@
#
# Conditional build:
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
%bcond_without doc # Sphinx documentation
%bcond_without tests # unit tests
#
%define module mutagen
Summary: Audio metadata reader/writer for Python 2
Summary(pl.UTF-8): Moduł Pythona 2 do odczytu i zapisu metadanych dźwiękowych
-Name: python-%{module}
-# keep 1.43.x here for python2 support
-Version: 1.43.1
-Release: 3
+Name: python3-%{module}
+Version: 1.48.1
+Release: 1
License: GPL v2+
Group: Development/Languages/Python
#Source0Download: https://github.com/quodlibet/mutagen/releases
Source0: https://github.com/quodlibet/mutagen/releases/download/release-%{version}/mutagen-%{version}.tar.gz
-# Source0-md5: 90e55bbd35517c2c93859f2d922969bd
+# Source0-md5: 90d74b6da76fdf31933766e0e0d83cc5
URL: https://github.com/quodlibet/mutagen
-%if %{with python2}
-BuildRequires: python-devel >= 1:2.7
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-pytest
-%endif
-%endif
-%if %{with python3}
BuildRequires: python3-devel >= 1:3.5
BuildRequires: python3-modules >= 1:3.5
BuildRequires: python3-setuptools
%if %{with tests}
BuildRequires: python3-pytest
%endif
-%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%if %{with doc}
-BuildRequires: sphinx-pdg-2 >= 1.3
+BuildRequires: sphinx-pdg-3 >= 1.3
%endif
-Requires: python-modules >= 1:2.7
+Requires: python3-modules >= 1:3.5
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -58,11 +45,8 @@ APEv2 i FLAC.
Summary: Simple tools for reading and writing audio metadata
Summary(pl.UTF-8): Proste narzędzia do odczytu i zapisu metadanych dźwiękowych
Group: Applications/Multimedia
-%if %{with python3}
-Requires: python3-%{module} = %{version}-%{release}
-%else
Requires: %{name} = %{version}-%{release}
-%endif
+Obsoletes: python-mutagen-tools < 1.48.1
%description tools
Simple tools for reading and writting audio metadata.
@@ -70,23 +54,6 @@ Simple tools for reading and writting audio metadata.
%description tools -l pl.UTF-8
Proste narzędzia do odczytu i zapisu metadanych dźwiękowych.
-%package -n python3-%{module}
-Summary: Audio metadata reader/writer for Python 3
-Summary(pl.UTF-8): Moduł Pythona 3 do odczytu i zapisu metadanych dźwiękowych
-Group: Development/Languages/Python
-Requires: python3-modules >= 1:3.5
-
-%description -n python3-%{module}
-Mutagen is an audio metadata tag reader and writer implemented in pure
-Python. It supports reading ID3v1.1, ID3v2.2, ID3v2.3, ID3v2.4, APEv2,
-and FLAC, and writing ID3v1.1, ID3v2.4, APEv2, and FLAC.
-
-%description -n python3-%{module} -l pl.UTF-8
-Mutagen to moduł do odczytu i zapisu znaczników metadanych dźwiękowych
-zaimplementowany w czystym Pythonie. Obsługuje odczyt ID3v1.1,
-ID3v2.2, ID3v2.3, ID3v2.4, APEv2 i FLAC oraz zapis ID3v1.1, ID3v2.4,
-APEv2 i FLAC.
-
%package apidocs
Summary: API documentation for Python mutagen module
Summary(pl.UTF-8): Dokumentacja API modułu Pythona mutagen
@@ -102,56 +69,30 @@ Dokumentacja API modułu Pythona mutagen.
%setup -q -n %{module}-%{version}
%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-LC_ALL=C.UTF-8 \
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python} -m pytest tests
-%endif
-%endif
-
-%if %{with python3}
%py3_build
%if %{with tests}
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
%{__python3} -m pytest tests
%endif
-%endif
%if %{with doc}
-sphinx-build-2 -b html docs docs/_build/html
+sphinx-build-3 -b html docs docs/_build/html
%endif
%install
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
-%py_install
-
-%py_postclean
-
-%if %{with python3}
-%{__rm} $RPM_BUILD_ROOT%{_bindir}/*
-%endif
-%endif
-
-%if %{with python3}
%py3_install
-%endif
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%files
%defattr(644,root,root,755)
%doc NEWS README.rst
-%{py_sitescriptdir}/mutagen
-%{py_sitescriptdir}/mutagen-%{version}-py*.egg-info
-%endif
+%{py3_sitescriptdir}/mutagen
+%{py3_sitescriptdir}/mutagen-%{version}-py*.egg-info
%files tools
%defattr(644,root,root,755)
@@ -168,13 +109,6 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/mutagen-inspect.1*
%{_mandir}/man1/mutagen-pony.1*
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%{py3_sitescriptdir}/mutagen
-%{py3_sitescriptdir}/mutagen-%{version}-py*.egg-info
-%endif
-
%if %{with doc}
%files apidocs
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-mutagen.git/commitdiff/5b625ce6975a9c50793a88128df66edd52863feb
More information about the pld-cvs-commit
mailing list