package created using the webbuild interface [release 22.8.0-1mamba;Wed Dec 07 2022]

This commit is contained in:
Silvan Calarco 2024-01-06 11:13:24 +01:00
parent da68c0682c
commit b22250988c
2 changed files with 56 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# python-hatch_fancy_pypi_readme # python-hatch_fancy_pypi_readme
Fancy PyPI READMEs with Hatch.

View File

@ -0,0 +1,54 @@
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-hatch_fancy_pypi_readme
Version: 22.8.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
* Wed Dec 07 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 22.8.0-1mamba
- package created using the webbuild interface