]>
Commit | Line | Data |
---|---|---|
699c8ec6 AM |
1 | %define module pyusb |
2 | Summary: PyUSB provides USB access on the Python language | |
aeccd4dd | 3 | Summary(pl.UTF-8): PyUSB - dostęp do USB z poziomu języka Python |
699c8ec6 | 4 | Name: python-%{module} |
07b11337 | 5 | Version: 0.4.1 |
1a655de8 | 6 | Release: 2 |
07b11337 | 7 | License: BSD |
699c8ec6 | 8 | Group: Development/Languages/Python |
07b11337 PZ |
9 | Source0: http://dl.sourceforge.net/pyusb/%{module}-%{version}.tar.gz |
10 | # Source0-md5: 9576c3e471e40e021fa44f36712bbd04 | |
cd5eea44 | 11 | URL: http://pyusb.sourceforge.net/ |
699c8ec6 | 12 | BuildRequires: libusb-devel |
8093ecad | 13 | BuildRequires: python-devel |
e8cc6ead | 14 | BuildRequires: rpm-pythonprov |
699c8ec6 | 15 | BuildRequires: unzip |
8093ecad | 16 | %pyrequires_eq python |
699c8ec6 AM |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | PyUSB provides USB access on the Python language. | |
21 | ||
171e7b53 JR |
22 | %description -l pl.UTF-8 |
23 | PyUSB daje dostęp do USB z poziomu języka Python. | |
8093ecad | 24 | |
699c8ec6 | 25 | %prep |
07b11337 | 26 | %setup -q -n %{module}-%{version} |
699c8ec6 AM |
27 | |
28 | %build | |
e8cc6ead | 29 | %{__python} ./setup.py build |
699c8ec6 AM |
30 | |
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
33 | ||
e8cc6ead | 34 | %{__python} ./setup.py install \ |
699c8ec6 AM |
35 | --optimize 2 \ |
36 | --root=$RPM_BUILD_ROOT | |
37 | ||
38 | %clean | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %files | |
42 | %defattr(644,root,root,755) | |
43 | %doc README | |
44 | %attr(755,root,root) %{py_sitedir}/*.so |