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