diff --git a/README.md b/README.md index 460a1ab..e8b1d57 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-hatch_fancy_pypi_readme +Fancy PyPI READMEs with Hatch. + diff --git a/python-hatch_fancy_pypi_readme.spec b/python-hatch_fancy_pypi_readme.spec new file mode 100644 index 0000000..43af716 --- /dev/null +++ b/python-hatch_fancy_pypi_readme.spec @@ -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 +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 22.8.0-1mamba +- package created using the webbuild interface