usbutils-vl.spec 2.0 KB

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