package created by autospec [release 1.2-1mamba;Tue Feb 21 2012]

This commit is contained in:
Silvan Calarco 2024-01-06 07:08:34 +01:00
parent 57706afe5e
commit 86d35c0ac9
4 changed files with 81 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# midisport-firmware # midisport-firmware
Firmware loaders for M-Audio/Midiman USB MIDI and Audio devices.

View File

@ -0,0 +1,11 @@
--- midisport-firmware-1.2.orig/configure 2012-02-21 00:52:14.021031124 +0100
+++ midisport-firmware-1.2/configure 2006-03-05 22:01:49.000000000 +0100
@@ -1737,7 +1737,7 @@
echo "$as_me:$LINENO: checking for udev version" >&5
echo $ECHO_N "checking for udev version... $ECHO_C" >&6
-udev_ver=`udevinfo -V | awk '{ print $3 }'`
+udev_ver=`udevadm -V`
if test -n "$udev_ver"; then
echo "$as_me:$LINENO: result: $udev_ver" >&5
echo "${ECHO_T}$udev_ver" >&6

View File

@ -0,0 +1,19 @@
# midisport-firmware.rules - udev rules for loading firmware into MidiSport devices
# MidiSport 1x1
ACTION=="add", SUBSYSTEM=="usb*", ATTRS{idVendor}=="0763", ATTRS{idProduct}=="1010", RUN+="/usr/sbin/fxload -s /usr/share/usb/maudio/MidiSportLoader.ihx -I /usr/share/usb/maudio/MidiSport1x1.ihx -D %N"
# MidiSport 2x2
ACTION=="add", SUBSYSTEM=="usb*", ATTRS{idVendor}=="0763", ATTRS{idProduct}=="1001", RUN+="/usr/sbin/fxload -s /usr/share/usb/maudio/MidiSportLoader.ihx -I /usr/share/usb/maudio/MidiSport2x2.ihx -D %N"
# KeyStation
ACTION=="add", SUBSYSTEM=="usb*", ATTRS{idVendor}=="0763", ATTRS{idProduct}=="1014", RUN+="/usr/sbin/fxload -s /usr/share/usb/maudio/MidiSportLoader.ihx -I /usr/share/usb/maudio/MidiSportKS.ihx -D %N"
# MidiSport 4x4
ACTION=="add", SUBSYSTEM=="usb*", ATTRS{idVendor}=="0763", ATTRS{idProduct}=="1020", RUN+="/usr/sbin/fxload -s /usr/share/usb/maudio/MidiSportLoader.ihx -I /usr/share/usb/maudio/MidiSport4x4.ihx -D %N"
# MidiSport 8x8
ACTION=="add", SUBSYSTEM=="usb*", ATTRS{idVendor}=="0763", ATTRS{idProduct}=="1031", ATTRS{bcdDevice}=="0110", RUN+="/usr/sbin/fxload -s /usr/share/usb/maudio/MidiSportLoader.ihx -I /usr/share/usb/maudio/MidiSport8x8-2.10.ihx -D %N"
ACTION=="add", SUBSYSTEM=="usb*", ATTRS{idVendor}=="0763", ATTRS{idProduct}=="1031", ATTRS{bcdDevice}=="0121", RUN+="/usr/sbin/fxload -s /usr/share/usb/maudio/MidiSportLoader.ihx -I /usr/share/usb/maudio/MidiSport8x8-2.21.ihx -D %N"
# vim: ft=conf

49
midisport-firmware.spec Normal file
View File

@ -0,0 +1,49 @@
Name: midisport-firmware
Version: 1.2
Release: 1mamba
Summary: Firmware loaders for M-Audio/Midiman USB MIDI and Audio devices
Group: System/Kernel and Hardware
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://sourceforge.net/projects/usb-midi-fw/
Source: http://downloads.sourceforge.net/project/usb-midi-fw/midisport-firmware/%{version}/midisport-firmware-%{version}.tar.gz
Source1: midisport-firmware-udev-rules
Patch0: %{name}-1.2-udev.patch
License: GPL, Distributable
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: fxload
Requires: fxload
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Firmware loaders for M-Audio/Midiman USB MIDI and Audio devices.
%prep
%setup -q
%patch0 -p1
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/udev/rules.d/98-midisport-firmware.rules
rm -f %{buildroot}%{_sysconfdir}/udev/rules.d/42-midisport-firmware.rules
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_sysconfdir}/udev/rules.d/98-midisport-firmware.rules
%dir %{_datadir}/usb/maudio
%{_datadir}/usb/maudio/*.ihx
%doc LICENSE
%changelog
* Tue Feb 21 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2-1mamba
- package created by autospec