python-hatch_fancy_pypi_readme/python-hatch_fancy_pypi_readme.spec

61 lines
1.8 KiB
RPMSpec

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-hatch_fancy_pypi_readme
Version: 23.1.0
Release: 1mamba
Summary: Fancy PyPI READMEs with Hatch
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/hynek/hatch-fancy-pypi-readme
Source: https://pypi.debian.net/hatch-fancy-pypi-readme/hatch_fancy_pypi_readme-%{version}.tar.gz
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython3-devel
BuildRequires: python3.7dist(hatchling)
BuildRequires: python3.7dist(tomli)
BuildRequires: python3.7dist(typing-extensions)
## AUTOBUILDREQ-END
%description
%{summary}.
%if 0%{?with_pyver}
%pyver_package
%endif
%prep
%setup -q -n hatch_fancy_pypi_readme-%{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}/hatch-fancy-pypi-readme; do
mv %{buildroot}${f}{,-%{?pyappend}}
done
%endif
%files %{?pyappend}
%defattr(-,root,root)
%{_bindir}/hatch-fancy-pypi-readme*
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%dir %{python_sitelib}/%{pkgname}
%{python_sitelib}/%{pkgname}/*
%changelog
* Tue May 23 2023 Automatic Build System <autodist@mambasoft.it> 23.1.0-1mamba
- automatic version update by autodist
* Fri Apr 07 2023 Sdk Build System <sdk@mambasoft.it> 22.8.0-2mamba
- rebuilt with python 3.10
* Wed Dec 07 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 22.8.0-1mamba
- package created using the webbuild interface