File iwl4965-ucode.spec of Package iwl4965-ucode
#
# spec file for package iwl4965-ucode (Version 228.57.2.23)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: iwl4965-ucode
Url: http://intellinuxwireless.org/
Summary: Firmware for Intel Wireless WiFi Link 4965AGN Cards
Version: 228.57.2.23
Release: 1.<RELEASE1>
%define old_api_version 228.57.1.21
Group: Hardware/Wifi
License: Redistributable in non-modified form
Source0: iwlwifi-4965-ucode-%{old_api_version}.tar.bz2
Source1: iwlwifi-4965-ucode-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
PreReq: module-init-tools grep
Supplements: modalias(pci:v00008086d00004229sv*sd*bc*sc*i*)
Supplements: modalias(pci:v00008086d00004230sv*sd*bc*sc*i*)
%description
This package is required for running Intel Wireless WiFi Link 4965AGN
adapters.
Authors:
--------
Intel Corporation
%prep
%setup0 -c
%setup1 -T -D -a 1
%build
%install
mkdir -p %{buildroot}/lib/firmware
cp iwlwifi-4965-ucode-%{old_api_version}/iwlwifi-4965-1.ucode %{buildroot}/lib/firmware
cd iwlwifi-4965-ucode-%{version}
cp iwlwifi-4965-2.ucode %{buildroot}/lib/firmware
cp LICENSE* README* %{buildroot}/lib/firmware/
%post
test -f /.buildenv && exit 0
driver_active()
{
for i in /sys/class/net/*/device/driver ; do
test -e $i || continue
DRV=$(basename `readlink $i`)
test "$DRV" = "$1" && return 0
done
return 1
}
driver_loaded()
{
lsmod | grep -q "$1"
}
if ! driver_active iwl4965 ; then
if driver_loaded iwl4965; then
echo "Reloading module iwl4965"
rmmod iwl4965
modprobe iwl4965
fi
fi
exit 0
%files
%defattr(-,root,root)
/lib/firmware/*
%clean
test "$RPM_BUILD_ROOT" != "/" && rm -rf $RPM_BUILD_ROOT
%changelog
* Wed May 20 2009 hschaa@suse.de
- Use SLE11 version also for 11.1 (fixes bnc#451045)
* Mon Dec 15 2008 hschaa@suse.de
- Update firmware to 228.57.2.23
* Allow full active scan dwell time after auto-switch from
passive to active.
* Properly decrement sequence number to avoid "wrong command
queue" error.
* Tue Aug 05 2008 hschaa@suse.de
- iwlwifi needs a new firmware API as of 2.6.27, hence install
version 228.57.2.21 (new API) in addition to 228.57.1.21 (old API)
* Fri Jul 04 2008 hschaa@suse.de
- update to version 228.57.1.21
* Seems to fix association with 11a access points (bnc#403663)
* Mon Mar 31 2008 msvec@suse.cz
- update to version 4.44.1.20
* Improve keep timestramps
* Thu Aug 23 2007 jg@suse.de
- fixed Supplements tags
* Wed Aug 01 2007 jg@suse.de
- update to version 4.44.1.18
* Mon Jul 23 2007 jg@suse.de
- updated to version 4.44.17
- fixed postinstall script (this time for real)
* Thu Jun 21 2007 jg@suse.de
- fixed postinstall script
* Tue Jun 19 2007 jg@suse.de
- initial package