Blame SPECS/python-pyqt5-sip.spec

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