]>
Commit | Line | Data |
---|---|---|
da55ee46 | 1 | # NOTE: usbutils>=008 requires udev; for udevless usage use usbutils-007 |
4151b85a | 2 | Summary: Linux USB utilities |
7632e44d ER |
3 | Summary(pl.UTF-8): Linuksowe narzędzia do USB |
4 | Summary(pt_BR.UTF-8): Utilitários Linux USB | |
4151b85a | 5 | Name: usbutils |
aab6f8a0 | 6 | Version: 017 |
ba3d7362 | 7 | Release: 1 |
87413353 | 8 | License: GPL v2+ |
4151b85a | 9 | Group: Applications/System |
ba3d7362 | 10 | Source0: https://www.kernel.org/pub/linux/utils/usb/usbutils/%{name}-%{version}.tar.xz |
aab6f8a0 | 11 | # Source0-md5: 8ff21441faf2e8128e4810b3d6e49059 |
0ccdd768 | 12 | Patch0: hwdata.patch |
4f12a1aa | 13 | URL: http://www.linux-usb.org/ |
39ed4bec | 14 | BuildRequires: autoconf >= 2.61 |
b8a227eb | 15 | BuildRequires: automake >= 1:1.9 |
b8ee8dda | 16 | BuildRequires: libtool |
39ed4bec | 17 | BuildRequires: libusb-devel >= 1.0.14 |
1e351450 | 18 | BuildRequires: pkgconfig |
da55ee46 JB |
19 | BuildRequires: rpmbuild(macros) >= 1.507 |
20 | BuildRequires: sed >= 4.0 | |
13c38653 | 21 | BuildRequires: tar >= 1:1.22 |
ba3d7362 | 22 | BuildRequires: udev-devel >= 1:196 |
13c38653 | 23 | BuildRequires: xz |
87413353 | 24 | BuildRequires: zlib-devel |
39ed4bec | 25 | Requires: libusb >= 1.0.14 |
ba3d7362 | 26 | Requires: udev-core >= 1:196 |
4151b85a | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
0d2e5c75 | 29 | %description |
4151b85a | 30 | usbutils contains a utility for inspecting devices connected to the |
ba3d7362 | 31 | USB bus. |
0d2e5c75 | 32 | |
6e35b378 JR |
33 | %description -l pl.UTF-8 |
34 | Pakiet usbutils zawiera narzędzie do przeglądania urządzeń | |
ba3d7362 | 35 | podłączonych do szyny USB. |
35fd7d7c | 36 | |
6e35b378 JR |
37 | %description -l pt_BR.UTF-8 |
38 | Este pacote contém utilitários para inspecionar dispositivos | |
06e9c78b | 39 | conectados a um barramento USB. |
40 | ||
0a031941 JP |
41 | %package devel |
42 | Summary: Development files for usbutils | |
43 | Summary(pl.UTF-8): Pliki programistyczne usbutils | |
44 | Group: Development/Libraries | |
45 | ||
46 | %description devel | |
47 | Development files for usbutils. | |
48 | ||
49 | %description devel -l pl.UTF-8 | |
50 | Pliki programistyczne usbutils. | |
51 | ||
da55ee46 JB |
52 | %package python |
53 | Summary: Python based lsusb program | |
54 | Summary(pl.UTF-8): Program lsusb napisany w Pythonie | |
55 | Group: Applications/System | |
56 | Requires: hwdata >= 0.249 | |
57 | ||
58 | %description python | |
59 | Python based lsusb program. | |
60 | ||
61 | %description python -l pl.UTF-8 | |
62 | Program lsusb napisany w Pythonie. | |
63 | ||
0d2e5c75 | 64 | %prep |
4151b85a | 65 | %setup -q |
2717fa4a | 66 | %patch0 -p1 |
0d2e5c75 | 67 | |
da55ee46 | 68 | %{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' lsusb.py.in |
0ccdd768 | 69 | |
0d2e5c75 | 70 | %build |
3463107b | 71 | %{__aclocal} |
f6b0fc1d | 72 | %{__autoconf} |
2717fa4a | 73 | %{__autoheader} |
7eacd412 | 74 | %{__automake} |
39ed4bec JB |
75 | cd usbhid-dump |
76 | %{__libtoolize} | |
105c8df4 | 77 | %{__aclocal} |
39ed4bec JB |
78 | %{__autoconf} |
79 | %{__autoheader} | |
80 | %{__automake} | |
81 | cd .. | |
750845d9 JB |
82 | %configure \ |
83 | --disable-silent-rules | |
4151b85a | 84 | %{__make} |
0d2e5c75 | 85 | |
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
366faa4a | 88 | %{__make} install \ |
0ccdd768 | 89 | INSTALL="install -p" \ |
366faa4a | 90 | DESTDIR=$RPM_BUILD_ROOT |
4151b85a | 91 | |
0d2e5c75 | 92 | %clean |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
95 | %files | |
4151b85a | 96 | %defattr(644,root,root,755) |
da55ee46 | 97 | %doc NEWS |
a1ac6aa8 | 98 | %attr(755,root,root) %{_bindir}/lsusb |
55e3c5e7 | 99 | %attr(755,root,root) %{_bindir}/usb-devices |
b8a227eb | 100 | %attr(755,root,root) %{_bindir}/usbhid-dump |
55e3c5e7 | 101 | %{_mandir}/man1/usb-devices.1* |
87413353 | 102 | %{_mandir}/man8/lsusb.8* |
a0c31a27 | 103 | %{_mandir}/man8/usbhid-dump.8* |
da55ee46 | 104 | |
0a031941 JP |
105 | %files devel |
106 | %defattr(644,root,root,755) | |
107 | %{_pkgconfigdir}/usbutils.pc | |
108 | ||
da55ee46 JB |
109 | %files python |
110 | %defattr(644,root,root,755) | |
111 | %attr(755,root,root) %{_bindir}/lsusb.py |