diff --git a/midisport-firmware.spec b/midisport-firmware.spec index ddae368..1ee35c5 100644 --- a/midisport-firmware.spec +++ b/midisport-firmware.spec @@ -10,6 +10,8 @@ Patch0: midisport-firmware-1.2-udev-attrs.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: fxload +Conflicts: filesystem < 3 +Conflicts: udev < 176 %description This package contains the firmware for M-Audio/Midiman USB MIDI & Audio devices. @@ -33,15 +35,15 @@ MidiSport 2x4.) %patch0 -p1 -b .attrs %build -sed -i -e 's|@fxload@|/sbin/fxload|g' -e 's|@firmwaredir@|/lib/firmware|g' 42-midisport-firmware.rules.in +sed -i -e 's|@fxload@|/usr/sbin/fxload|g' -e 's|@firmwaredir@|/usr/lib/firmware|g' 42-midisport-firmware.rules.in %install rm -rf $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT/lib/firmware -install -pm 0644 *.ihx $RPM_BUILD_ROOT/lib/firmware +mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/firmware +install -pm 0644 *.ihx $RPM_BUILD_ROOT%{_prefix}/lib/firmware -mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/ -install -pm 0644 42-midisport-firmware.rules.in $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d/42-midisport-firmware.rules +mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/udev/rules.d/ +install -pm 0644 42-midisport-firmware.rules.in $RPM_BUILD_ROOT%{_prefix}/lib/udev/rules.d/42-midisport-firmware.rules %clean rm -rf $RPM_BUILD_ROOT @@ -49,16 +51,20 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc LICENSE README Changelog -/lib/firmware/MidiSport1x1.ihx -/lib/firmware/MidiSport2x2.ihx -/lib/firmware/MidiSport4x4.ihx -/lib/firmware/MidiSportKS.ihx -/lib/firmware/MidiSportLoader.ihx -/lib/firmware/MidiSport8x8-2.10.ihx -/lib/firmware/MidiSport8x8-2.21.ihx -%config %{_sysconfdir}/udev/rules.d/42-midisport-firmware.rules +%{_prefix}/lib/firmware/MidiSport1x1.ihx +%{_prefix}/lib/firmware/MidiSport2x2.ihx +%{_prefix}/lib/firmware/MidiSport4x4.ihx +%{_prefix}/lib/firmware/MidiSportKS.ihx +%{_prefix}/lib/firmware/MidiSportLoader.ihx +%{_prefix}/lib/firmware/MidiSport8x8-2.10.ihx +%{_prefix}/lib/firmware/MidiSport8x8-2.21.ihx +%{_prefix}/lib/udev/rules.d/42-midisport-firmware.rules %changelog +* Tue Nov 22 2011 Kay Sievers +- move firmware files to /usr/lib/firmware +- move udev rule from /etc to /lib + * Wed Jul 13 2011 Charles R. Anderson - 1.2-8 - Use ATTRS idVendor/idProduct/bcdDevice to match devices in udev rules (#718904) - Expand package description