fxload-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. Name: fxload
  2. Summary: A helper program to download firmware into FX and FX2 EZ-USB devices
  3. Summary(ja): FX/FX2 EZ-USB デバイスにファームウェアをダウンロードするプログラム
  4. Version: 2008_10_13
  5. Release: 1%{?_dist_release}
  6. Group: system
  7. License: GPLv2+
  8. URL: http://linux-hotplug.sourceforge.net/
  9. Source0: fxload-%{version}-noa3load.tar.gz
  10. # The above file is derived from:
  11. # http://downloads.sourceforge.net/project/linux-hotplug/fxload/2008_10_13/fxload-2008_10_13.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 2008_10_13
  17. Source1: fxload-generate-tarball.sh
  18. Patch0: fxload-noa3load.patch
  19. Patch1: fxload-ldflags.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. %debug_package
  35. %prep
  36. %setup -q
  37. %patch0 -p1 -b .fxload-noa3load
  38. %patch1 -p1 -b .ldflags
  39. %build
  40. %{make_build} CFLAGS="$RPM_OPT_FLAGS -fPIE" LDFLAGS="$RPM_LD_FLAGS -pie"
  41. %install
  42. rm -rf %{buildroot}
  43. mkdir -p -m 755 %{buildroot}/sbin
  44. install -m 755 fxload %{buildroot}/sbin
  45. mkdir -p -m 755 %{buildroot}/%{_mandir}/man8/
  46. install -m 644 fxload.8 %{buildroot}/%{_mandir}/man8/
  47. %clean
  48. rm -rf %{buildroot}
  49. %files
  50. %defattr(0644,root,root,0755)
  51. %license COPYING
  52. %doc README.txt
  53. %attr(0755, root, root) /sbin/fxload
  54. %{_mandir}/*/*
  55. %changelog
  56. * Wed Mar 10 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2008_10_13-1
  57. - new upstream release.
  58. * Sun Aug 24 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2002_04_11-9
  59. - rebuild with VineSeed environment
  60. * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> - 2002_04_11-8
  61. - rebuilt with rpm-4.8.1-3
  62. * Thu Feb 19 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2002_04_11-7
  63. - initial build for Vine Linux
  64. * Sat Feb 9 2008 Stephen Warren <s-t-rhbugzilla@wwwdotorg.org> - 2002_04_11-7
  65. - Bump version to rebuild with gcc-4.3
  66. * Fri Nov 16 2007 Stephen Warren <s-t-rhbugzilla@wwwdotorg.org> - 2002_04_11-6
  67. - Rework the spec file formatting to match templates from rpmdev
  68. - Be explicit about file attributes, just in case
  69. * Fri Nov 16 2007 Stephen Warren <s-t-rhbugzilla@wwwdotorg.org> - 2002_04_11-5
  70. - Updates after reading packaging guide-lines more thoroughly:
  71. - Make license version more explicit
  72. - Add generate-tarball.sh, and associated comments
  73. - Added BuildRequires on kernel-headers
  74. - Added COPYING as a doc
  75. - Use dollar v.s. percent macros more consitently
  76. * Thu Nov 15 2007 Stephen Warren <s-t-rhbugzilla@wwwdotorg.org> - 2002_04_11-4
  77. - Repackage the source tarball to remove a3load.hex
  78. - Added instructions to spec file on how to do the above
  79. - Remove reference to a3load.hex from the man page too
  80. * Thu Nov 15 2007 Stephen Warren <s-t-rhbugzilla@wwwdotorg.org> - 2002_04_11-3
  81. - Update BuildRoot per Fedora wiki
  82. - Fixed rpmlint complaint about not cleaning buildroot
  83. - Updated source patch file to match latest kernel file layout
  84. - Add patch to remove reference to non-shipped non-free a3load.hex firmware
  85. * Fri Dec 8 2006 Bart Vanbrabant <bart.vanbrabant@zoeloelip.be> - 2002_04_11-2
  86. - Fixed some rpmlint complaints
  87. - Added patch to fix an include header
  88. - Added dist tag
  89. * Wed Apr 12 2006 Bart Vanbrabant <bart.vanbrabant@zoeloelip.be> - 2002_04_11-1
  90. - First version of fxload spec based on hotplug spec