File fxload.spec of Package fxload

#
# spec file for package fxload
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           fxload
Url:            http://linux-hotplug.sf.net/
Version:        2008_10_13
Release:        0
Summary:        Download Firmware into USB FX and FX2 Devices
License:        LGPL-2.1+
Group:          System/Kernel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        http://mesh.dl.sourceforge.net/sourceforge/linux-hotplug/fxload-2008_10_13.tar.bz2
Patch0:         fxload-2002_04_11.patch
ExclusiveArch:  %ix86 ppc ppc64 ia64 %sparc x86_64 %arm

%description
This program can download firmware into FX and FX2 EZ-USB devices as
well as the original AnchorChips EZ-USB.  It is intended to be invoked
by hotplug scripts when the unprogrammed device appears on the bus.

Primarily as an aid for developers, this can also be used to update
firmware on devices that boot from I2C serial EEPROMs.	For that use,
as well as downloading firmware to all other off-chip memory, a second
stage loader must first be downloaded.



Authors:
--------
    David Brownell <dbrownell@users.sourceforge.net>

%prep
%setup -q
%patch0 -p1

%build
make CC="%__cc" CFLAGS="$RPM_OPT_FLAGS -Wall -g"

%install
%make_install
#UsrMerge
mkdir %{buildroot}/sbin
ln -sf %{_sbindir}/fxload %{buildroot}/sbin
#EndUsrMere

%files
%defattr(-,root,root)
#UsrMerge
/sbin/*
#EndUsrMerge
%attr(755,root,root) %{_sbindir}
%{_mandir}/man?/*
%dir /usr/share/usb
/usr/share/usb/a3load.hex
%doc COPYING README.txt

%changelog
openSUSE Build Service is sponsored by