usbutils-vl.spec 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. %define name usbutils
  2. %define version 0.86
  3. %define release 2%{?_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. * Wed Oct 06 2010 Shu KONNO <owa@bg.wakwak.com> 0.86-2
  49. - rebuilt with rpm-4.8.1 for pkg-config
  50. * Sun Oct 11 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.86-1
  51. - new upstream release
  52. - added %configure --sbindir=%{_sbindir}
  53. * Thu Jul 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.84-1vl5
  54. - new upstream release
  55. - changed %files
  56. - added Patch1
  57. - added autoreconf before %build
  58. * Sun Jun 14 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.82-1vl5
  59. - new upstream release
  60. - dropt Patch1
  61. - changed License: GPLv2+
  62. - added BuildRequires: libtool
  63. * Mon Oct 13 2008 Shu KONNO <owa@bg.wakwak.com> 0.72-1vl5
  64. - applied new versioning policy, spec in utf-8
  65. * Sat Jul 14 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.72-0vl1
  66. - initial build for Vine Linux