Blame mingw-python-requests.spec

c465e22
%{?mingw_package_header}
c465e22
a8fcd3a
%global pypi_name requests
c465e22
a8fcd3a
Name:          mingw-python-%{pypi_name}
a8fcd3a
Summary:       MinGW Windows Python %{pypi_name} library
3bd3084
Version:       2.31.0
88d9a60
Release:       4%{?dist}
c465e22
BuildArch:     noarch
c465e22
f51a4a4
License:       Apache-2.0
c465e22
URL:           https://requests.readthedocs.io/
4109664
Source0:       %{pypi_source}
c465e22
c465e22
BuildRequires: mingw32-filesystem >= 95
c465e22
BuildRequires: mingw32-python3
a8fcd3a
BuildRequires: mingw32-python3-build
c465e22
c465e22
BuildRequires: mingw64-filesystem >= 95
c465e22
BuildRequires: mingw64-python3
a8fcd3a
BuildRequires: mingw64-python3-build
c465e22
c465e22
c465e22
%description
a8fcd3a
MinGW Windows Python %{pypi_name}.
c465e22
c465e22
a8fcd3a
%package -n mingw32-python3-%{pypi_name}
a8fcd3a
Summary:       MinGW Windows Python3 %{pypi_name}
c465e22
Requires:      mingw32-python3-certifi
c465e22
a8fcd3a
%description -n mingw32-python3-%{pypi_name}
a8fcd3a
MinGW Windows Python3 %{pypi_name}.
c465e22
c465e22
a8fcd3a
%package -n mingw64-python3-%{pypi_name}
a8fcd3a
Summary:       MinGW Windows Python3 %{pypi_name}
c465e22
Requires:      mingw64-python3-certifi
c465e22
a8fcd3a
%description -n mingw64-python3-%{pypi_name}
a8fcd3a
MinGW Windows Python3 %{pypi_name}.
c465e22
c465e22
c465e22
%prep
4109664
%autosetup -p1 -n %{pypi_name}-%{version}
c465e22
c465e22
# Strip env shebang in nonexecutable file
c465e22
sed -i '/#!\/usr\/.*python/d' requests/certs.py
c465e22
c465e22
c465e22
%build
a8fcd3a
%mingw32_py3_build_wheel
a8fcd3a
%mingw64_py3_build_wheel
c465e22
c465e22
c465e22
%install
a8fcd3a
%mingw32_py3_install_wheel
a8fcd3a
%mingw64_py3_install_wheel
c465e22
c465e22
a8fcd3a
%files -n mingw32-python3-%{pypi_name}
c465e22
%license LICENSE
a8fcd3a
%{mingw32_python3_sitearch}/%{pypi_name}/
a8fcd3a
%{mingw32_python3_sitearch}/%{pypi_name}-%{version}.dist-info/
c465e22
a8fcd3a
%files -n mingw64-python3-%{pypi_name}
c465e22
%license LICENSE
a8fcd3a
%{mingw64_python3_sitearch}/%{pypi_name}/
a8fcd3a
%{mingw64_python3_sitearch}/%{pypi_name}-%{version}.dist-info/
c465e22
c465e22
c465e22
%changelog
88d9a60
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.31.0-4
88d9a60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
88d9a60
aa13d19
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.31.0-3
aa13d19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
aa13d19
b9a5002
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.31.0-2
b9a5002
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
b9a5002
3bd3084
* Thu May 25 2023 Sandro Mani <manisandro@gmail.com> - 2.31.0-1
3bd3084
- Update to 2.31.0
3bd3084
ed59454
* Thu Feb 02 2023 Sandro Mani <manisandro@gmail.com> - 2.28.2-1
ed59454
- Update to 2.28.2
ed59454
e6d3c5b
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.28.1-4
e6d3c5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
e6d3c5b
a8fcd3a
* Thu Oct 13 2022 Sandro Mani <manisandro@gmail.com> - 2.28.1-3
a8fcd3a
- Switch to python3-build
a8fcd3a
6b031c2
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.28.1-2
6b031c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
6b031c2
bed51fd
* Wed Jul 20 2022 Sandro Mani <manisandro@gmail.com> - 2.28.1-1
bed51fd
- Update to 2.28.1
bed51fd
b1c4abc
* Tue Jun 28 2022 Sandro Mani <manisandro@gmail.com> - 2.27.1-5
b1c4abc
- Allow charset normalizer >=2 and <3
b1c4abc
875e23f
* Thu Feb 10 2022 Sandro Mani <manisandro@gmail.com> - 2.27.1-4
875e23f
- Rebuild for new python dependency generator (take two)
875e23f
f4f2264
* Thu Feb 10 2022 Sandro Mani <manisandro@gmail.com> - 2.27.1-3
f4f2264
- Rebuild for new python dependency generator
f4f2264
efe43a2
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.27.1-2
efe43a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
efe43a2
64bd6a4
* Wed Jan 05 2022 Sandro Mani <manisandro@gmail.com> - 2.27.1-1
64bd6a4
- Update to 2.27.1
64bd6a4
a1254da
* Fri Jul 30 2021 Sandro Mani <manisandro@gmail.com> - 2.26.0-1
a1254da
- Update to 2.26.0
a1254da
49e7112
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.25.1-3
49e7112
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
49e7112
c203f41
* Fri Jun 11 2021 Sandro Mani <manisandro@gmail.com> - 2.25.1-2
c203f41
- Rebuild (python-3.10)
c203f41
d17510a
* Wed Feb 03 2021 Sandro Mani <manisandro@gmail.com> - 2.25.1-1
d17510a
- Update to 2.25.1
d17510a
78ac3cc
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.25.0-2
78ac3cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
78ac3cc
4109664
* Fri Nov 27 2020 Sandro Mani <manisandro@gmail.com> - 2.25.0-1
4109664
- Update to 2.25.0
4109664
308075e
* Sun Nov 08 2020 Sandro Mani <manisandro@gmail.com> - 2.24.0-3
308075e
- Switch to py3_build/py3_install macros
308075e
fc8cf7e
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.24.0-2
fc8cf7e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
fc8cf7e
fc141b6
* Thu Jul 23 2020 Sandro Mani <manisandro@gmail.com> - 2.24.0-1
fc141b6
- Update to 2.24.0
fc141b6
c465e22
* Thu Jun 25 2020 Sandro Mani <manisandro@gmail.com> - 2.23.0-3
c465e22
- Be more specific in %%files
c465e22
- Fix license
c465e22
- Strip env shebang in nonexecutable file
c465e22
c465e22
* Tue Jun 02 2020 Sandro Mani <manisandro@gmail.com> - 2.23.0-2
c465e22
- Rebuild (python-3.9)
c465e22
c465e22
* Fri May 22 2020 Sandro Mani <manisandro@gmail.com> - 2.23.0-1
c465e22
- Update to 2.23.0
c465e22
c465e22
* Fri Dec 06 2019 Sandro Mani <manisandro@gmail.com> - 2.22.0-1
c465e22
- Initial package