%global pypi_name jpype1 Name: python-%{pypi_name} Version: 1.5.2 Release: %autorelease Summary: jpype package License: MIT URL: https://example.com Source: https://files.pythonhosted.org/packages/source/j/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: gcc BuildRequires: gcc-c++ %description jpype package %package -n %{python_wheel_pkg_prefix}-%{pypi_name}-wheel Summary: jpype wheel %description -n %{python_wheel_pkg_prefix}-%{pypi_name}-wheel jpype package wheel %prep %autosetup -p1 -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires -x test %build %pyproject_wheel %install %pyproject_install %pyproject_save_files requests _requests %files -n %{python_wheel_pkg_prefix}-%{pypi_name}-wheel -f %{pyproject_files} %changelog %autochangelog