]> git.pld-linux.org Git - packages/python-pyusb.git/blob - python-pyusb.spec
- md5
[packages/python-pyusb.git] / python-pyusb.spec
1 %define module  pyusb
2 Summary:        PyUSB provides USB access on the Python language
3 Name:           python-%{module}
4 Version:        0.1
5 Release:        1
6 License:        GPL
7 Group:          Development/Languages/Python
8 Source0:        http://dl.sourceforge.net/%{module}/%{module}-%{version}-src.tar.gz
9 # Source0-md5:  b86333284659f15986206413df61123e
10 URL:            http://pyusb.sf.net/
11 %pyrequires_eq  python
12 BuildRequires:  python-devel
13 BuildRequires:  libusb-devel
14 BuildRequires:  unzip
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 PyUSB provides USB access on the Python language.
19
20 %prep
21 %setup  -q -n %{module}
22
23 %build
24 python ./setup.py build
25
26 %install
27 rm -rf $RPM_BUILD_ROOT
28
29 python ./setup.py install \
30         --optimize 2 \
31         --root=$RPM_BUILD_ROOT
32
33 %clean
34 rm -rf $RPM_BUILD_ROOT
35
36 %files
37 %defattr(644,root,root,755)
38 %doc README
39 %attr(755,root,root) %{py_sitedir}/*.so
This page took 0.054128 seconds and 3 git commands to generate.