Files
python-intervaltree/python-intervaltree.spec

73 lines
2.5 KiB
RPMSpec

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-intervaltree
Version: 3.2.1
Release: 2mamba
Summary: A mutable, self-balancing interval tree for Python 2 and 3. Queries may be by point, by range overlap, or by range envelopment
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan@openmamba.org>
URL: https://pypi.org/project/intervaltree/
Source: https://pypi.debian.net/intervaltree/intervaltree-%{version}.tar.gz
License: Apache License 2.0
BuildArch: noarch
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython314-devel
BuildRequires: python3.14dist(sortedcontainers)
## AUTOBUILDREQ-END
BuildRequires: python3 >= 0:3.14.6-2mamba
BuildRequires: python-uv-dynamic-versioning-py3
BuildRequires: python3-devel >= 3.11.5-3mamba
Requires: python-sortedcontainers
Obsoletes: python-intervaltree-py3 < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: python-intervaltree-py3 = %{?epoch:%{epoch}:}%{version}-%{release}
%description
%{summary}.
%prep
%setup -q -n intervaltree-%{version}
%build
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
#%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
%files
%defattr(-,root,root)
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%dir %{python_sitelib}/%{pkgname}
%{python_sitelib}/%{pkgname}/*
%changelog
* Wed Jul 08 2026 Automatic Build System <autodist@openmamba.org> 3.2.1-2mamba
- rebuilt by autoport with build requirements: python3>=0:3.14.6-2mamba
* Sun Jan 25 2026 Automatic Build System <autodist@openmamba.org> 3.2.1-1mamba
- automatic version update by autodist
* Mon Dec 22 2025 Automatic Build System <autodist@openmamba.org> 3.2.0-1mamba
- automatic version update by autodist
* Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 3.1.0-4mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
* Fri Apr 07 2023 Sdk Build System <sdk@mambasoft.it> 3.1.0-3mamba
- rebuilt with python 3.10
* Sun Apr 11 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.0-2mamba
- rebuilt with distdeps
* Wed Jan 20 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.0-1mamba
- package created using the webbuild interface