diff --git a/ipw2100-firmware.spec b/ipw2100-firmware.spec index 7e6b603..0455ae0 100644 --- a/ipw2100-firmware.spec +++ b/ipw2100-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 ipw2100 driver for Linux. Usage of the firmware is subject to the terms and conditions contained -in /lib/firmware/LICENSE.ipw2100. Please read it carefully. +in %{_prefix}/lib/firmware/LICENSE.ipw2100. Please read it carefully. %prep @@ -27,13 +28,13 @@ in /lib/firmware/LICENSE.ipw2100. Please read it carefully. %install %{__rm} -rf %{buildroot} _doc/ -%{__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 %{buildroot}/lib/firmware/LICENSE.ipw2100 +%{__install} -p -m 0644 *.fw %{buildroot}%{_prefix}/lib/firmware/ +%{__install} -p -m 0644 LICENSE %{buildroot}%{_prefix}/lib/firmware/LICENSE.ipw2100 # Symlink to include as %%doc %{__mkdir} _doc -%{__ln_s} /lib/firmware/LICENSE.ipw2100 _doc/LICENSE +%{__ln_s} %{_prefix}/lib/firmware/LICENSE.ipw2100 _doc/LICENSE %clean @@ -43,8 +44,8 @@ in /lib/firmware/LICENSE.ipw2100. Please read it carefully. %files %defattr(-,root,root,-) %doc _doc/* -/lib/firmware/LICENSE.ipw2100 -/lib/firmware/*.fw +%{_prefix}/lib/firmware/LICENSE.ipw2100 +%{_prefix}/lib/firmware/*.fw %changelog