diff --git a/.cvsignore b/.cvsignore index e69de29..3595e46 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +pyusb-0.4.1.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..9b9b796 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +pyusb-0_4_1-2_fc10:HEAD:pyusb-0.4.1-2.fc10.src.rpm:1214244344 diff --git a/pyusb.spec b/pyusb.spec new file mode 100644 index 0000000..e4f0df2 --- /dev/null +++ b/pyusb.spec @@ -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 - 0.4.1-2 +- Fix end-of-line in README + +* Mon Jun 16 2008 Jeremy Katz - 0.4.1-1 +- Initial packaging + diff --git a/sources b/sources index e69de29..efb9cf7 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +9576c3e471e40e021fa44f36712bbd04 pyusb-0.4.1.tar.gz