2024-01-05 16:39:59 +01:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
2024-01-05 16:39:59 +01:00
|
|
|
Name: python-singledispatch
|
2024-01-05 16:39:59 +01:00
|
|
|
Version: 4.1.0
|
2024-01-05 16:39:59 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 16:39:59 +01:00
|
|
|
Summary: This library brings functools.singledispatch from Python 3.4 to Python 2.6
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-05 16:39:59 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 16:39:59 +01:00
|
|
|
URL: https://pypi.org/project/singledispatch/
|
2024-01-05 16:39:59 +01:00
|
|
|
Source: https://pypi.debian.net/singledispatch/singledispatch-%{version}.tar.gz
|
2024-01-05 16:39:59 +01:00
|
|
|
License: MIT
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-05 16:39:59 +01:00
|
|
|
BuildRequires: libpython3-devel
|
2024-01-05 16:39:59 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
2024-01-05 16:39:59 +01:00
|
|
|
%if 0%{?with_pyver}
|
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
2024-01-05 16:39:59 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n singledispatch-%{version}
|
|
|
|
|
|
|
|
%build
|
2024-01-05 16:39:59 +01:00
|
|
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
2024-01-05 16:39:59 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 16:39:59 +01:00
|
|
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
2024-01-05 16:39:59 +01:00
|
|
|
|
2024-01-05 16:39:59 +01:00
|
|
|
#%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
|
2024-01-05 16:39:59 +01:00
|
|
|
|
2024-01-05 16:39:59 +01:00
|
|
|
%files %{?pyappend}
|
2024-01-05 16:39:59 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-05 16:39:59 +01:00
|
|
|
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
|
|
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
|
|
|
%dir %{python_sitelib}/%{pkgname}
|
|
|
|
%{python_sitelib}/%{pkgname}/*
|
|
|
|
#%doc README.rst
|
2024-01-05 16:39:59 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 16:39:59 +01:00
|
|
|
* Mon Aug 28 2023 Automatic Build System <autodist@mambasoft.it> 4.1.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:39:59 +01:00
|
|
|
* Mon Mar 06 2023 Automatic Build System <autodist@mambasoft.it> 4.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:39:59 +01:00
|
|
|
* Sat Aug 14 2021 Automatic Build System <autodist@mambasoft.it> 3.7.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:39:59 +01:00
|
|
|
* Mon May 31 2021 Automatic Build System <autodist@mambasoft.it> 3.6.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:39:59 +01:00
|
|
|
* Thu Mar 18 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.6.1-2mamba
|
|
|
|
- rebuilt with python3
|
|
|
|
|
|
|
|
* Fri Feb 26 2021 Automatic Build System <autodist@mambasoft.it> 3.6.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Feb 21 2021 Automatic Build System <autodist@mambasoft.it> 3.6.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:39:59 +01:00
|
|
|
* Sat Aug 10 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.0.3-2mamba
|
|
|
|
- require python-six
|
|
|
|
|
2024-01-05 16:39:59 +01:00
|
|
|
* Sat Jan 23 2016 Davide Madrisan <davide.madrisan@gmail.com> 3.4.0.3-1mamba
|
|
|
|
- package created using the webbuild interface
|