Blame SPECS/python-pyudev.spec

199cfe
%global modname pyudev
199cfe
199cfe
Name:             python-pyudev
199cfe
Version:          0.15
199cfe
Release:          9%{?dist}
199cfe
Summary:          A libudev binding
199cfe
Group:            Development/Languages
199cfe
License:          LGPLv2+
199cfe
URL:              http://pypi.python.org/pypi/pyudev
199cfe
Source0:          http://pypi.python.org/packages/source/p/pyudev/pyudev-0.15.tar.gz
199cfe
BuildArch:        noarch
199cfe
Patch0:           python-pyudev-0.15-load-libudev-in-context.patch
199cfe
# backported from upstream
199cfe
Patch1:           python-pyudev-0.15-retry-interrupted-calls.patch
199cfe
Requires:         systemd-libs
199cfe
BuildRequires:    python-devel python-setuptools systemd-devel
199cfe
199cfe
%description
199cfe
###### pyudev ######
199cfe
199cfe
pyudev is a LGPL licensed, pure Python binding for libudev, the device
199cfe
and hardware management and information library for Linux.  It supports
199cfe
almost all libudev functionality, you can enumerate devices, query device
199cfe
properties and attributes or monitor devices, including asynchronous
199cfe
monitoring with threads, or within the event loops of Qt, Glib or wxPython.
199cfe
199cfe
The binding supports CPython_ 2 (2.6 or newer) and 3 (3.1 or newer), and
199cfe
PyPy_ 1.5 or newer.  It is tested against udev 151 or newer, earlier
199cfe
versions of udev as found on dated Linux systems may work, but are not
199cfe
officially supported.
199cfe
199cfe
%prep
199cfe
%setup -q -n %{modname}-%{version}
199cfe
%patch0 -p1
199cfe
%patch1 -p1
199cfe
199cfe
%build
199cfe
%{__python} setup.py build
199cfe
199cfe
%install
199cfe
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
199cfe
199cfe
199cfe
%files
199cfe
%doc COPYING README.rst
199cfe
%{python_sitelib}/%{modname}
199cfe
%{python_sitelib}/%{modname}-%{version}*
199cfe
199cfe
199cfe
%changelog
199cfe
* Wed Mar 22 2017 Jaroslav Škarvada <jskarvad@redhat.com> - 0.15-9
199cfe
- The libudev library loaded in context to workaround cleanup problems
199cfe
  Resolves: rhbz#1252833
199cfe
- Retry interrupted calls
199cfe
  Resolves: rhbz#1108921
199cfe
199cfe
* Thu Dec  3 2015 Jaroslav Škarvada <jskarvad@redhat.com> - 0.15-8
199cfe
- Added systemd-libs requirement for libudev
199cfe
  Resolves: rhbz#1287461
199cfe
199cfe
* Thu Apr  9 2015 Jaroslav Škarvada <jskarvad@redhat.com> - 0.15-7
199cfe
- Dropped unneeded explicit dependencies
199cfe
  Resolves: rhbz#1095454
199cfe
199cfe
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.15-6
199cfe
- Mass rebuild 2013-12-27
199cfe
199cfe
* Wed Jul 31 2013 Jaroslav Škarvada <jskarvad@redhat.com> - 0.15-5
199cfe
- Fixed license field
199cfe
199cfe
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-4
199cfe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
199cfe
199cfe
* Mon Jul 23 2012 Chris Lockfort <clockfort@redhat.com> 0.15-3
199cfe
- Reflect rawhide merging udev into systemd
199cfe
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-2
199cfe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
199cfe
* Mon Jun 18 2012 Chris Lockfort <clockfort@redhat.com> 0.15-1
199cfe
- initial package