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


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

%prep
tar xf ../SOURCES/pyusb.tar

%build
cd pyusb
CFLAGS="$RPM_OPT_FLAGS" \
python setup.py build

%install
rm -rf $RPM_BUILD_ROOT
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



%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.files
%defattr(-,root,root)
#%doc README

%changelog