fxload-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. Name: fxload
  2. Version: 2002_04_11
  3. Release: 7%{?dist}
  4. Summary: A helper program to download firmware into FX and FX2 EZ-USB devices
  5. Summary(ja): FX/FX2 EZ-USB デバイスにファームウェアをダウンロードするプログラム
  6. Group: System Environment/Kernel
  7. License: GPLv2+
  8. URL: http://linux-hotplug.sourceforge.net/
  9. Source0: fxload-2002_04_11-noa3load.tar.gz
  10. # The above file is derived from:
  11. # http://downloads.sourceforge.net/linux-hotplug/fxload-2002_04_11.tar.gz
  12. # This file contains code that is copyright Cypress Semiconductor Inc,
  13. # and cannot be distributed. Therefore we use this script to remove the
  14. # copyright code before shipping it. Download the upstream tarball and
  15. # invoke this script while in the tarball's directory:
  16. # ./fxload-generate-tarball.sh 2002_04_11
  17. Source1: fxload-generate-tarball.sh
  18. Patch0: fxload-header.patch
  19. Patch1: fxload-noa3load.patch
  20. BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
  21. BuildRequires: kernel-headers
  22. Requires: udev
  23. Conflicts: hotplug-gtk hotplug
  24. %description
  25. This program is conveniently able to download firmware into FX and FX2
  26. EZ-USB devices, as well as the original AnchorChips EZ-USB. It is
  27. intended to be invoked by udev scripts when the unprogrammed device
  28. appears on the bus.
  29. %description -l ja
  30. このプログラムを使って、EZ-USB FX / FX2 デバイス、およびオリジナルの
  31. AnchorChips EZ-USB にファームウェアをダウンロードすることができます。
  32. 本プログラムは、バス上にデバイスが検出された時に udev スクリプト経由で
  33. 起動されるものです。
  34. %prep
  35. %setup -q
  36. %patch0 -p0 -b .fxload-header
  37. %patch1 -p1 -b .fxload-noa3load
  38. %build
  39. make
  40. %install
  41. rm -rf %{buildroot}
  42. mkdir -p -m 755 %{buildroot}/sbin
  43. install -m 755 fxload %{buildroot}/sbin
  44. mkdir -p -m 755 %{buildroot}/%{_mandir}/man8/
  45. install -m 644 fxload.8 %{buildroot}/%{_mandir}/man8/
  46. %clean
  47. rm -rf %{buildroot}
  48. %files
  49. %defattr(0644,root,root,0755)
  50. %doc COPYING
  51. %doc README.txt
  52. %attr(0755, root, root) /sbin/fxload
  53. %{_mandir}/*/*
  54. %changelog
  55. * Thu Feb 19 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2002_04_11-7
  56. - initial build for Vine Linux
  57. * Sat Feb 9 2008 Stephen Warren <s-t-rhbugzilla@wwwdotorg.org> - 2002_04_11-7
  58. - Bump version to rebuild with gcc-4.3
  59. * Sat Nov 16 2007 Stephen Warren <s-t-rhbugzilla@wwwdotorg.org> - 2002_04_11-6
  60. - Rework the spec file formatting to match templates from rpmdev
  61. - Be explicit about file attributes, just in case
  62. * Sat Nov 16 2007 Stephen Warren <s-t-rhbugzilla@wwwdotorg.org> - 2002_04_11-5
  63. - Updates after reading packaging guide-lines more thoroughly:
  64. - Make license version more explicit
  65. - Add generate-tarball.sh, and associated comments
  66. - Added BuildRequires on kernel-headers
  67. - Added COPYING as a doc
  68. - Use dollar v.s. percent macros more consitently
  69. * Fri Nov 15 2007 Stephen Warren <s-t-rhbugzilla@wwwdotorg.org> - 2002_04_11-4
  70. - Repackage the source tarball to remove a3load.hex
  71. - Added instructions to spec file on how to do the above
  72. - Remove reference to a3load.hex from the man page too
  73. * Thu Nov 15 2007 Stephen Warren <s-t-rhbugzilla@wwwdotorg.org> - 2002_04_11-3
  74. - Update BuildRoot per Fedora wiki
  75. - Fixed rpmlint complaint about not cleaning buildroot
  76. - Updated source patch file to match latest kernel file layout
  77. - Add patch to remove reference to non-shipped non-free a3load.hex firmware
  78. * Fri Dec 8 2006 Bart Vanbrabant <bart.vanbrabant@zoeloelip.be> - 2002_04_11-2
  79. - Fixed some rpmlint complaints
  80. - Added patch to fix an include header
  81. - Added dist tag
  82. * Wed Apr 12 2006 Bart Vanbrabant <bart.vanbrabant@zoeloelip.be> - 2002_04_11-1
  83. - First version of fxload spec based on hotplug spec