Blame SPECS/python-pyqt5-sip.spec

8b976d
%global pkg_name pyqt5-sip
8b976d
%global pypi_name PyQt5_sip
8b976d
%global _sip_api_major 12
8b976d
%global _sip_api_minor 9
8b976d
%global _sip_api %{_sip_api_major}.%{_sip_api_minor}
8b976d
8b976d
Name:           python-%{pkg_name}
8b976d
Version:        12.9.1
8b976d
Release:        1%{?dist}
8b976d
Summary:        The sip module support for PyQt5
8b976d
8b976d
License:        GPLv2 or GPLv3
8b976d
URL:            https://www.riverbankcomputing.com/software/sip/
8b976d
Source0:        %{pypi_source}
8b976d
Patch0:         python3.11.patch
8b976d
8b976d
BuildRequires:  gcc
8b976d
BuildRequires:  python3-devel
8b976d
BuildRequires:  %{py3_dist setuptools} >= 30.3
8b976d
BuildRequires:  %{py3_dist wheel}
8b976d
8b976d
%global _description %{expand:
8b976d
The sip extension module provides support for the PyQt5 package.
8b976d
}
8b976d
8b976d
%description %_description
8b976d
8b976d
%package -n     python3-%{pkg_name}
8b976d
Summary:        %{summary}
8b976d
%{?python_provide:%python_provide python3-%{pkg_name}}
8b976d
Provides: python3-pyqt5-sip-api(%{_sip_api_major}) = %{_sip_api}
8b976d
Provides: python3-pyqt5-sip-api(%{_sip_api_major})%{?_isa} = %{_sip_api}
8b976d
8b976d
%description -n python3-%{pkg_name} %_description
8b976d
8b976d
%prep
8b976d
%autosetup -n %{pypi_name}-%{version}
8b976d
8b976d
%build
8b976d
%py3_build
8b976d
8b976d
%install
8b976d
%py3_install
8b976d
8b976d
%files -n python3-%{pkg_name}
8b976d
%doc README
8b976d
%{python3_sitearch}/PyQt5_sip*
8b976d
%{python3_sitearch}/PyQt5/
8b976d
8b976d
%changelog
8b976d
* Thu May 26 2022 Jan Grulich <jgrulich@redhat.com> - 12.9.1-1
8b976d
- Initial package
8b976d
  Resolves: bz#2090327