56 lines
1.8 KiB
RPMSpec
56 lines
1.8 KiB
RPMSpec
%define pkgname backports.entry_points_selectable
|
|
Name: python-backports-entry_points_selectable
|
|
Version: 1.3.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: libpython311-devel
|
|
## AUTOBUILDREQ-END
|
|
|
|
%description
|
|
%{summary}.
|
|
|
|
%if 0%{?with_pyver}
|
|
%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
|
|
|
|
rm -f %{buildroot}%{python3_sitelib}/backports/__init__.py
|
|
rm -f %{buildroot}%{python3_sitelib}/backports/__pycache__/__init__.cpython-311.opt-1.pyc
|
|
rm -f %{buildroot}%{python3_sitelib}/backports/__pycache__/__init__.cpython-311.pyc
|
|
|
|
#%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/*
|
|
%{python_sitelib}/backports/entry_points_selectable.py
|
|
%{python3_sitelib}/backports/__pycache__/entry_points_selectable.cpython-*.pyc
|
|
%doc LICENSE
|
|
|
|
%changelog
|
|
* Sun Jun 23 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.0-1mamba
|
|
- package created using the webbuild interface
|