fxload-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. Name: fxload
  2. Version: 2002_04_11
  3. Release: 9%{?_dist_release}
  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. * Sun Aug 24 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2002_04_11-9
  56. - rebuild with VineSeed environment
  57. * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> - 2002_04_11-8
  58. - rebuilt with rpm-4.8.1-3
  59. * Thu Feb 19 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2002_04_11-7
  60. - initial build for Vine Linux
  61. * Sat Feb 9 2008 Stephen Warren <s-t-rhbugzilla@wwwdotorg.org> - 2002_04_11-7
  62. - Bump version to rebuild with gcc-4.3
  63. * Fri Nov 16 2007 Stephen Warren <s-t-rhbugzilla@wwwdotorg.org> - 2002_04_11-6
  64. - Rework the spec file formatting to match templates from rpmdev
  65. - Be explicit about file attributes, just in case
  66. * Fri Nov 16 2007 Stephen Warren <s-t-rhbugzilla@wwwdotorg.org> - 2002_04_11-5
  67. - Updates after reading packaging guide-lines more thoroughly:
  68. - Make license version more explicit
  69. - Add generate-tarball.sh, and associated comments
  70. - Added BuildRequires on kernel-headers
  71. - Added COPYING as a doc
  72. - Use dollar v.s. percent macros more consitently
  73. * Thu Nov 15 2007 Stephen Warren <s-t-rhbugzilla@wwwdotorg.org> - 2002_04_11-4
  74. - Repackage the source tarball to remove a3load.hex
  75. - Added instructions to spec file on how to do the above
  76. - Remove reference to a3load.hex from the man page too
  77. * Thu Nov 15 2007 Stephen Warren <s-t-rhbugzilla@wwwdotorg.org> - 2002_04_11-3
  78. - Update BuildRoot per Fedora wiki
  79. - Fixed rpmlint complaint about not cleaning buildroot
  80. - Updated source patch file to match latest kernel file layout
  81. - Add patch to remove reference to non-shipped non-free a3load.hex firmware
  82. * Fri Dec 8 2006 Bart Vanbrabant <bart.vanbrabant@zoeloelip.be> - 2002_04_11-2
  83. - Fixed some rpmlint complaints
  84. - Added patch to fix an include header
  85. - Added dist tag
  86. * Wed Apr 12 2006 Bart Vanbrabant <bart.vanbrabant@zoeloelip.be> - 2002_04_11-1
  87. - First version of fxload spec based on hotplug spec