Dropped Qt RPM subpackages on RHEL > 9

Resolves: RHEL-46314
This commit is contained in:
Jaroslav Škarvada 2024-07-04 16:56:58 +02:00
parent 462af9d380
commit 49362d3d66
1 changed files with 15 additions and 1 deletions

View File

@ -1,7 +1,13 @@
%global srcname pyudev
%if 0%{?rhel} > 9
%bcond_with qt
%else
%bcond_without qt
%endif
Name: python-%{srcname}
Version: 0.24.1
Release: 8%{?dist}
Release: 9%{?dist}
Summary: A libudev binding
License: LGPL-2.1-or-later
@ -36,6 +42,7 @@ properties and attributes or monitor devices, including asynchronous
monitoring with threads, or within the event loops of Qt, Glib or wxPython.
The binding supports CPython 3 and PyPy.
%if %{with qt}
%package -n python3-%{srcname}-qt4
Summary: Qt4 integration for pyudev
@ -59,6 +66,7 @@ Qt5 integration for pyudev.
This package provides a module pyudev.pyqt5 that contains classes for
integrating a pyudev monitor with the Qt5 main loop.
%endif
%prep
%autosetup -n %{srcname}-%{version}
@ -86,6 +94,7 @@ rm -rf pyudev.egg-info
%exclude %{python3_sitelib}/pyudev/wx.py
%exclude %{python3_sitelib}/pyudev/__pycache__/wx.*
%if %{with qt}
%files -n python3-%{srcname}-qt4
%license COPYING
%{python3_sitelib}/pyudev/pyqt4.py
@ -95,8 +104,13 @@ rm -rf pyudev.egg-info
%license COPYING
%{python3_sitelib}/pyudev/pyqt5.py
%{python3_sitelib}/pyudev/__pycache__/pyqt5.*
%endif
%changelog
* Thu Jul 4 2024 Jaroslav Škarvada <jskarvad@redhat.com> - 0.24.1-9
- Dropped Qt RPM subpackages on RHEL > 9
Resolves: RHEL-46314
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.24.1-8
- Bump release for June 2024 mass rebuild