Blame mingw-python-waitress.spec

b1bff2c
%{?mingw_package_header}
b1bff2c
b1bff2c
%global mod_name waitress
b1bff2c
%global pypi_name waitress
b1bff2c
b1bff2c
Name:          mingw-python-%{mod_name}
b1bff2c
Summary:       MinGW Windows Python %{pypi_name} library
b1bff2c
Version:       2.1.2
1bb0155
Release:       4%{?dist}
b1bff2c
BuildArch:     noarch
b1bff2c
b1bff2c
License:       ZPL-2.1
b1bff2c
URL:           https://github.com/Pylons/waitress
b1bff2c
# Remove docs folder it is released under the non-free
b1bff2c
# Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License
b1bff2c
# See CONTRIBUTORS.txt
b1bff2c
# Generate with ./waitress-tarball-nodocs.sh $version
b1bff2c
Source0:       waitress-2.1.2-nodocs.tar.xz
b1bff2c
Source1:       waitress-tarball-nodocs.sh
b1bff2c
b1bff2c
BuildRequires: mingw32-filesystem >= 95
b1bff2c
BuildRequires: mingw32-python3
b1bff2c
BuildRequires: mingw32-python3-build
b1bff2c
b1bff2c
BuildRequires: mingw64-filesystem >= 95
b1bff2c
BuildRequires: mingw64-python3
b1bff2c
BuildRequires: mingw64-python3-build
b1bff2c
b1bff2c
b1bff2c
%description
b1bff2c
MinGW Windows Python %{pypi_name} library.
b1bff2c
b1bff2c
b1bff2c
%package -n mingw32-python3-%{mod_name}
b1bff2c
Summary:       MinGW Windows Python3 %{pypi_name} library
b1bff2c
b1bff2c
%description -n mingw32-python3-%{mod_name}
b1bff2c
MinGW Windows Python3 %{pypi_name} library.
b1bff2c
b1bff2c
b1bff2c
%package -n mingw64-python3-%{mod_name}
b1bff2c
Summary:       MinGW Windows Python3 %{pypi_name} library
b1bff2c
b1bff2c
%description -n mingw64-python3-%{mod_name}
b1bff2c
MinGW Windows Python3 %{pypi_name} library.
b1bff2c
b1bff2c
b1bff2c
%prep
b1bff2c
%autosetup -p1 -n %{pypi_name}-%{version}-nodocs
b1bff2c
b1bff2c
b1bff2c
%build
b1bff2c
%mingw32_py3_build_wheel
b1bff2c
%mingw64_py3_build_wheel
b1bff2c
b1bff2c
b1bff2c
%install
b1bff2c
%mingw32_py3_install_wheel
b1bff2c
%mingw64_py3_install_wheel
b1bff2c
b1bff2c
b1bff2c
%files -n mingw32-python3-%{mod_name}
b1bff2c
%license LICENSE.txt
b1bff2c
%{mingw32_bindir}/waitress-serve
b1bff2c
%{mingw32_python3_sitearch}/%{mod_name}/
b1bff2c
%{mingw32_python3_sitearch}/%{pypi_name}-%{version}.dist-info/
b1bff2c
b1bff2c
%files -n mingw64-python3-%{mod_name}
b1bff2c
%license LICENSE.txt
b1bff2c
%{mingw64_bindir}/waitress-serve
b1bff2c
%{mingw64_python3_sitearch}/%{mod_name}/
b1bff2c
%{mingw64_python3_sitearch}/%{pypi_name}-%{version}.dist-info/
b1bff2c
b1bff2c
b1bff2c
%changelog
1bb0155
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-4
1bb0155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
1bb0155
ae3c911
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-3
ae3c911
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
ae3c911
b1bff2c
* Fri Nov 18 2022 Sandro Mani <manisandro@gmail.com> - 2.1.2-2
b1bff2c
- Use cleaned source tarball without docs
b1bff2c
b1bff2c
* Tue Nov 01 2022 Sandro Mani <manisandro@gmail.com> - 2.1.2-1
b1bff2c
- Initial package