%{?mingw_package_header} %global pkgname pyproject-hooks %global pypi_name pyproject_hooks Name: mingw-python-%{pkgname} Summary: MinGW Python %{pypi_name} library Version: 1.0.0 Release: 1%{?dist} BuildArch: noarch License: MIT Url: https://pypi.python.org/pypi/%{pypi_name} Source0: %{pypi_source} BuildRequires: mingw32-filesystem >= 102 BuildRequires: mingw32-python3 BuildRequires: mingw32-python3-build BuildRequires: mingw64-filesystem >= 102 BuildRequires: mingw64-python3 BuildRequires: mingw64-python3-build %description MinGW Python %{pypi_name} library. %package -n mingw32-python3-%{pkgname} Summary: MinGW Python 3 %{pypi_name} library %description -n mingw32-python3-%{pkgname} MinGW Python 3 %{pypi_name} library. %package -n mingw64-python3-%{pkgname} Summary: MinGW Python 3 %{pypi_name} library %description -n mingw64-python3-%{pkgname} MinGW Python 3 %{pypi_name} library. %prep %autosetup -p1 -n %{pypi_name}-%{version} %build %mingw32_py3_build_wheel %mingw64_py3_build_wheel %mingw32_py3_build_host_wheel %mingw64_py3_build_host_wheel %install %mingw32_py3_install_wheel %mingw64_py3_install_wheel %mingw32_py3_install_host_wheel %mingw64_py3_install_host_wheel %files -n mingw32-python3-%{pkgname} %license LICENSE %{mingw32_python3_sitearch}/%{pypi_name}/ %{mingw32_python3_sitearch}/%{pypi_name}-%{version}.dist-info %{mingw32_python3_hostsitearch}/%{pypi_name}/ %{mingw32_python3_hostsitearch}/%{pypi_name}-%{version}.dist-info %files -n mingw64-python3-%{pkgname} %license LICENSE %{mingw64_python3_sitearch}/%{pypi_name}/ %{mingw64_python3_sitearch}/%{pypi_name}-%{version}.dist-info %{mingw64_python3_hostsitearch}/%{pypi_name}/ %{mingw64_python3_hostsitearch}/%{pypi_name}-%{version}.dist-info %changelog * Mon Jan 23 2023 Sandro Mani - 1.0.0-1 - Update to 1.0.0