File midisport-firmware.spec of Package midisport-firmware

#
# spec file for package midisport-firmware
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           midisport-firmware
Version:        1.2
Release:        0
Summary:        Firmware Data for M-Audio Midisport Devices
License:        GPL-2.0-or-later
Group:          Hardware/Other
URL:            http://usb-midi-fw.sourceforge.net/
Source:         %{name}-%{version}.tar.bz2
Source1:        midisport-firmware.rules
Patch0:         midisport-firmware-1.2-udevadm.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  fxload
BuildRequires:  udev
BuildRequires:  config(systemd) 
Requires:       fxload
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

%prep
%autosetup -p1

%build
autoreconf -fi
%configure
%make_build

%install
%make_install
rm $RPM_BUILD_ROOT/etc/udev/rules.d/42-midisport-firmware.rules
mkdir -p %{buildroot}%{_udevrulesdir}
install -c -m 0644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/42-midisport-firmware.rules

%files
%license LICENSE
%doc README Changelog
%{_udevrulesdir}*
%{_datadir}/usb

%changelog
openSUSE Build Service is sponsored by