From e7103e5e2e9434c28bf6391f635cbeb9a94d4d6e Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Sat, 3 Jul 2021 12:24:29 -0400 Subject: [PATCH] Initial package --- .gitignore | 1 + python-pyqt5-sip.spec | 51 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 53 insertions(+) create mode 100644 .gitignore create mode 100644 python-pyqt5-sip.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a12aa60 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/PyQt5_sip-12.8.1.tar.gz diff --git a/python-pyqt5-sip.spec b/python-pyqt5-sip.spec new file mode 100644 index 0000000..3eac40e --- /dev/null +++ b/python-pyqt5-sip.spec @@ -0,0 +1,51 @@ +%global pkg_name pyqt5-sip +%global pypi_name PyQt5_sip +%global _sip_api_major 12 +%global _sip_api_minor 8 +%global _sip_api %{_sip_api_major}.%{_sip_api_minor} + +Name: python-%{pkg_name} +Version: 12.8.1 +Release: 1%{?dist} +Summary: The sip module support for PyQt5 + +License: GPLv2 or GPLv3 +URL: https://www.riverbankcomputing.com/software/sip/ +Source0: %{pypi_source} + +BuildRequires: gcc +BuildRequires: python3-devel +BuildRequires: %{py3_dist setuptools} >= 30.3 +BuildRequires: %{py3_dist wheel} + +%global _description %{expand: +The sip extension module provides support for the PyQt5 package. +} + +%description %_description + +%package -n python3-%{pkg_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pkg_name}} +Provides: python3-sip-api(%{_sip_api_major}) = %{_sip_api} +Provides: python3-sip-api(%{_sip_api_major})%{?_isa} = %{_sip_api} + +%description -n python3-%{pkg_name} %_description + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{pkg_name} +%doc README +%{python3_sitearch}/PyQt5_sip* +%{python3_sitearch}/PyQt5/ + +%changelog +* Mon May 24 2021 Scott Talbert - 12.8.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..d0e0b39 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (PyQt5_sip-12.8.1.tar.gz) = 42c739d602dbf7d18b4381e3dd61c72165fc49e7e8723430f452029b10a27cf04f2c2ed482fed055432bffda80f7746c6aa61ec1a0ef015661dc5575f96b3cda