LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File pyusb.spec of Package pyusb (Project home:tgoettlicher)

# neededforbuild libusb python-devel
# norootforbuild

Name:           pyusb
BuildRequires:  python-devel
BuildRequires:  libusb-compat-devel
Version:        1.0
Release:        0
Summary:        PyUSB provides USB access on the Python language
License:        Sendmail
Group:          System/Libraries
Url:            https://github.com/walac/pyusb
Source0:        %{name}.tar
BuildArch:      noarch

The PyUSB module provides for Python easy access to the host machine's Universal Serial Bus (USB) system.

tar xf ../SOURCES/pyusb.tar

cd pyusb
python setup.py build

cd pyusb
#python setup.py install --root=$RPM_BUILD_ROOT --prefix=%{_prefix} --record-rpm %{name}.files
python setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --record-rpm /home/abuild/rpmbuild/BUILD/pyusb.files


%files -f %{name}.files
#%doc README