diff --git a/ipw2200-firmware.spec b/ipw2200-firmware.spec index c925159..d366e92 100644 --- a/ipw2200-firmware.spec +++ b/ipw2200-firmware.spec @@ -11,11 +11,12 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch # This is so that the noarch packages only appears for these archs ExclusiveArch: noarch i386 x86_64 +Conflicts: filesystem < 3 %description This package contains the firmware files required by the ipw2200 driver for Linux. Usage of the firmware is subject to the terms and conditions contained -in /lib/firmware/LICENSE.ipw2200. Please read it carefully. +in %{_prefix}/lib/firmware/LICENSE.ipw2200. Please read it carefully. %prep @@ -27,10 +28,10 @@ in /lib/firmware/LICENSE.ipw2200. Please read it carefully. %install %{__rm} -rf %{buildroot} -%{__mkdir_p} %{buildroot}/lib/firmware +%{__mkdir_p} %{buildroot}%{_prefix}/lib/firmware # Terms state that the LICENSE *must* be in the same directory as the firmware -%{__install} -p -m 0644 *.fw %{buildroot}/lib/firmware/ -%{__install} -p -m 0644 LICENSE.ipw2200-fw %{buildroot}/lib/firmware/ +%{__install} -p -m 0644 *.fw %{buildroot}%{_prefix}/lib/firmware/ +%{__install} -p -m 0644 LICENSE.ipw2200-fw %{buildroot}%{_prefix}/lib/firmware/ %clean @@ -39,8 +40,8 @@ in /lib/firmware/LICENSE.ipw2200. Please read it carefully. %files %defattr(-,root,root,-) -%doc /lib/firmware/LICENSE.ipw2200-fw -/lib/firmware/*.fw +%doc %{_prefix}/lib/firmware/LICENSE.ipw2200-fw +%{_prefix}/lib/firmware/*.fw %changelog