f1d540
Name: fxload
f1d540
Version: 2008_10_13
f1d540
Release: 10%{?dist}
f1d540
Summary: A helper program to download firmware into FX and FX2 EZ-USB devices
f1d540
f1d540
License: GPLv2+
f1d540
URL: http://linux-hotplug.sourceforge.net/
f1d540
Source0: fxload-%{version}-noa3load.tar.gz
f1d540
# The above file is derived from:
f1d540
# http://downloads.sourceforge.net/project/linux-hotplug/fxload/2008_10_13/fxload-2008_10_13.tar.gz
f1d540
# This file contains code that is copyright Cypress Semiconductor Inc,
f1d540
# and cannot be distributed. Therefore we use this script to remove the
f1d540
# copyright code before shipping it. Download the upstream tarball and
f1d540
# invoke this script while in the tarball's directory:
f1d540
# ./fxload-generate-tarball.sh 2008_10_13
f1d540
Source1: fxload-generate-tarball.sh
f1d540
Patch0: fxload-noa3load.patch
f1d540
Patch1: fxload-cflags-ldflags.patch
f1d540
f1d540
BuildRequires: gcc kernel-headers
f1d540
Requires: udev
f1d540
Conflicts: hotplug-gtk hotplug
f1d540
f1d540
%description 
f1d540
This program is conveniently able to download firmware into FX and FX2
f1d540
EZ-USB devices, as well as the original AnchorChips EZ-USB.  It is
f1d540
intended to be invoked by udev scripts when the unprogrammed device
f1d540
appears on the bus.
f1d540
f1d540
%prep
f1d540
%setup -q 
f1d540
%patch0 -p1 -b .fxload-noa3load
f1d540
%patch1 -p1 -b .cflags
f1d540
f1d540
%build 
f1d540
make CC=gcc CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
f1d540
f1d540
%install
f1d540
mkdir -p -m 755 %{buildroot}/sbin
f1d540
install -m 755 fxload %{buildroot}/sbin
f1d540
mkdir -p -m 755 %{buildroot}/%{_mandir}/man8/
f1d540
install -m 644 fxload.8 %{buildroot}/%{_mandir}/man8/
f1d540
f1d540
%files
f1d540
%defattr(0644,root,root,0755)
f1d540
%doc COPYING
f1d540
%doc README.txt
f1d540
%attr(0755, root, root) /sbin/fxload
f1d540
%{_mandir}/*/*
f1d540
f1d540
%changelog
f1d540
* Sun Feb 25 2018 Charles R. Anderson <cra@wpi.edu> - 2008_10_13-10
f1d540
- Patch to apply CFLAGS/LDFLAGS to final link so RPM_OPT_FLAGS are picked up (rhbz#1548426)
f1d540
- Use CC=gcc explicitly
f1d540
- Regenerate fxload-noa3load.patch
f1d540
f1d540
* Sun Feb 18 2018 Charles R. Anderson <cra@wpi.edu> - 2008_10_13-9
f1d540
- add BR gcc
f1d540
- remove Group:, BuildRoot: and rm -rf in install section
f1d540
f1d540
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2008_10_13-8
f1d540
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f1d540
f1d540
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2008_10_13-7
f1d540
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f1d540
f1d540
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2008_10_13-6
f1d540
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f1d540
f1d540
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2008_10_13-5
f1d540
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f1d540
f1d540
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2008_10_13-4
f1d540
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f1d540
f1d540
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2008_10_13-3
f1d540
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f1d540
f1d540
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2008_10_13-2
f1d540
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f1d540
f1d540
* Mon Jun 16 2014 Charles R. Anderson <cra@wpi.edu> - 2008_10_13-1
f1d540
- update to 2008_10_13 to support Cypress EZ-USB FX2LP parts (rhbz#1102654)
f1d540
f1d540
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2002_04_11-15
f1d540
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f1d540
f1d540
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2002_04_11-14
f1d540
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f1d540
f1d540
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2002_04_11-13
f1d540
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f1d540
f1d540
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2002_04_11-12
f1d540
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f1d540
f1d540
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2002_04_11-11
f1d540
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f1d540
f1d540
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2002_04_11-10
f1d540
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f1d540
f1d540
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2002_04_11-9
f1d540
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f1d540
f1d540
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2002_04_11-8
f1d540
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f1d540
f1d540
* Sat Feb 9 2008 Stephen Warren <s-t-rhbugzilla@wwwdotorg.org> - 2002_04_11-7
f1d540
- Bump version to rebuild with gcc-4.3
f1d540
f1d540
* Sat Nov 17 2007 Stephen Warren <s-t-rhbugzilla@wwwdotorg.org> - 2002_04_11-6
f1d540
- Rework the spec file formatting to match templates from rpmdev
f1d540
- Be explicit about file attributes, just in case
f1d540
f1d540
* Sat Nov 17 2007 Stephen Warren <s-t-rhbugzilla@wwwdotorg.org> - 2002_04_11-5
f1d540
- Updates after reading packaging guide-lines more thoroughly:
f1d540
- Make license version more explicit
f1d540
- Add generate-tarball.sh, and associated comments
f1d540
- Added BuildRequires on kernel-headers
f1d540
- Added COPYING as a doc
f1d540
- Use dollar v.s. percent macros more consitently
f1d540
f1d540
* Fri Nov 16 2007 Stephen Warren <s-t-rhbugzilla@wwwdotorg.org> - 2002_04_11-4
f1d540
- Repackage the source tarball to remove a3load.hex
f1d540
- Added instructions to spec file on how to do the above
f1d540
- Remove reference to a3load.hex from the man page too
f1d540
f1d540
* Thu Nov 15 2007 Stephen Warren <s-t-rhbugzilla@wwwdotorg.org> - 2002_04_11-3
f1d540
- Update BuildRoot per Fedora wiki
f1d540
- Fixed rpmlint complaint about not cleaning buildroot
f1d540
- Updated source patch file to match latest kernel file layout
f1d540
- Add patch to remove reference to non-shipped non-free a3load.hex firmware
f1d540
f1d540
* Fri Dec 8 2006 Bart Vanbrabant <bart.vanbrabant@zoeloelip.be> - 2002_04_11-2
f1d540
- Fixed some rpmlint complaints
f1d540
- Added patch to fix an include header
f1d540
- Added dist tag
f1d540
f1d540
* Wed Apr 12 2006 Bart Vanbrabant <bart.vanbrabant@zoeloelip.be> - 2002_04_11-1
f1d540
- First version of fxload spec based on hotplug spec
f1d540