File midisport-firmware.spec of Package midisport-firmware

#
# spec file for package midisport-firmware (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:           midisport-firmware
BuildRequires:  fxload udev autoconf automake
Url:            http://usb-midi-fw.sourceforge.net/
Summary:        Firmware Data for M-Audio Midisport Devices
Version:        1.2
Release:        135
License:        GPL-2.0+
Group:          Hardware/Other
Requires:       fxload
AutoReqProv:    on
Source:         %{name}-%{version}.tar.bz2
Source1:        midisport-firmware.rules
Patch:          midisport-firmware-1.2-udevadm.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
This package contains the firmware and scripts for M-Audio/Midiman
MidiSport USB MIDI interfaces.

Supported devices: - MidiSport 1x1

- MidiSport 2x2

- MidiSport 4x4

- MidiSport 8x8

- MidiSport Uno

- Keystation

- Oxygen

- Radium



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

%prep
%setup -q 
%if %suse_version > 1100
%patch
%endif

%build
autoreconf -fi
%configure
make

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

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

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

%changelog
* Fri Jan 16 2009 tiwai@suse.de
- call udevadm if available
- clean up old 10.2 stuff
* Mon Oct 22 2007 tiwai@suse.de
- fix udev rules to use ENV{PRODUCT} instead of SYSFS{*} (#334127)
* Tue Jul 31 2007 tiwai@suse.de
- fixed typo in spec file.
* 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
- initial version: 1.2.
  using own udev script to fix the invokation
openSUSE Build Service is sponsored by