1 | %define name usbutils |
---|
2 | %define version 0.86 |
---|
3 | %define release 2%{?_dist_release} |
---|
4 | |
---|
5 | Summary: USB related utilities. |
---|
6 | Summary(ja): USB 用ユーティリティ |
---|
7 | Name: %{name} |
---|
8 | Version: %{version} |
---|
9 | Release: %{release} |
---|
10 | Source0: %{name}-%{version}.tar.gz |
---|
11 | Patch1: usbutils-0.86-hwdata.patch |
---|
12 | License: GPLv2+ |
---|
13 | Group: Applications/System |
---|
14 | URL: http://www.linux-usb.org/ |
---|
15 | |
---|
16 | Requires: hwdata |
---|
17 | BuildRequires: libtool, libusb-devel >= 0.1.8 |
---|
18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
19 | |
---|
20 | |
---|
21 | %description |
---|
22 | The usbutils package contains utilities for inspecting devices |
---|
23 | connected to the USB. |
---|
24 | |
---|
25 | %description -l ja |
---|
26 | このパッケージには USB に接続された各種デバイスの状態を見る為の |
---|
27 | ユーティリティが収められています. |
---|
28 | |
---|
29 | |
---|
30 | %prep |
---|
31 | |
---|
32 | %setup -q |
---|
33 | %patch1 -p1 -b .hwdata |
---|
34 | autoreconf |
---|
35 | |
---|
36 | %build |
---|
37 | %configure --sbindir=%{_sbindir} |
---|
38 | make %{?_smp_mflags} |
---|
39 | |
---|
40 | |
---|
41 | %install |
---|
42 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
43 | %makeinstall |
---|
44 | |
---|
45 | # remove unnecessary file. |
---|
46 | %{__rm} -rf ${RPM_BUILD_ROOT}/%{_datadir}/usb.ids* |
---|
47 | %{__rm} -rf ${RPM_BUILD_ROOT}/%{_sbindir}/update-usbids.sh |
---|
48 | |
---|
49 | # usb.ids is shipped in hwdata; nuke and adjust .pc file |
---|
50 | sed -i 's|usbids=/usr/share/usb.ids|usbids=/usr/share/hwdata/usb.ids|' $RPM_BUILD_ROOT%{_datadir}/pkgconfig/usbutils.pc |
---|
51 | |
---|
52 | %clean |
---|
53 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
54 | |
---|
55 | %files |
---|
56 | %defattr(-,root,root,-) |
---|
57 | %{_mandir}/*/* |
---|
58 | %{_sbindir}/* |
---|
59 | %{_bindir}/* |
---|
60 | %{_datadir}/pkgconfig/usbutils.pc |
---|
61 | %doc AUTHORS COPYING ChangeLog NEWS README |
---|
62 | |
---|
63 | %changelog |
---|
64 | * Wed Oct 06 2010 Shu KONNO <owa@bg.wakwak.com> 0.86-2 |
---|
65 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
66 | |
---|
67 | * Sun Oct 11 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.86-1 |
---|
68 | - new upstream release |
---|
69 | - added %configure --sbindir=%{_sbindir} |
---|
70 | |
---|
71 | * Thu Jul 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.84-1vl5 |
---|
72 | - new upstream release |
---|
73 | - changed %files |
---|
74 | - added Patch1 |
---|
75 | - added autoreconf before %build |
---|
76 | |
---|
77 | * Sun Jun 14 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.82-1vl5 |
---|
78 | - new upstream release |
---|
79 | - dropt Patch1 |
---|
80 | - changed License: GPLv2+ |
---|
81 | - added BuildRequires: libtool |
---|
82 | |
---|
83 | * Mon Oct 13 2008 Shu KONNO <owa@bg.wakwak.com> 0.72-1vl5 |
---|
84 | - applied new versioning policy, spec in utf-8 |
---|
85 | |
---|
86 | * Sat Jul 14 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.72-0vl1 |
---|
87 | - initial build for Vine Linux |
---|