automatic version update by autodist [release 2022.1-1mamba;Tue Mar 07 2023]

This commit is contained in:
Automatic Build System 2024-01-05 16:45:02 +01:00
parent 549b0739f0
commit cba70d67db

View File

@ -1,5 +1,6 @@
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-tagpy
Version: 2018.1.1
Version: 2022.1
Release: 1mamba
Summary: Python Bindings for TagLib
Group: System/Libraries/Python
@ -12,7 +13,6 @@ Patch0: tagpy-0.94.8-aksetup_helper.patch
Patch1: python-tagpy-2018.1.1-id3-build.patch
License: MIT
## AUTOBUILDREQ-BEGIN
#python3.7dist(pytest): unidentified build requirement
BuildRequires: glibc-devel
BuildRequires: libboost-devel
BuildRequires: libgcc
@ -23,7 +23,6 @@ BuildRequires: libtag-devel
BuildRequires: python-boost-py3
BuildRequires: libboost-devel
BuildRequires: libtag-devel >= 1.9.1
Requires: python-boost-py3
%description
TagPy is a set of Python bindings for Scott Wheeler's TagLib.
@ -43,42 +42,34 @@ All these features have their own specific interfaces, but TagLib's generic tag
%prep
%setup -q -n tagpy-%{version}
%patch1 -p2
#%patch1 -p2
%build
export PYTHON_EGG_CACHE=/tmp
%{__python} ./configure.py \
--taglib-lib-dir=%{_libdir} \
--taglib-inc-dir=%{_includedir}/taglib \
--boost-lib-dir=%{_libdir} \
--boost-inc-dir=%{_includedir}/boost \
%if "%{?with_pyver}" == "3"
--boost-python-libname=boost_python37
%else
--boost-python-libname=boost_python%{?with_pyver}
%endif
%{__python} setup.py build
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
#%if "%{?with_pyver}" != "3"
## Rename any conflicting file outside of python site packages tree
#for f in %{_bindir}/pdm; do
# mv %{buildroot}${f}{,-%{?pyappend}}
#done
#%endif
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %{?pyappend} -f %{name}.filelist
%files %{?pyappend}
%defattr(-,root,root)
%dir %{python_sitearch}/tagpy-%{version}-py*.egg-info
%{python_sitearch}/tagpy-%{version}-py*.egg-info/*
%dir %{python_sitearch}/%{pkgname}-%{version}.dist-info
%{python_sitearch}/%{pkgname}-%{version}.dist-info/*
%dir %{python_sitearch}/%{pkgname}
%{python_sitearch}/%{pkgname}/*
%{python_sitearch}/_tagpy.*.so
%changelog
* Tue Mar 07 2023 Automatic Build System <autodist@mambasoft.it> 2022.1-1mamba
- automatic version update by autodist
* Wed Mar 31 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2018.1.1-1mamba
- update to 2018.1.1