%{?mingw_package_header}
%global pkgname lxml
%global pypi_name %{pkgname}
Name: mingw-python-%{pkgname}
Summary: MinGW Windows Python %{pkgname} library
Version: 4.7.1
Release: 5%{?dist}
BuildArch: noarch
License: BSD
URL: https://lxml.de/
Source0: %{pypi_source}
# Don't attempt to link against librt
Patch0: lxml-rt.patch
BuildRequires: libxslt-devel
BuildRequires: mingw32-filesystem >= 95
BuildRequires: mingw32-gcc
BuildRequires: mingw32-libxml2
BuildRequires: mingw32-libxslt
BuildRequires: mingw32-python3
BuildRequires: mingw32-python3-Cython
BuildRequires: mingw32-python3-setuptools
BuildRequires: mingw64-filesystem >= 95
BuildRequires: mingw64-gcc
BuildRequires: mingw64-libxml2
BuildRequires: mingw64-libxslt
BuildRequires: mingw64-python3
BuildRequires: mingw64-python3-Cython
BuildRequires: mingw64-python3-setuptools
%description
MinGW Windows Python %{pkgname} library.
%package -n mingw32-python3-%{pkgname}
Summary: MinGW Windows Python3 %{pkgname} library
%description -n mingw32-python3-%{pkgname}
MinGW Windows Python3 %{pkgname} library.
%package -n mingw64-python3-%{pkgname}
Summary: MinGW Windows Python3 %{pkgname} library
%description -n mingw64-python3-%{pkgname}
MinGW Windows Python3 %{pkgname} library.
%{?mingw_debug_package}
%prep
%autosetup -p1 -n %{pypi_name}-%{version}
%build
%{mingw32_py3_build}
%{mingw64_py3_build}
%install
%{mingw32_py3_install}
%{mingw64_py3_install}
%files -n mingw32-python3-%{pkgname}
%license LICENSES.txt
%{mingw32_python3_sitearch}/%{pkgname}/
%{mingw32_python3_sitearch}/%{pypi_name}-%{version}-py%{mingw32_python3_version}.egg-info/
%files -n mingw64-python3-%{pkgname}
%license LICENSES.txt
%{mingw64_python3_sitearch}/%{pkgname}/
%{mingw64_python3_sitearch}/%{pypi_name}-%{version}-py%{mingw64_python3_version}.egg-info/
%changelog
* Thu Mar 17 2022 Sandro Mani <manisandro@gmail.com> - 4.7.1-5
- Rebuild
* Thu Feb 10 2022 Sandro Mani <manisandro@gmail.com> - 4.7.1-4
- Rebuild for new python dependency generator (take two)
* Thu Feb 10 2022 Sandro Mani <manisandro@gmail.com> - 4.7.1-3
- Rebuild for new python dependency generator
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Sat Dec 18 2021 Sandro Mani <manisandro@gmail.com> - 4.7.1-1
- Update to 4.7.1
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Jun 11 2021 Sandro Mani <manisandro@gmail.com> - 4.6.3-2
- Rebuild (python-3.10)
* Wed May 26 2021 Sandro Mani <manisandro@gmail.com> - 4.6.3-1
- Update to 4.6.3
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Thu Dec 03 2020 Sandro Mani <manisandro@gmail.com> - 4.6.2-1
- Update to 4.6.2
* Tue Sep 22 2020 Sandro Mani <manisandro@gmail.com> - 4.5.1-1
- Update to 4.5.1
- Exclude debug files in main package
* Tue Jun 02 2020 Sandro Mani <manisandro@gmail.com> - 4.4.1-2
- Rebuild (python-3.9)
* Wed Nov 20 2019 Sandro Mani <manisandro@gmail.com> - 4.4.1-1
- Update to 4.4.1