]>
Commit | Line | Data |
---|---|---|
4151b85a | 1 | Summary: Linux USB utilities |
7632e44d ER |
2 | Summary(pl.UTF-8): Linuksowe narzędzia do USB |
3 | Summary(pt_BR.UTF-8): Utilitários Linux USB | |
4151b85a | 4 | Name: usbutils |
a0c31a27 | 5 | Version: 006 |
01497d80 | 6 | Release: 3 |
87413353 | 7 | License: GPL v2+ |
4151b85a | 8 | Group: Applications/System |
d30215c2 | 9 | Source0: http://www.kernel.org/pub/linux/utils/usb/usbutils/%{name}-%{version}.tar.bz2 |
a0c31a27 | 10 | # Source0-md5: 9d13954981f4adbe3fd02aae6dbfafa9 |
0ccdd768 | 11 | Patch0: hwdata.patch |
4f12a1aa | 12 | URL: http://www.linux-usb.org/ |
b8a227eb JB |
13 | BuildRequires: autoconf >= 2.60 |
14 | BuildRequires: automake >= 1:1.9 | |
01497d80 | 15 | BuildRequires: hwdata >= 0.243-2 |
b8ee8dda | 16 | BuildRequires: libtool |
b8a227eb | 17 | BuildRequires: libusb-devel >= 1.0.0 |
1e351450 | 18 | BuildRequires: pkgconfig |
87413353 | 19 | BuildRequires: zlib-devel |
01497d80 | 20 | Requires: hwdata >= 0.243-2 |
4151b85a | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
01497d80 | 23 | %define hwdatadir /lib/hwdata |
4f12a1aa | 24 | |
0d2e5c75 | 25 | %description |
4151b85a | 26 | usbutils contains a utility for inspecting devices connected to the |
27 | USB bus. It requires a Linux kernel version 2.3.15 or newer | |
06e9c78b | 28 | (supporting the '/proc/bus/usb' interface) or patched PLD's 2.2 |
29 | kernel. | |
0d2e5c75 | 30 | |
6e35b378 JR |
31 | %description -l pl.UTF-8 |
32 | Pakiet usbutils zawiera narzędzie do przeglądania urządzeń | |
33 | podłączonych do szyny USB. Wymaga jądra w werji 2.3.15 lub nowszej (z | |
34 | obsługą interfejsu /proc/bus/usb) lub jądra 2.2 z PLD. | |
35fd7d7c | 35 | |
6e35b378 JR |
36 | %description -l pt_BR.UTF-8 |
37 | Este pacote contém utilitários para inspecionar dispositivos | |
06e9c78b | 38 | conectados a um barramento USB. |
39 | ||
0d2e5c75 | 40 | %prep |
4151b85a | 41 | %setup -q |
2717fa4a | 42 | %patch0 -p1 |
0d2e5c75 | 43 | |
0ccdd768 ER |
44 | # paranoid check whether usb.ids in system isn't too old |
45 | if [ usb.ids -nt %{hwdatadir}/usb.ids ]; then | |
46 | : usb.ids needs to be updated | |
47 | exit 1 | |
48 | fi | |
49 | %{__rm} usb.ids | |
50 | ||
0d2e5c75 | 51 | %build |
fa2a1634 | 52 | %{__libtoolize} |
3463107b | 53 | %{__aclocal} |
f6b0fc1d | 54 | %{__autoconf} |
2717fa4a | 55 | %{__autoheader} |
7eacd412 | 56 | %{__automake} |
750845d9 | 57 | %configure \ |
0ccdd768 | 58 | --disable-usbids \ |
750845d9 | 59 | --disable-silent-rules |
4151b85a | 60 | %{__make} |
0d2e5c75 | 61 | |
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
366faa4a | 64 | %{__make} install \ |
55e3c5e7 | 65 | pkgconfigdir=%{_pkgconfigdir} \ |
0ccdd768 | 66 | INSTALL="install -p" \ |
366faa4a | 67 | DESTDIR=$RPM_BUILD_ROOT |
4151b85a | 68 | |
0ccdd768 ER |
69 | %{__rm} $RPM_BUILD_ROOT/usr/bin/lsusb.py |
70 | ||
0d2e5c75 | 71 | %clean |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %files | |
4151b85a | 75 | %defattr(644,root,root,755) |
7eacd412 | 76 | %doc AUTHORS ChangeLog NEWS README |
a1ac6aa8 | 77 | %attr(755,root,root) %{_bindir}/lsusb |
55e3c5e7 | 78 | %attr(755,root,root) %{_bindir}/usb-devices |
b8a227eb | 79 | %attr(755,root,root) %{_bindir}/usbhid-dump |
55e3c5e7 | 80 | %{_mandir}/man1/usb-devices.1* |
87413353 | 81 | %{_mandir}/man8/lsusb.8* |
a0c31a27 | 82 | %{_mandir}/man8/usbhid-dump.8* |
cf402bbf PZ |
83 | # there is no devel package for now and the dir is part of filesystem |
84 | %{_pkgconfigdir}/usbutils.pc |