Blame SPECS/python-pyudev.spec

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