%{?mingw_package_header}
%global pkgname affine
Name: mingw-python-%{pkgname}
Summary: MinGW Windows Python %{pkgname}
Version: 2.3.0
Release: 3%{?dist}
BuildArch: noarch
License: BSD
URL: https://github.com/sgillies/affine
Source0: https://github.com/sgillies/affine/archive/%{version}/%{pkgname}-%{version}.tar.gz
BuildRequires: mingw32-filesystem >= 95
BuildRequires: mingw32-python3
BuildRequires: mingw32-python3-setuptools
BuildRequires: mingw64-filesystem >= 95
BuildRequires: mingw64-python3
BuildRequires: mingw64-python3-setuptools
%description
MinGW Windows Python %{pkgname}.
%package -n mingw32-python3-%{pkgname}
Summary: MinGW Windows Python3 %{pkgname}
%description -n mingw32-python3-%{pkgname}
MinGW Windows Python3 %{pkgname}.
%package -n mingw64-python3-%{pkgname}
Summary: MinGW Windows Python3 %{pkgname}
%description -n mingw64-python3-%{pkgname}
MinGW Windows Python3 %{pkgname}.
%prep
%autosetup -p1 -n %{pkgname}-%{version}
%build
%{mingw32_py3_build}
%{mingw64_py3_build}
%install
%{mingw32_py3_install}
%{mingw64_py3_install}
%files -n mingw32-python3-%{pkgname}
%license LICENSE.txt
%{mingw32_python3_sitearch}/%{pkgname}/
%{mingw32_python3_sitearch}/%{pkgname}-%{version}-py%{mingw32_python3_version}.egg-info/
%files -n mingw64-python3-%{pkgname}
%license LICENSE.txt
%{mingw64_python3_sitearch}/%{pkgname}/
%{mingw64_python3_sitearch}/%{pkgname}-%{version}-py%{mingw64_python3_version}.egg-info/
%changelog
* Sun Nov 08 2020 Sandro Mani <manisandro@gmail.com> - 2.3.0-3
- Switch to py3_build/py3_install macros
* Tue Jun 02 2020 Sandro Mani <manisandro@gmail.com> - 2.3.0-2
- Rebuild (python-3.9)
* Mon Dec 16 2019 Sandro Mani <manisandro@gmail.com> - 2.3.0-1
- Initial package