source: projects/specs/trunk/u/usbutils/usbutils-vl.spec @ 521

Revision 521, 2.0 KB checked in by daisuke, 14 years ago (diff)

import VineSeed package specs

Line 
1%define name    usbutils
2%define version 0.86
3%define release 1%{?_dist_release}
4
5Summary:        USB related utilities.
6Summary(ja):    USB 用ユーティリティ
7Name:           %{name}
8Version:        %{version}
9Release:        %{release}
10Source0:        %{name}-%{version}.tar.gz
11Patch1:         usbutils-0.86-hwdata.patch
12License:        GPLv2+
13Group:          Applications/System
14URL:            http://www.linux-usb.org/
15
16Requires:       hwdata
17BuildRequires:  libtool, libusb-devel >= 0.1.8
18BuildRoot:      %{_tmppath}/%{name}-%{version}-root
19
20
21%description
22The usbutils package contains utilities for inspecting devices
23connected to the USB.
24
25%description -l ja
26このパッケージには USB に接続された各種デバイスの状態を見る為の
27ユーティリティが収められています.
28
29
30%prep
31
32%setup -q
33%patch1 -p1 -b .hwdata
34autoreconf
35
36%build
37%configure --sbindir=%{_sbindir}
38make %{?_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
50sed -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* Sun Oct 11 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.86-1
65- new upstream release
66- added %configure --sbindir=%{_sbindir}
67
68* Thu Jul 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.84-1vl5
69- new upstream release
70- changed %files
71- added Patch1
72- added autoreconf before %build
73
74* Sun Jun 14 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.82-1vl5
75- new upstream release
76- dropt Patch1
77- changed License: GPLv2+
78- added BuildRequires:  libtool
79
80* Mon Oct 13 2008 Shu KONNO <owa@bg.wakwak.com> 0.72-1vl5
81- applied new versioning policy, spec in utf-8
82
83* Sat Jul 14 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.72-0vl1
84- initial build for Vine Linux
Note: See TracBrowser for help on using the repository browser.