File python-usb.spec of Package python-usb
Summary: Python module to interface USB devices
Name: python-usb
Version: 0.4.1
Release: 1
License: BSD
Group: Development/Libraries/Python
URL: http://pyusb.berlios.de/
Source: http://download.berlios.de/pyusb/pyusb-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libusb-devel
BuildRequires: python-devel
%description
PyUSB is a native Python module written in C which provides USB access
for it.
PyUSB uses the libusb to do its work, so, any system which has Python
and libusb should work for PyUSB.
%prep
%setup -q -n pyusb-%{version}
%build
python setup.py build
%install
python setup.py install \
--prefix=%{_prefix} \
--root=$RPM_BUILD_ROOT \
--record-rpm=INSTALLED_FILES
%clean
rm -rf %{buildroot} %{_builddir}/%{buildsubdir}
%files -f INSTALLED_FILES
%defattr(644,root,root,755)
%doc README samples
%changelog
* Wed Feb 06 2008 Krzysztof Kotlenga <piernik@gmail.com> 0.4.1-1
- initial release (based on work by Guenter Dannoritzer)