Initial build
This commit is contained in:
parent
35111a3c58
commit
33830064ee
@ -0,0 +1 @@
|
||||
pyusb-0.4.1.tar.gz
|
||||
1
import.log
Normal file
1
import.log
Normal 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
47
pyusb.spec
Normal 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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user