%global pypi_name hatch_fancy_pypi_readme Name: python-%{pypi_name} Version: 23.1.0 Release: 1%{?dist} Summary: Fancy PyPI READMEs with Hatch # Check if the automatically generated License and its spelling is correct for Fedora # https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/ License: MIT URL: https://github.com/hynek/hatch-fancy-pypi-readme/ Source: https://files.pythonhosted.org/packages/source/h/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-pip BuildRequires: python%{python3_pkgversion}-hatchling BuildRequires: python%{python3_pkgversion}-tomli %description %{summary} %package -n python%{python3_pkgversion}-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} Requires: python%{python3_pkgversion}-hatchling Requires: python%{python3_pkgversion}-tomli %description -n python%{python3_pkgversion}-%{pypi_name} %{summary} %prep set -ex %autosetup -n %{pypi_name}-%{version} %build set -ex %pyproject_wheel %install set -ex %pyproject_install %files -n python%{python3_pkgversion}-%{pypi_name} %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}.dist-info/ %{_bindir}/hatch-fancy-pypi-readme %changelog * Wed Jul 26 2023 Odilon Sousa - 23.1.0-1 - Initial package.