All pastes #626255 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-07-19 15:00 UTC
rendered paste body
# Manual check if this is always upper than the previous version
%define priority 44415

Name:           iwl4965-firmware
Version:        4.44.15
Release:        6
Summary:        Firmware for Intel® PRO/Wireless 4965 A/G/N network adaptors

Group:          System Environment/Kernel
License:        Redistributable, no modification permitted
URL:            http://intellinuxwireless.org/
Source0:        http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-4965-ucode-%{version}.tgz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
ExcludeArch:    ppc ppc64
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig

%description
This package contains the firmware required by the iwl4965 driver for Linux.
Usage of the firmware is subject to the terms and conditions contained
inside the provided LICENSE file. Please read it carefully.


%prep
%setup -q -n iwlwifi-4965-ucode-%{version}

# Change permission
chmod 0644 *
# Change encoding
sed -i 's/\r//'  LICENSE.iwlwifi-4965-ucode README.iwlwifi-4965-ucode
# Rename docs
mv LICENSE.iwlwifi-4965-ucode LICENSE
mv README.iwlwifi-4965-ucode README
# Preserve timestamp
touch -r iwlwifi-4965.ucode LICENSE README


%build
# Nothing to build


%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/lib/firmware
install -pm 0644 iwlwifi-4965.ucode $RPM_BUILD_ROOT/lib/firmware/iwlwifi-4965.ucode.%{version}


%clean
rm -rf $RPM_BUILD_ROOT

%post
  /usr/sbin/alternatives --install /lib/firmware/iwlwifi-4965.ucode %{name} \
    /lib/firmware/iwlwifi-4965.ucode.%{version} %{priority} || :

%preun
if [ $1 -eq 0 ]; then
  /usr/sbin/alternatives --remove %{name} /lib/firmware/iwlwifi-4965.ucode.%{version} || :
fi

%files
%defattr(-,root,root,-)
%doc LICENSE README
/lib/firmware/*ucode.%{version}


%changelog
* Thu Jul 19 2007 kwizart < kwizart at gmail.com > - 4.44.15-6
- Uses versionned firmwares (with alternative method)

* Mon Jul 16 2007 kwizart < kwizart at gmail.com > - 4.44.15-5
- Renamed back to iwl4965-firmware
- Dropped obsoletes iwlwifi-firmware

* Sun Jul 15 2007 kwizart < kwizart at gmail.com > - 4.44.15-4
- Renamed LICENSE README
- Drop Provides: iwlwifi-firmware

* Sun Jul 15 2007 kwizart < kwizart at gmail.com > - 4.44.15-3
- Renamed to iwlwifi-4965-firmware
- Provides/Obsolete iwlwifi-firmware
- Drop the dist tag

* Wed Jul 13 2007 kwizart < kwizart at gmail.com > - 4.44.15-2
- Change to ExcludeArch as this can work with koji
- Drop LICENSE.iwlwifi-4965-ucode from /lib/firmware

* Wed Jul 13 2007 kwizart < kwizart at gmail.com > - 4.44.15-1
- Initial package.