Initial build

This commit is contained in:
Jeremy Katz 2008-06-23 18:07:59 +00:00
parent 35111a3c58
commit 33830064ee
4 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1 @@
pyusb-0.4.1.tar.gz

1
import.log Normal file
View File

@ -0,0 +1 @@
pyusb-0_4_1-2_fc10:HEAD:pyusb-0.4.1-2.fc10.src.rpm:1214244344

47
pyusb.spec Normal file
View File

@ -0,0 +1,47 @@
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Name: pyusb
Version: 0.4.1
Release: 2%{?dist}
Summary: Python bindings for libusb
Group: Development/Languages
License: BSD
URL: http://pyusb.berlios.de/
Source0: http://prdownload.berlios.de/pyusb/pyusb-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel
BuildRequires: libusb-devel
%description
PyUSB provides easy USB access to python. The module contains classes and
methods to support most USB operations.
%prep
%setup -q
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
sed -i -e 's/\r//g' README
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README license.txt
%{python_sitearch}/*
%changelog
* Mon Jun 16 2008 Jeremy Katz <katzj@redhat.com> - 0.4.1-2
- Fix end-of-line in README
* Mon Jun 16 2008 Jeremy Katz <katzj@redhat.com> - 0.4.1-1
- Initial packaging

View File

@ -0,0 +1 @@
9576c3e471e40e021fa44f36712bbd04 pyusb-0.4.1.tar.gz