python-pyudev/python-pyudev.spec

306 lines
11 KiB
RPMSpec
Raw Normal View History

%global srcname pyudev
Name: python-%{srcname}
2015-12-21 19:06:12 +00:00
Version: 0.18.1
Release: 4%{?dist}
2012-06-21 19:35:50 +00:00
Summary: A libudev binding
License: LGPLv2+
2012-06-21 19:35:50 +00:00
URL: http://pypi.python.org/pypi/pyudev
Source0: http://pypi.python.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
2012-06-21 19:35:50 +00:00
BuildArch: noarch
%description
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 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.
%package -n python2-%{srcname}
Summary: A libudev binding
%{?python_provide:%python_provide python2-%{srcname}}
BuildRequires: python2-devel
BuildRequires: python-setuptools
2012-06-21 19:35:50 +00:00
# Dependencies for libraries loaded through ctypes
# glibc is needed for pipe2. This is not needed in the python3 package.
Requires: glibc
# Needed for libudev
Requires: systemd-libs
2015-12-21 19:06:12 +00:00
# Used for python2/3 compatibility
Requires: python-six
%description -n python2-%{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 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.
%package -n python2-%{srcname}-glib
Summary: GLib integration for pyudev
Requires: pygobject2
Requires: python2-%{srcname} = %{version}-%{release}
%description -n python2-%{srcname}-glib
GLib integration for pyudev.
This package provides a module pyudev.glib that contains classes for
integrating a pyudev monitor with the GLib main loop.
%package -n python2-%{srcname}-qt4
Summary: Qt4 integration for pyudev
Requires: PyQt4
Requires: python2-%{srcname} = %{version}-%{release}
%description -n python2-%{srcname}-qt4
Qt4 integration for pyudev.
This package provides a module pyudev.pyqt4 that contains classes for
integrating a pyudev monitor with the Qt4 main loop.
2015-12-21 19:06:12 +00:00
%package -n python2-%{srcname}-qt5
Summary: Qt5 integration for pyudev
Requires: python-qt5
Requires: python2-%{srcname} = %{version}-%{release}
%description -n python2-%{srcname}-qt5
Qt5 integration for pyudev.
This package provides a module pyudev.pyqt5 that contains classes for
integrating a pyudev monitor with the Qt4 main loop.
%package -n python2-%{srcname}-pyside
Summary: PySide integration for pyudev
Requires: python-pyside
Requires: python2-%{srcname} = %{version}-%{release}
%description -n python2-%{srcname}-pyside
PySide integration for pyudev.
This package provides a module pyudev.pyside that contains classes for
integrating a pyudev monitor with the PySide main loop.
%package -n python2-%{srcname}-wx
Summary: wxPython integration for pyudev
Requires: wxPython
Requires: python2-%{srcname} = %{version}-%{release}
%description -n python2-%{srcname}-wx
wxPython integration for pyudev.
This package provides a module pyudev.wx that contains classes for
integrating a pyudev montior with the wxPython main loop.
%package -n python3-%{srcname}
Summary: A libudev binding
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
2012-06-21 19:35:50 +00:00
# Needed for libudev, loaded through ctypes
Requires: systemd-libs
2015-12-21 19:06:12 +00:00
# Used for python2/3 compatibility
Requires: python3-six
%description -n python3-%{srcname}
2012-06-21 19:35:50 +00:00
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 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
2012-06-21 19:35:50 +00:00
versions of udev as found on dated Linux systems may work, but are not
officially supported.
%package -n python3-%{srcname}-qt4
Summary: Qt4 integration for pyudev
Requires: python3-PyQt4
Requires: python3-%{srcname} = %{version}-%{release}
%description -n python3-%{srcname}-qt4
Qt4 integration for pyudev.
This package provides a module pyudev.pyqt4 that contains classes for
integrating a pyudev monitor with the Qt4 main loop.
2015-12-21 19:06:12 +00:00
%package -n python3-%{srcname}-qt5
Summary: Qt5 integration for pyudev
Requires: python3-qt5
Requires: python3-%{srcname} = %{version}-%{release}
%description -n python3-%{srcname}-qt5
Qt5 integration for pyudev.
This package provides a module pyudev.pyqt5 that contains classes for
integrating a pyudev monitor with the Qt5 main loop.
2012-06-21 19:35:50 +00:00
%prep
%autosetup -n %{srcname}-%{version}
rm -rf pyudev.egg-info
2012-06-21 19:35:50 +00:00
%build
%py2_build
%py3_build
2012-06-21 19:35:50 +00:00
%install
%py2_install
%py3_install
2012-06-21 19:35:50 +00:00
%files -n python2-%{srcname}
2015-01-28 21:41:43 +00:00
%license COPYING
%doc README.rst CHANGES.rst
%{python2_sitelib}/pyudev/
%{python2_sitelib}/pyudev-%{version}-*.egg-info
%exclude %{python2_sitelib}/pyudev/glib.py*
%exclude %{python2_sitelib}/pyudev/pyqt4.py*
2015-12-21 19:06:12 +00:00
%exclude %{python2_sitelib}/pyudev/pyqt5.py*
%exclude %{python2_sitelib}/pyudev/pyside.py*
%exclude %{python2_sitelib}/pyudev/wx.py*
%files -n python2-%{srcname}-glib
%license COPYING
%{python2_sitelib}/pyudev/glib.py*
%files -n python2-%{srcname}-qt4
%license COPYING
%{python2_sitelib}/pyudev/pyqt4.py*
2015-12-21 19:06:12 +00:00
%files -n python2-%{srcname}-qt5
%license COPYING
%{python2_sitelib}/pyudev/pyqt5.py*
%files -n python2-%{srcname}-pyside
%license COPYING
%{python2_sitelib}/pyudev/pyside.py*
%files -n python2-%{srcname}-wx
%license COPYING
%{python2_sitelib}/pyudev/wx.py*
2012-06-21 19:35:50 +00:00
%files -n python3-%{srcname}
2015-01-28 21:41:43 +00:00
%license COPYING
%doc README.rst CHANGES.rst
%{python3_sitelib}/pyudev
%{python3_sitelib}/pyudev-%{version}-*.egg-info
%exclude %{python3_sitelib}/pyudev/glib.py
%exclude %{python3_sitelib}/pyudev/__pycache__/glib.*
%exclude %{python3_sitelib}/pyudev/pyqt4.py
%exclude %{python3_sitelib}/pyudev/__pycache__/pyqt4.*
2015-12-21 19:06:12 +00:00
%exclude %{python3_sitelib}/pyudev/pyqt5.py
%exclude %{python3_sitelib}/pyudev/__pycache__/pyqt5.*
%exclude %{python3_sitelib}/pyudev/pyside.py
%exclude %{python3_sitelib}/pyudev/__pycache__/pyside.*
%exclude %{python3_sitelib}/pyudev/wx.py
%exclude %{python3_sitelib}/pyudev/__pycache__/wx.*
%files -n python3-%{srcname}-qt4
%license COPYING
%{python3_sitelib}/pyudev/pyqt4.py
%{python3_sitelib}/pyudev/__pycache__/pyqt4.*
2012-06-21 19:35:50 +00:00
2015-12-21 19:06:12 +00:00
%files -n python3-%{srcname}-qt5
%license COPYING
%{python3_sitelib}/pyudev/pyqt5.py
%{python3_sitelib}/pyudev/__pycache__/pyqt5.*
2012-06-21 19:35:50 +00:00
%changelog
2015-12-21 19:06:12 +00:00
* Mon Dec 21 2015 mulhern <amulhern@redhat.com> - 0.18.1
- Restore raising KeyError in astring, asint, asbool methods in Attributes
- Add dependency on six package
- pyudev sources now in src directory
- Added support for pyqt5 monitor observer
- Added discover module, which looks up a device on limited information
- DeviceNotFoundError is no longer a subtype of LookupError
- Attributes class no longer extends Mapping class
- Attributes class no longer inherits [] operator and other Mapping methods
- Attributes class object are no longer iterable or indexable and have no length
- Attributes.available_attributes property added
- Attributes.get() method, with usual semantics explicitly defined
- Device.from_* methods are deprecated, use Devices.from_* methods instead
- Device.from_device_number() now raises DeviceNotFoundByNumberError
- Devices.from_interface_index() method added
- Devices.from_kernel_device() method added
* Thu Dec 3 2015 David Shea <dshea@redhat.com> - 0.17-4
- Add requires for things that are required
- Split the main-loop integration modules into separate packages
2015-11-04 07:45:56 +00:00
* Wed Nov 04 2015 Robert Kuska <rkuska@redhat.com> - 0.17-3
- Rebuilt for Python3.5 rebuild
* Wed Sep 15 2015 David Shea <dshea@redhat.com> - 0.17.1-2
- Fix a typo in the python3-pyudev Provides
* Mon Sep 14 2015 David Shea <dshea@redhat.com> - 0.17.1-1
- Really start the monitor on pyudev.Monitor.poll()
- Force non-blocking IO in pyudev.Monitor to avoid blocking on receiving the device
- Set proper flags on pipe fs
- Handle irregular polling events properly
- Rename MonitorObserver GUI classes and deprecate the old ones
- Remove patches for #1170337 and #1230773 that are now part of upstream
- Switch to new packaging guidelines which renames python-pyudev to python2-pyudev
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Fri Jun 12 2015 David Shea <dshea@redhat.com> - 0.16.1-3
- Retry interrupted system calls (#1230773)
- Rearrange the build process to match current packaging recommendations
* Wed Jan 28 2015 David Shea <dshea@redhat.com> - 0.16.1-2
2015-01-28 21:41:43 +00:00
- Use %%license for the license file
* Wed Dec 10 2014 David Shea <dshea@redhat.com> - 0.16.1-1
- Update to pyudev-0.16.1 (#880644)
- Apply a patch from upstream to remove a global reference to libudev (#1170337)
* Wed Dec 10 2014 David Shea <dshea@redhat.com> - 0.15-7
- Fix license tag (LGPL -> LGPLv2+) (#990579)
- Remove rst tags from description
- Remove unnecessary requires and buildrequires (#1095459)
- Avoid packaging upstream egg-info files
- Add a python3 package
- Drop the Group tag which wasn't even the right group
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2012-07-23 17:29:34 +00:00
* Mon Jul 23 2012 Chris Lockfort <clockfort@redhat.com> 0.15-3
- Reflect rawhide merging udev into systemd
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-06-21 19:35:50 +00:00
* Mon Jun 18 2012 Chris Lockfort <clockfort@redhat.com> 0.15-1
- initial package