From 86d35c0ac9a1cc75ecc8286cda837094534c6bc6 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:08:34 +0100 Subject: [PATCH] package created by autospec [release 1.2-1mamba;Tue Feb 21 2012] --- README.md | 2 ++ midisport-firmware-1.2-udev.patch | 11 +++++++ midisport-firmware-udev-rules | 19 ++++++++++++ midisport-firmware.spec | 49 +++++++++++++++++++++++++++++++ 4 files changed, 81 insertions(+) create mode 100644 midisport-firmware-1.2-udev.patch create mode 100644 midisport-firmware-udev-rules create mode 100644 midisport-firmware.spec diff --git a/README.md b/README.md index 4a9f0f5..e27ef2a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # midisport-firmware +Firmware loaders for M-Audio/Midiman USB MIDI and Audio devices. + diff --git a/midisport-firmware-1.2-udev.patch b/midisport-firmware-1.2-udev.patch new file mode 100644 index 0000000..821452f --- /dev/null +++ b/midisport-firmware-1.2-udev.patch @@ -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 diff --git a/midisport-firmware-udev-rules b/midisport-firmware-udev-rules new file mode 100644 index 0000000..3ab8abe --- /dev/null +++ b/midisport-firmware-udev-rules @@ -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 diff --git a/midisport-firmware.spec b/midisport-firmware.spec new file mode 100644 index 0000000..377af23 --- /dev/null +++ b/midisport-firmware.spec @@ -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 +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 1.2-1mamba +- package created by autospec