python-hatch_fancy_pypi_readme/python-hatch_fancy_pypi_readme.spec

66 lines
2.0 KiB
RPMSpec
Raw Normal View History

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-hatch_fancy_pypi_readme
Version: 23.2.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: libpython311-devel
BuildRequires: python3.11dist(hatchling)
## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba
%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
* Sun Dec 31 2023 Automatic Build System <autodist@mambasoft.it> 23.2.0-1mamba
- automatic version update by autodist
* Wed Sep 27 2023 Automatic Build System <autodist@mambasoft.it> 23.1.0-2mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
* 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