fxload-vl.spec 3.7 KB

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