]> git.pld-linux.org Git - packages/python-pyusb.git/blob - python-pyusb.spec
- replaced BR: libusb-devel with BR: libusb-compat-devel
[packages/python-pyusb.git] / python-pyusb.spec
1 %define module  pyusb
2 Summary:        PyUSB provides USB access on the Python language
3 Summary(pl.UTF-8):      PyUSB - dostęp do USB z poziomu języka Python
4 Name:           python-%{module}
5 Version:        0.4.2
6 Release:        2
7 License:        BSD
8 Group:          Development/Languages/Python
9 Source0:        http://downloads.sourceforge.net/pyusb/%{module}-%{version}.tar.gz
10 # Source0-md5:  5667a00af1ac0d5062103b4512e227f8
11 URL:            http://pyusb.sourceforge.net/
12 BuildRequires:  libusb-compat-devel
13 BuildRequires:  python-devel
14 BuildRequires:  rpm-pythonprov
15 %pyrequires_eq  python
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 PyUSB provides USB access on the Python language.
20
21 %description -l pl.UTF-8
22 PyUSB daje dostęp do USB z poziomu języka Python.
23
24 %prep
25 %setup -q -n %{module}-%{version}
26
27 %build
28 %{__python} ./setup.py build
29
30 %install
31 rm -rf $RPM_BUILD_ROOT
32
33 %{__python} ./setup.py install \
34         --optimize 2 \
35         --root=$RPM_BUILD_ROOT
36
37 %clean
38 rm -rf $RPM_BUILD_ROOT
39
40 %files
41 %defattr(644,root,root,755)
42 %doc README
43 %attr(755,root,root) %{py_sitedir}/*.so
44 %{py_sitedir}/*.egg*
This page took 0.065867 seconds and 3 git commands to generate.