65 lines
2.0 KiB
RPMSpec
65 lines
2.0 KiB
RPMSpec
%define pkgname backports.entry_points_selectable
|
|
Name: python-backports-entry_points_selectable
|
|
Version: 1.2.0
|
|
Release: 1mamba
|
|
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}
|
|
%define py_requires_append \
|
|
Provides: python-backports%{?pyappend:-%pyappend} \
|
|
Obsoletes: python-backports%{?pyappend:-%pyappend} <= 1.0-2mamba
|
|
%pyver_package
|
|
%endif
|
|
|
|
%prep
|
|
%setup -q -n backports.entry_points_selectable-%{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 %{?pyappend}
|
|
%defattr(-,root,root)
|
|
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
|
%dir %{python_sitelib}/backports
|
|
%{python_sitelib}/backports/*
|
|
%doc LICENSE
|
|
|
|
%changelog
|
|
* Mon Mar 06 2023 Automatic Build System <autodist@mambasoft.it> 1.2.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Jan 10 2022 Automatic Build System <autodist@mambasoft.it> 1.1.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Sep 18 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.0-2mamba
|
|
- obsolete python-backports
|
|
|
|
* Tue Aug 31 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.0-1mamba
|
|
- package created using the webbuild interface
|