File madfuload.spec of Package madfuload

#
# spec file for package madfuload (Version 1.2)
#
# Copyright (c) 2009 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/
#

# norootforbuild


Name:           madfuload
BuildRequires:  udev
Url:            http://usb-midi-fw.sourceforge.net/
Summary:        Firmware Loader for M-Audio USB Audio Devices
Version:        1.2
Release:        141
License:        GPL v2 or later; Other uncritical OpenSource License
Group:          Hardware/Other
AutoReqProv:    on
Source:         %{name}-%{version}.tar.bz2
Source1:        madfuload.rules
Patch:          madfuload-1.2-udevadm.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package contains the firmware loader and the firmware data for
   M-Audio USB audio devices using DFU technology.  The supported
   devices are: - Sonica

- Ozone

- MobilePre USB (some newer models work without the loader)

- Transit



Authors:
--------
    Clemens Ladisch <clemens@ladisch.de>

%prep
%setup
%patch

%build
autoreconf -fi
%configure
make

%install
%makeinstall
rm -f $RPM_BUILD_ROOT/etc/udev/rules.d/42-madfuload.rules
install -c -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/etc/udev/rules.d/42-madfuload.rules

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc README Changelog LICENSE
/etc/udev
%{_datadir}/usb
%{_sbindir}/*

%changelog
* Fri Jan 16 2009 tiwai@suse.de
- call udevadm if available
- clean up old 10.2 stuff
* Fri Nov 23 2007 tiwai@suse.de
- fix udev rules to use ENV{PRODUCT} instead of SYSFS{*} (#334127)
* Mon Jul 30 2007 tiwai@suse.de
- fixed udev rules for the recent 10.3 kernel.
  keep the old config for older kernels.
* Fri Aug 04 2006 tiwai@suse.de
- fix udev configuration to use SUBSYSTEM=usb_device.
* Fri Aug 04 2006 tiwai@suse.de
- initial version: 1.2
  using a hackish delayed invokation in the udev script
openSUSE Build Service is sponsored by