%global pypi_name jpype1 Name: python-%{pypi_name} Version: 1.5.2 Release: 2 Summary: jpype package License: MIT URL: https://pypi.org/project/%{pypi_name} Source: https://files.pythonhosted.org/packages/source/j/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildRequires: python3-devel BuildRequires: gcc BuildRequires: gcc-c++ %description %{pypi_name} package %package -n %{python_wheel_pkg_prefix}-%{pypi_name}-wheel Summary: %{pypi_name} wheel %description -n %{python_wheel_pkg_prefix}-%{pypi_name}-wheel %{pypi_name} package wheel %prep %autosetup -p1 -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files '*' --auto mkdir -p %{buildroot}%{python_wheel_dir} install -p %{_pyproject_wheeldir}/%{pypi_name}-%{version}-*.whl -t %{buildroot}%{python_wheel_dir} %files -n %{python_wheel_pkg_prefix}-%{pypi_name}-wheel -f %{pyproject_files} %{python_wheel_dir}/%{pypi_name}-%{version}-*.whl %changelog %autochangelog