Blob Blame History Raw
# This package is required by python-build to build wheels.
# To bootstrap, we copy the files to appropriate locations manually and create a minimal dist-info metadata.
# Note that as a pure Python package, the wheel contains no pre-built binary stuff.
%bcond_with     bootstrap


%global pypi_name installer

Name:          mingw-python-%{pypi_name}
Summary:       MinGW Windows Python %{pypi_name} library
Version:       0.7.0
Release:       1%{?dist}
BuildArch:     noarch

License:       MIT
URL: {pypi_name}
Source0:       %{pypi_source %{pypi_name} %{version}}

BuildRequires: mingw32-filesystem >= 95
BuildRequires: mingw32-python3
%if %{without bootstrap}
BuildRequires:  mingw32-python3-build

BuildRequires: mingw64-filesystem >= 95
BuildRequires: mingw64-python3
%if %{without bootstrap}
BuildRequires:  mingw64-python3-build

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.

%autosetup -p1 -n %{pypi_name}-%{version}

%if %{with bootstrap}
%global distinfo %{pypi_name}-%{version}+rpmbootstrap.dist-info
mkdir %{distinfo}
cat > %{distinfo}/METADATA << EOF
Metadata-Version: 2.2
Name: %{pypi_name}
Version: 0.7.0
%global distinfo %{pypi_name}-%{version}.dist-info

%if %{with bootstrap}
mkdir -p %{buildroot}%{mingw32_python3_sitearch}
mkdir -p %{buildroot}%{mingw64_python3_sitearch}
cp -a src/installer %{distinfo} %{buildroot}%{mingw32_python3_sitearch}/
cp -a src/installer %{distinfo} %{buildroot}%{mingw64_python3_sitearch}/
mkdir -p %{buildroot}%{mingw32_python3_hostsitearch}
mkdir -p %{buildroot}%{mingw64_python3_hostsitearch}
cp -a src/installer %{distinfo} %{buildroot}%{mingw32_python3_hostsitearch}/
cp -a src/installer %{distinfo} %{buildroot}%{mingw64_python3_hostsitearch}/

%files -n mingw32-python3-%{pypi_name}
%license LICENSE

%files -n mingw64-python3-%{pypi_name}
%license LICENSE

* Wed May 03 2023 Sandro Mani <> - 0.7.0-1
- Update to 0.7.0

* Thu Jan 19 2023 Fedora Release Engineering <> - 0.5.1-3
- Rebuilt for

* Mon Oct 31 2022 Sandro Mani <> - 0.5.1-2
- Full build

* Tue Oct 18 2022 Sandro Mani <> - 0.5.1-1
- Initial build