%{?mingw_package_header} %global pypi_name ply Name: mingw-python-%{pypi_name} Summary: MinGW Windows Python %{pypi_name} library Version: 3.11 Release: 3%{?dist} BuildArch: noarch License: BSD URL: http://www.dabeaz.com/ply/ Source0: http://www.dabeaz.com/ply/%{pypi_name}-%{version}.tar.gz BuildRequires: mingw32-filesystem >= 95 BuildRequires: mingw32-python3 BuildRequires: mingw32-python3-build BuildRequires: mingw64-filesystem >= 95 BuildRequires: mingw64-python3 BuildRequires: mingw64-python3-build %description MinGW Windows Python %{pypi_name} library. %package -n mingw32-python3-%{pypi_name} Summary: MinGW Windows Python3 %{pypi_name} library %description -n mingw32-python3-%{pypi_name} MinGW Windows Python3 %{pypi_name} library. %package -n mingw64-python3-%{pypi_name} Summary: MinGW Windows Python3 %{pypi_name} library %description -n mingw64-python3-%{pypi_name} MinGW Windows Python3 %{pypi_name} library. %prep %autosetup -p1 -n %{pypi_name}-%{version} # extract license block from beginning of README.md grep -B1000 "POSSIBILITY OF SUCH DAMAGE" README.md > LICENSE %build %mingw32_py3_build_wheel %mingw64_py3_build_wheel %install %mingw32_py3_install_wheel %mingw64_py3_install_wheel %files -n mingw32-python3-%{pypi_name} %license LICENSE %{mingw32_python3_sitearch}/%{pypi_name}/ %{mingw32_python3_sitearch}/%{pypi_name}-%{version}.dist-info/ %files -n mingw64-python3-%{pypi_name} %license LICENSE %{mingw64_python3_sitearch}/%{pypi_name}/ %{mingw64_python3_sitearch}/%{pypi_name}-%{version}.dist-info/ %changelog * Thu Jan 19 2023 Fedora Release Engineering - 3.11-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Oct 11 2022 Sandro Mani - 3.11-2 - Switch to python3-build * Thu Jul 28 2022 Sandro Mani - 3.11-1 - Update to 3.11