diff --git a/atmel-firmware.spec b/atmel-firmware.spec index 55ccef2..b8fa7e5 100644 --- a/atmel-firmware.spec +++ b/atmel-firmware.spec @@ -15,6 +15,7 @@ BuildArch: noarch Obsoletes: at76_usb-firmware < %{usb_version} Provides: at76_usb-firmware = %{usb_version} +Conflicts: filesystem < 3 %description The drivers for Atmel at76c50x wireless network chips in the Linux 2.6.x kernel @@ -30,7 +31,7 @@ install -pm 0644 at76_usb-firmware-%{usb_version}/README README-usb for i in COPYING README COPYRIGHT-usb README-usb; do install -pm 0644 ${i} ${i}.%{name} rm ${i} -ln -sf /lib/firmware/${i}.%{name} ${i} +ln -sf %{_prefix}/lib/firmware/${i}.%{name} ${i} done %build @@ -39,12 +40,12 @@ done %install rm -rf $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT/lib/firmware +mkdir -p $RPM_BUILD_ROOT/%{_prefix}/lib/firmware -install -pm 0644 images/*.bin $RPM_BUILD_ROOT/lib/firmware -#install -m 0644 images.usb/* $RPM_BUILD_ROOT/lib/firmware -install -pm 0644 at76_usb-firmware-%{usb_version}/*.bin $RPM_BUILD_ROOT/lib/firmware -install -pm 0644 *.%{name} $RPM_BUILD_ROOT/lib/firmware +install -pm 0644 images/*.bin $RPM_BUILD_ROOT/%{_prefix}/lib/firmware +#install -m 0644 images.usb/* $RPM_BUILD_ROOT/%{_prefix}/lib/firmware +install -pm 0644 at76_usb-firmware-%{usb_version}/*.bin $RPM_BUILD_ROOT/%{_prefix}/lib/firmware +install -pm 0644 *.%{name} $RPM_BUILD_ROOT/%{_prefix}/lib/firmware %clean rm -rf $RPM_BUILD_ROOT @@ -53,7 +54,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING README COPYRIGHT-usb README-usb VERSION -/lib/firmware/* +%{_prefix}/lib/firmware/* %changelog