|
|
|
@ -1,10 +1,16 @@
|
|
|
|
|
%global srcname pyudev
|
|
|
|
|
%if 0%{?rhel} > 9
|
|
|
|
|
%bcond_with qt
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without qt
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: python-%{srcname}
|
|
|
|
|
Version: 0.22.0
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Version: 0.24.1
|
|
|
|
|
Release: 9%{?dist}
|
|
|
|
|
Summary: A libudev binding
|
|
|
|
|
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
|
URL: http://pypi.python.org/pypi/pyudev
|
|
|
|
|
Source0: https://pypi.io/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
@ -16,11 +22,7 @@ and hardware management and information library for Linux. It supports
|
|
|
|
|
almost all libudev functionality, you can enumerate devices, query device
|
|
|
|
|
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 2 (2.6 or newer) and 3 (3.1 or newer), and
|
|
|
|
|
PyPy 1.5 or newer. It is tested against udev 151 or newer, earlier
|
|
|
|
|
versions of udev as found on dated Linux systems may work, but are not
|
|
|
|
|
officially supported.
|
|
|
|
|
The binding supports CPython 3 and PyPy.
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{srcname}
|
|
|
|
|
Summary: A libudev binding
|
|
|
|
@ -32,21 +34,15 @@ BuildRequires: python3-setuptools
|
|
|
|
|
# Needed for libudev, loaded through ctypes
|
|
|
|
|
Requires: systemd-libs
|
|
|
|
|
|
|
|
|
|
# Used for python2/3 compatibility
|
|
|
|
|
Requires: python3-six
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{srcname}
|
|
|
|
|
pyudev is a LGPL licensed, pure Python binding for libudev, the device
|
|
|
|
|
and hardware management and information library for Linux. It supports
|
|
|
|
|
almost all libudev functionality, you can enumerate devices, query device
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
The binding supports CPython 2 (2.6 or newer) and 3 (3.1 or newer), and
|
|
|
|
|
PyPy 1.5 or newer. It is tested against udev 151 or newer, earlier
|
|
|
|
|
versions of udev as found on dated Linux systems may work, but are not
|
|
|
|
|
officially supported.
|
|
|
|
|
|
|
|
|
|
%if %{with qt}
|
|
|
|
|
%package -n python3-%{srcname}-qt4
|
|
|
|
|
Summary: Qt4 integration for pyudev
|
|
|
|
|
|
|
|
|
@ -70,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}
|
|
|
|
@ -97,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
|
|
|
|
@ -106,14 +104,66 @@ rm -rf pyudev.egg-info
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{python3_sitelib}/pyudev/pyqt5.py
|
|
|
|
|
%{python3_sitelib}/pyudev/__pycache__/pyqt5.*
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.22.0-6
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Tue Nov 26 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 0.24.1-9
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.1-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.1-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.1-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 16 2023 Python Maint <python-maint@redhat.com> - 0.24.1-4
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Tue Jun 13 2023 mulhern <amulhern@redhat.com> - 0.24.1-3
|
|
|
|
|
- Use SPDX-format license; also make it match upstream
|
|
|
|
|
|
|
|
|
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.24.1-2
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Fri Apr 21 2023 mulhern <amulhern@redhat.com> - 0.24.1-1
|
|
|
|
|
- Update to 0.24.1
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Aug 25 2022 mulhern <amulhern@redhat.com> - 0.24.0-1
|
|
|
|
|
- Update to 0.24.0
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.2-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.23.2-2
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
* Tue Feb 15 2022 mulhern <amulhern@redhat.com> - 0.23.2-1
|
|
|
|
|
- Update to 0.23.2
|
|
|
|
|
|
|
|
|
|
* Tue Feb 15 2022 mulhern <amulhern@redhat.com> - 0.22.0-8
|
|
|
|
|
- Drop redundant Requires
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.22.0-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.22.0-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.22.0-5
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 0.22.0-5
|
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.22.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|