]> git.pld-linux.org Git - packages/usbutils.git/blame - usbutils.spec
use /lib/hwdata for early boot access
[packages/usbutils.git] / usbutils.spec
CommitLineData
4151b85a 1Summary: Linux USB utilities
7632e44d
ER
2Summary(pl.UTF-8): Linuksowe narzędzia do USB
3Summary(pt_BR.UTF-8): Utilitários Linux USB
4151b85a 4Name: usbutils
a0c31a27 5Version: 006
01497d80 6Release: 3
87413353 7License: GPL v2+
4151b85a 8Group: Applications/System
d30215c2 9Source0: http://www.kernel.org/pub/linux/utils/usb/usbutils/%{name}-%{version}.tar.bz2
a0c31a27 10# Source0-md5: 9d13954981f4adbe3fd02aae6dbfafa9
0ccdd768 11Patch0: hwdata.patch
4f12a1aa 12URL: http://www.linux-usb.org/
b8a227eb
JB
13BuildRequires: autoconf >= 2.60
14BuildRequires: automake >= 1:1.9
01497d80 15BuildRequires: hwdata >= 0.243-2
b8ee8dda 16BuildRequires: libtool
b8a227eb 17BuildRequires: libusb-devel >= 1.0.0
1e351450 18BuildRequires: pkgconfig
87413353 19BuildRequires: zlib-devel
01497d80 20Requires: hwdata >= 0.243-2
4151b85a 21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
01497d80 23%define hwdatadir /lib/hwdata
4f12a1aa 24
0d2e5c75 25%description
4151b85a 26usbutils contains a utility for inspecting devices connected to the
27USB 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
29kernel.
0d2e5c75 30
6e35b378
JR
31%description -l pl.UTF-8
32Pakiet usbutils zawiera narzędzie do przeglądania urządzeń
33podłączonych do szyny USB. Wymaga jądra w werji 2.3.15 lub nowszej (z
34obsługą interfejsu /proc/bus/usb) lub jądra 2.2 z PLD.
35fd7d7c 35
6e35b378
JR
36%description -l pt_BR.UTF-8
37Este pacote contém utilitários para inspecionar dispositivos
06e9c78b 38conectados 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
45if [ usb.ids -nt %{hwdatadir}/usb.ids ]; then
46 : usb.ids needs to be updated
47 exit 1
48fi
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
63rm -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
72rm -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
This page took 0.083432 seconds and 4 git commands to generate.