python-pyudev/python-pyudev.spec

95 lines
3.4 KiB
RPMSpec
Raw Normal View History

2012-06-21 19:35:50 +00:00
Name: python-pyudev
Version: 0.15
Release: 7%{?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/pyudev/pyudev-%{version}.tar.gz
2012-06-21 19:35:50 +00:00
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
2012-06-21 19:35:50 +00:00
%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 python3-pyudev
Summary: A libudev binding
BuildRequires: python3-devel
BuildRequires: python3-setuptools
2012-06-21 19:35:50 +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.
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
%setup -q -n pyudev-%{version}
rm -rf pyudev.egg-info
rm -rf %{py3dir}
cp -a . %{py3dir}
2012-06-21 19:35:50 +00:00
%build
%{__python2} setup.py build
( cd %{py3dir} && %{__python3} setup.py build )
2012-06-21 19:35:50 +00:00
%install
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
2012-06-21 19:35:50 +00:00
( cd %{py3dir} && %{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT )
2012-06-21 19:35:50 +00:00
%files
%doc COPYING README.rst
%{python2_sitelib}/pyudev
%{python2_sitelib}/pyudev-%{version}-*.egg-info
2012-06-21 19:35:50 +00:00
%files -n python3-pyudev
%doc COPYING README.rst
%{python3_sitelib}/pyudev
%{python3_sitelib}/pyudev-%{version}-*.egg-info
2012-06-21 19:35:50 +00:00
%changelog
* 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