2024-06-24 11:11:27 +02:00
|
|
|
%define pkgname backports.entry_points_selectable
|
2024-06-24 11:11:27 +02:00
|
|
|
Name: python-backports-entry_points_selectable
|
2024-06-24 11:11:27 +02:00
|
|
|
Version: 1.2.0
|
2024-06-24 11:11:27 +02:00
|
|
|
Release: 1mamba
|
2024-06-24 11:11:27 +02:00
|
|
|
Summary: Compatibility shim providing selectable entry points for older implementations
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://github.com/jaraco/backports.entry_points_selectable
|
|
|
|
Source: https://pypi.debian.net/backports.entry-points-selectable/backports.entry_points_selectable-%{version}.tar.gz
|
|
|
|
License: MIT
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: libpython3-devel
|
|
|
|
BuildRequires: python3.7dist(importlib-metadata)
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%if 0%{?with_pyver}
|
2024-06-24 11:11:27 +02:00
|
|
|
%define py_requires_append \
|
|
|
|
Provides: python-backports%{?pyappend:-%pyappend} \
|
|
|
|
Obsoletes: python-backports%{?pyappend:-%pyappend} <= 1.0-2mamba
|
2024-06-24 11:11:27 +02:00
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n backports.entry_points_selectable-%{version}
|
|
|
|
|
|
|
|
%build
|
2024-06-24 11:11:27 +02:00
|
|
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
2024-06-24 11:11:27 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-06-24 11:11:27 +02:00
|
|
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
2024-06-24 11:11:27 +02:00
|
|
|
|
2024-06-24 11:11:27 +02: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-06-24 11:11:27 +02:00
|
|
|
|
2024-06-24 11:11:27 +02:00
|
|
|
%files %{?pyappend}
|
2024-06-24 11:11:27 +02:00
|
|
|
%defattr(-,root,root)
|
2024-06-24 11:11:27 +02:00
|
|
|
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
|
|
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
|
|
|
%dir %{python_sitelib}/backports
|
|
|
|
%{python_sitelib}/backports/*
|
2024-06-24 11:11:27 +02:00
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2024-06-24 11:11:27 +02:00
|
|
|
* Mon Mar 06 2023 Automatic Build System <autodist@mambasoft.it> 1.2.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-06-24 11:11:27 +02:00
|
|
|
* Mon Jan 10 2022 Automatic Build System <autodist@mambasoft.it> 1.1.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-06-24 11:11:27 +02:00
|
|
|
* Sat Sep 18 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.0-2mamba
|
|
|
|
- obsolete python-backports
|
|
|
|
|
2024-06-24 11:11:27 +02:00
|
|
|
* Tue Aug 31 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.0-1mamba
|
|
|
|
- package created using the webbuild interface
|