From 048e8a299721431eeae655fc1e36d6196337503b Mon Sep 17 00:00:00 2001 From: Chris Lockfort Date: Thu, 21 Jun 2012 15:35:50 -0400 Subject: [PATCH] Initial import of version 0.15 --- .gitignore | 1 + python-pyudev.spec | 51 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 53 insertions(+) create mode 100644 python-pyudev.spec diff --git a/.gitignore b/.gitignore index e69de29..3bcf03d 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/pyudev-0.15.tar.gz diff --git a/python-pyudev.spec b/python-pyudev.spec new file mode 100644 index 0000000..1e9172d --- /dev/null +++ b/python-pyudev.spec @@ -0,0 +1,51 @@ +%global modname pyudev + +Name: python-pyudev +Version: 0.15 +Release: 1%{?dist} +Summary: A libudev binding + +Group: Development/Languages +License: LGPL +URL: http://pypi.python.org/pypi/pyudev +Source0: http://pypi.python.org/packages/source/p/pyudev/pyudev-0.15.tar.gz + +BuildArch: noarch + + +BuildRequires: python-devel python-setuptools libudev +Requires: python python-setuptools libudev + +%description +###### pyudev ###### + +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. + +%prep +%setup -q -n %{modname}-%{version} + +%build +%{__python} setup.py build + +%install +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT + + +%files +%doc COPYING README.rst +%{python_sitelib}/%{modname} +%{python_sitelib}/%{modname}-%{version}* + + +%changelog +* Mon Jun 18 2012 Chris Lockfort 0.15-1 +- initial package diff --git a/sources b/sources index e69de29..f495514 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +35d7295e71664bb630a1fa61ad11d6f6 pyudev-0.15.tar.gz