File madfuload.spec of Package madfuload

#
# spec file for package madfuload (Version 1.2)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# 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:        77
License:        GPL v2 or later; Other uncritical OpenSource License
Group:          Hardware/Other
AutoReqProv:    on
Source:         %{name}-%{version}.tar.bz2
Source1:        madfuload.rules
Source2:        madfuload-old.rules
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 -n %{name}-%{version}
%{?suse_update_config:%{suse_update_config -f}}

%build
autoreconf -fi
%configure
make

%install
make DESTDIR="$RPM_BUILD_ROOT" install
rm -f $RPM_BUILD_ROOT/etc/udev/rules.d/42-madfuload.rules
%if %suse_version > 1020
install -c -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/etc/udev/rules.d/42-madfuload.rules
%else
install -c -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/etc/udev/rules.d/42-madfuload.rules
%endif

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

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

%changelog
* 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