2012-06-21 19:35:50 +00:00
|
|
|
Name: python-pyudev
|
2014-12-10 20:52:31 +00:00
|
|
|
Version: 0.16.1
|
2015-06-12 13:31:08 +00:00
|
|
|
Release: 3%{?dist}
|
2012-06-21 19:35:50 +00:00
|
|
|
Summary: A libudev binding
|
|
|
|
|
2014-12-10 19:55:41 +00:00
|
|
|
License: LGPLv2+
|
2012-06-21 19:35:50 +00:00
|
|
|
URL: http://pypi.python.org/pypi/pyudev
|
2014-12-10 19:55:41 +00:00
|
|
|
Source0: http://pypi.python.org/packages/source/p/pyudev/pyudev-%{version}.tar.gz
|
2015-06-12 13:31:08 +00:00
|
|
|
|
|
|
|
# Based on 0113ccdbba1aef69f3f890fd72622f24d79d907a in github.com/lunaryorn/pyudev.git
|
2014-12-10 20:52:31 +00:00
|
|
|
Patch0: pyudev-0.16.1-global-libudev.patch
|
2012-06-21 19:35:50 +00:00
|
|
|
|
2015-06-12 13:31:08 +00:00
|
|
|
# Based on af9ba7b27478274a2f5f9676de662b079a3a8c22 in github.com/dashea/pyudev.git
|
|
|
|
Patch1: pyudev-eintr-retry.patch
|
|
|
|
|
2012-06-21 19:35:50 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2014-12-10 19:55:41 +00:00
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python-setuptools
|
2012-06-21 19:35:50 +00:00
|
|
|
|
|
|
|
%description
|
2014-12-10 19:55:41 +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
|
|
|
|
versions of udev as found on dated Linux systems may work, but are not
|
|
|
|
officially supported.
|
|
|
|
|
|
|
|
%package -n python3-pyudev
|
|
|
|
Summary: A libudev binding
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
2012-06-21 19:35:50 +00:00
|
|
|
|
2014-12-10 19:55:41 +00:00
|
|
|
%description -n python3-pyudev
|
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.
|
|
|
|
|
2014-12-10 19:55:41 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
2015-06-12 13:31:08 +00:00
|
|
|
%setup -qc
|
|
|
|
mv pyudev-%{version} python2
|
2014-12-10 20:52:31 +00:00
|
|
|
|
2015-06-12 13:31:08 +00:00
|
|
|
pushd python2
|
2014-12-10 19:55:41 +00:00
|
|
|
rm -rf pyudev.egg-info
|
|
|
|
|
2015-06-12 13:31:08 +00:00
|
|
|
%patch0 -p1 -b .global-libudev
|
|
|
|
%patch1 -p1 -b .eintr-retry
|
|
|
|
|
|
|
|
# Copy common doc files to the top directory
|
|
|
|
cp -pr COPYING README.rst CHANGES.rst ../
|
|
|
|
popd
|
|
|
|
|
|
|
|
cp -a python2 python3
|
2012-06-21 19:35:50 +00:00
|
|
|
|
|
|
|
%build
|
2015-06-12 13:31:08 +00:00
|
|
|
pushd python2
|
2014-12-10 19:55:41 +00:00
|
|
|
%{__python2} setup.py build
|
2015-06-12 13:31:08 +00:00
|
|
|
popd
|
2014-12-10 19:55:41 +00:00
|
|
|
|
2015-06-12 13:31:08 +00:00
|
|
|
pushd python3
|
|
|
|
%{__python3} setup.py build
|
|
|
|
popd
|
2012-06-21 19:35:50 +00:00
|
|
|
|
|
|
|
%install
|
2015-06-12 13:31:08 +00:00
|
|
|
pushd python2
|
|
|
|
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
popd
|
2012-06-21 19:35:50 +00:00
|
|
|
|
2015-06-12 13:31:08 +00:00
|
|
|
pushd python3
|
|
|
|
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
popd
|
2012-06-21 19:35:50 +00:00
|
|
|
|
|
|
|
%files
|
2015-01-28 21:41:43 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc README.rst CHANGES.rst
|
2014-12-10 19:55:41 +00:00
|
|
|
%{python2_sitelib}/pyudev
|
|
|
|
%{python2_sitelib}/pyudev-%{version}-*.egg-info
|
2012-06-21 19:35:50 +00:00
|
|
|
|
2014-12-10 19:55:41 +00:00
|
|
|
%files -n python3-pyudev
|
2015-01-28 21:41:43 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc README.rst CHANGES.rst
|
2014-12-10 19:55:41 +00:00
|
|
|
%{python3_sitelib}/pyudev
|
|
|
|
%{python3_sitelib}/pyudev-%{version}-*.egg-info
|
2012-06-21 19:35:50 +00:00
|
|
|
|
|
|
|
%changelog
|
2015-06-12 13:31:08 +00:00
|
|
|
* 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
|
|
|
|
|
2015-06-12 13:31:08 +00:00
|
|
|
* Wed Dec 10 2014 David Shea <dshea@redhat.com> - 0.16.1-1
|
2014-12-10 20:52:31 +00:00
|
|
|
- Update to pyudev-0.16.1 (#880644)
|
|
|
|
- Apply a patch from upstream to remove a global reference to libudev (#1170337)
|
|
|
|
|
2014-12-10 19:55:41 +00:00
|
|
|
* 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
|
|
|
|
|
2014-06-07 22:34:48 +00:00
|
|
|
* 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
|
|
|
|
|
2013-08-04 09:23:11 +00:00
|
|
|
* 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
|
|
|
|
|
2013-02-14 20:13:52 +00:00
|
|
|
* 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
|
2012-07-23 17:26:12 +00:00
|
|
|
- Reflect rawhide merging udev into systemd
|
2012-07-21 08:07:06 +00:00
|
|
|
* 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
|