Blame mingw-python-flit-core.spec

93b8eb4
%{?mingw_package_header}
93b8eb4
93b8eb4
%global pkgname flit-core
93b8eb4
%global pypi_name flit_core
93b8eb4
93b8eb4
Name:           mingw-python-%{pkgname}
93b8eb4
Summary:        MinGW Python %{pypi_name} library
f154854
Version:        3.9.0
0d5130d
Release:        2%{?dist}
93b8eb4
BuildArch:      noarch
93b8eb4
93b8eb4
License:        BSD-2-Clause
93b8eb4
Url:            https://pypi.python.org/pypi/%{pypi_name}
93b8eb4
Source0:        %{pypi_source}
93b8eb4
93b8eb4
93b8eb4
BuildRequires:  mingw32-filesystem >= 102
93b8eb4
BuildRequires:  mingw32-python3
93b8eb4
93b8eb4
BuildRequires:  mingw64-filesystem >= 102
93b8eb4
BuildRequires:  mingw64-python3
93b8eb4
93b8eb4
93b8eb4
%description
93b8eb4
MinGW Python %{pypi_name} library.
93b8eb4
93b8eb4
93b8eb4
%package -n mingw32-python3-%{pkgname}
93b8eb4
Summary:       MinGW Python 3 %{pypi_name} library
93b8eb4
93b8eb4
%description -n mingw32-python3-%{pkgname}
93b8eb4
MinGW Python 3 %{pypi_name} library.
93b8eb4
93b8eb4
93b8eb4
%package -n mingw64-python3-%{pkgname}
93b8eb4
Summary:       MinGW Python 3 %{pypi_name} library
93b8eb4
93b8eb4
%description -n mingw64-python3-%{pkgname}
93b8eb4
MinGW Python 3 %{pypi_name} library.
93b8eb4
93b8eb4
93b8eb4
%prep
93b8eb4
%autosetup -p1 -n %{pypi_name}-%{version}
93b8eb4
93b8eb4
93b8eb4
%build
93b8eb4
# See https://flit.pypa.io/en/stable/bootstrap.html
93b8eb4
# It is a pure python module, one wheel is sufficient for all
93b8eb4
# %%mingw32_python3_version is the same as %%mingw64_python3_version
93b8eb4
/usr/bin/python%{mingw32_python3_version} -m flit_core.wheel
93b8eb4
93b8eb4
93b8eb4
%install
93b8eb4
mkdir -p %{buildroot}%{mingw32_python3_sitearch}
93b8eb4
mkdir -p %{buildroot}%{mingw32_python3_hostsitearch}
93b8eb4
mkdir -p %{buildroot}%{mingw64_python3_sitearch}
93b8eb4
mkdir -p %{buildroot}%{mingw64_python3_hostsitearch}
93b8eb4
93b8eb4
%mingw32_python3 bootstrap_install.py --installdir %{buildroot}%{mingw32_python3_sitearch} dist/flit_core-*.whl
93b8eb4
%mingw32_python3_host bootstrap_install.py --installdir %{buildroot}%{mingw32_python3_hostsitearch} dist/flit_core-*.whl
93b8eb4
%mingw64_python3 bootstrap_install.py --installdir %{buildroot}%{mingw64_python3_sitearch} dist/flit_core-*.whl
93b8eb4
%mingw64_python3_host bootstrap_install.py --installdir %{buildroot}%{mingw64_python3_hostsitearch} dist/flit_core-*.whl
93b8eb4
93b8eb4
93b8eb4
%files -n mingw32-python3-%{pkgname}
93b8eb4
%{mingw32_python3_sitearch}/%{pypi_name}/
93b8eb4
%{mingw32_python3_sitearch}/%{pypi_name}-%{version}.dist-info/
93b8eb4
%{mingw32_python3_hostsitearch}/%{pypi_name}/
93b8eb4
%{mingw32_python3_hostsitearch}/%{pypi_name}-%{version}.dist-info/
93b8eb4
93b8eb4
%files -n mingw64-python3-%{pkgname}
93b8eb4
%{mingw64_python3_sitearch}/%{pypi_name}/
93b8eb4
%{mingw64_python3_sitearch}/%{pypi_name}-%{version}.dist-info/
93b8eb4
%{mingw64_python3_hostsitearch}/%{pypi_name}/
93b8eb4
%{mingw64_python3_hostsitearch}/%{pypi_name}-%{version}.dist-info/
93b8eb4
93b8eb4
93b8eb4
%changelog
0d5130d
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.0-2
0d5130d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
0d5130d
f154854
* Thu Jun 15 2023 Sandro Mani <manisandro@gmail.com> - 3.9.0-1
f154854
- Update to 3.9.0
f154854
ae30fb4
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.0-2
ae30fb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
ae30fb4
753aeae
* Fri Nov 25 2022 Sandro Mani <manisandro@gmail.com> - 3.8.0-1
753aeae
- Update to 3.8.0
753aeae
93b8eb4
* Wed Oct 19 2022 Sandro Mani <manisandro@gmail.com> - 3.7.1-2
93b8eb4
- Use flit bootstrapping logic
93b8eb4
93b8eb4
* Thu Oct 13 2022 Sandro Mani <manisandro@gmail.com> - 3.7.1-1
93b8eb4
- Initial package