2024-01-05 16:45:02 +01:00
|
|
|
Name: python-tagpy
|
2024-01-05 16:45:02 +01:00
|
|
|
Version: 2018.1.1
|
|
|
|
Release: 1mamba
|
2024-01-05 16:45:02 +01:00
|
|
|
Summary: Python Bindings for TagLib
|
|
|
|
Group: System/Libraries/Python
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-05 16:45:02 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://mathema.tician.de/software/tagpy/
|
|
|
|
Source: https://pypi.debian.net/tagpy/tagpy-%{version}.tar.gz
|
2024-01-05 16:45:02 +01:00
|
|
|
Patch0: tagpy-0.94.8-aksetup_helper.patch
|
2024-01-05 16:45:02 +01:00
|
|
|
Patch1: python-tagpy-2018.1.1-id3-build.patch
|
2024-01-05 16:45:02 +01:00
|
|
|
License: MIT
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-05 16:45:02 +01:00
|
|
|
#python3.7dist(pytest): unidentified build requirement
|
2024-01-05 16:45:02 +01:00
|
|
|
BuildRequires: glibc-devel
|
2024-01-05 16:45:02 +01:00
|
|
|
BuildRequires: libboost-devel
|
2024-01-05 16:45:02 +01:00
|
|
|
BuildRequires: libgcc
|
2024-01-05 16:45:02 +01:00
|
|
|
BuildRequires: libpython3-devel
|
2024-01-05 16:45:02 +01:00
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
BuildRequires: libtag-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 16:45:02 +01:00
|
|
|
BuildRequires: python-boost-py3
|
|
|
|
BuildRequires: libboost-devel
|
2024-01-05 16:45:02 +01:00
|
|
|
BuildRequires: libtag-devel >= 1.9.1
|
2024-01-05 16:45:02 +01:00
|
|
|
Requires: python-boost-py3
|
2024-01-05 16:45:02 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
TagPy is a set of Python bindings for Scott Wheeler's TagLib.
|
|
|
|
It builds upon Boost.Python, a wrapper generation library which is part of the renowned Boost set of C++ libraries.
|
|
|
|
|
|
|
|
Just like TagLib, TagPy can:
|
|
|
|
|
|
|
|
* read and write ID3 tags of version 1 and 2, with many supported frame types for version 2 (in MPEG Layer 2 and MPEG Layer 3, FLAC and MPC),
|
|
|
|
* access Xiph Comments in Ogg Vorbis Files and Ogg Flac Files,
|
|
|
|
* access APE tags in Musepack and MP3 files.
|
|
|
|
|
|
|
|
All these features have their own specific interfaces, but TagLib's generic tag reading and writing mechanism is also supported. It comes with a bunch of examples.
|
|
|
|
|
2024-01-05 16:45:02 +01:00
|
|
|
%if 0%{?with_pyver}
|
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
2024-01-05 16:45:02 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n tagpy-%{version}
|
2024-01-05 16:45:02 +01:00
|
|
|
%patch1 -p2
|
2024-01-05 16:45:02 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
export PYTHON_EGG_CACHE=/tmp
|
2024-01-05 16:45:02 +01:00
|
|
|
%{__python} ./configure.py \
|
2024-01-05 16:45:02 +01:00
|
|
|
--taglib-lib-dir=%{_libdir} \
|
|
|
|
--taglib-inc-dir=%{_includedir}/taglib \
|
|
|
|
--boost-lib-dir=%{_libdir} \
|
|
|
|
--boost-inc-dir=%{_includedir}/boost \
|
2024-01-05 16:45:02 +01:00
|
|
|
%if "%{?with_pyver}" == "3"
|
|
|
|
--boost-python-libname=boost_python37
|
|
|
|
%else
|
|
|
|
--boost-python-libname=boost_python%{?with_pyver}
|
|
|
|
%endif
|
2024-01-05 16:45:02 +01:00
|
|
|
|
|
|
|
%{__python} setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%{__python} setup.py install \
|
|
|
|
--root="%{buildroot}" \
|
|
|
|
--install-headers=%{_includedir}/python \
|
2024-01-05 16:45:02 +01:00
|
|
|
--install-lib=%{python_sitearch} \
|
|
|
|
--record=%{name}.filelist
|
|
|
|
|
|
|
|
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
2024-01-05 16:45:02 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 16:45:02 +01:00
|
|
|
%files %{?pyappend} -f %{name}.filelist
|
2024-01-05 16:45:02 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{python_sitearch}/tagpy-%{version}-py*.egg-info
|
2024-01-05 16:45:02 +01:00
|
|
|
%{python_sitearch}/tagpy-%{version}-py*.egg-info/*
|
2024-01-05 16:45:02 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 16:45:02 +01:00
|
|
|
* Wed Mar 31 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2018.1.1-1mamba
|
|
|
|
- update to 2018.1.1
|
|
|
|
|
2024-01-05 16:45:02 +01:00
|
|
|
* Tue Dec 29 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2013.1-3mamba
|
|
|
|
- mass rebuild with libtag 1.9.1
|
|
|
|
|
2024-01-05 16:45:02 +01:00
|
|
|
* Mon Dec 30 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2013.1-2mamba
|
|
|
|
- rebuilt with python 2.7
|
|
|
|
|
|
|
|
* Mon Jan 07 2013 Automatic Build System <autodist@mambasoft.it> 2013.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Mar 06 2011 Tiziana Ferro <tiziana.ferro@email.it> 0.94.8-1mamba
|
|
|
|
- update to 0.94.8
|
|
|
|
|
|
|
|
* Wed Dec 15 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.94.7-2mamba
|
|
|
|
- rebuilt with libboost 1.45.0
|
|
|
|
|
|
|
|
* Mon Jun 14 2010 Automatic Build System <autodist@mambasoft.it> 0.94.7-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Mon Jun 08 2009 Automatic Build System <autodist@mambasoft.it> 0.94.5-2mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Mon Aug 18 2008 gil <puntogil@libero.it> 0.94.5-1mamba
|
|
|
|
- buildrequires: file /usr/lib/libboost_python-mt.so is not owned by any package
|