]> git.pld-linux.org Git - packages/usbutils.git/blob - usbutils.spec
- better solution (automake --force breaks things)
[packages/usbutils.git] / usbutils.spec
1 Summary:        Linux USB utilities
2 Summary(pl):    Linuksowe narzêdzia do USB
3 Name:           usbutils
4 Version:        0.11
5 Release:        2
6 License:        GPL
7 Group:          Applications/System
8 Source0:        http://usb.in.tum.de/download/usbutils/%{name}-%{version}.tar.gz
9 Patch0:         %{name}-no_external_getopt.patch
10 Patch1:         %{name}-hwdata_in_misc.patch
11 Patch2:         %{name}-ids.patch
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  libtool
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 usbutils contains a utility for inspecting devices connected to the
19 USB bus. It requires a Linux kernel version 2.3.15 or newer
20 (supporting the '/proc/bus/usb' interface) or patched PLD's
21 2.2 kernel.
22
23 %description -l pl
24 Pakiet usbutils zawiera narzêdzie do przegl±dania urz±dzeñ
25 pod³±czonych do szyny USB. Wymaga j±dra w werji 2.3.15 lub nowszej (z
26 obs³ug± interfejsu /proc/bus/usb) lub j±dra 2.2 z PLD.
27
28 %prep
29 %setup -q
30 %patch0 -p1
31 %patch1 -p1
32 %patch2 -p1
33
34 %build
35 rm -f missing
36 %{__libtoolize}
37 %{__aclocal}
38 %{__autoconf}
39 %{__automake}
40 cd libusb
41 rm -f missing
42 %{__aclocal}
43 %{__autoconf}
44 # don't use --force here!
45 automake -a -c --foreign
46 cd ..
47 %configure
48 %{__make}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} install DESTDIR=$RPM_BUILD_ROOT
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc AUTHORS ChangeLog NEWS README
61 %attr(755,root,root) %{_sbindir}/*
62 %{_mandir}/man8/*
63 %{_datadir}/misc/usb.ids
This page took 0.03429 seconds and 3 git commands to generate.