File qlogic-firmware.spec of Package qlogic-firmware

#
# spec file for package qlogic-firmware (Version 1.0)
#
# Copyright (c) 2008 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:           qlogic-firmware
Url:            ftp://ftp.qlogic.com/outgoing/linux/firmware
License:        BSD 3-Clause
Group:          Hardware/Other
AutoReqProv:    on
Summary:        Firmware files for Qlogic FibreChannel Cards (QLA2XXX Series)
Source0:        LICENSE
Source1:        CURRENT_VERSIONS
Source11:       ql2100_fw.bin
Source12:       ql2200_fw.bin
Source13:       ql2300_fw.bin
Source14:       ql2322_fw.bin
Source15:       ql2400_fw.bin
Source16:       ql2500_fw.bin
Source17:       ql2400_fw.bin_mid
Source18:       ql2500_fw.bin_mid
Version:        1.0
Release:        148
# Install into this non-root directory (required when norootforbuild is used):
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%define _datadir /lib/firmware
# Modules: qla1280.ko qla2xxx.ko qla4xxx.ko
Supplements:    modalias(pci:v00001077d00002[123]00sv*sd*bc*sc*i*)
Supplements:    modalias(pci:v00001077d000023[12]2sv*sd*bc*sc*i*)
Supplements:    modalias(pci:v00001077d000024[23]2sv*sd*bc*sc*i*)
Supplements:    modalias(pci:v00001077d00002532sv*sd*bc*sc*i*)
Supplements:    modalias(pci:v00001077d000054[23]2sv*sd*bc*sc*i*)
Supplements:    modalias(pci:v00001077d000063[12]2sv*sd*bc*sc*i*)
Supplements:    modalias(pci:v00001077d00008432sv*sd*bc*sc*i*)
# Generated with: extract-modaliases -i qla* kernel-default.rpm

%prep
cp %{S:0} .
cp %{S:1} .

%build
# There is nothing to build.

%install
# The firmware files must be installed in /lib/firmware
# because the firmware loader from udev searches there
mkdir -p %{buildroot}%{_datadir}
install -m 644 %{S:11} %{S:12} %{S:13} %{S:14} %{buildroot}%{_datadir}
install -m 644 %{S:17} %{buildroot}%{_datadir}/ql2400_fw.bin
install -m 644 %{S:18} %{buildroot}%{_datadir}/ql2500_fw.bin

%files
%defattr(-,root,root)
%doc LICENSE CURRENT_VERSIONS
%{_datadir}/*

%description
Firmware files for the QLogic QLA2XXX Series of FibreChannel HBA
Adapters.

For the current version of the individual firmware files please check
the CURRENT_VERSIONS file in /usr/share/doc/packages/qlogic-firmware/

For the license see the LICENSE file in
/usr/share/doc/packages/qlogic-firmware/



Authors:
--------
    Andrew Vasquez <andrew.vasquez@qlogic.com>

%changelog
* Fri Oct 31 2008 hare@suse.de
- Update firmware to latest version (bnc#426859)
* Tue Sep 23 2008 hare@suse.de
- Updated firmware for FCoE support (FATE#303484)
- Update %%supplements information
* Mon Mar 19 2007 ro@suse.de
- removed directory /lib/firmware from filelist (in filesystem)
* Mon Jan 08 2007 hare@suse.de
- Update firmware (201689).
* Tue Nov 14 2006 agruen@suse.de
- Use the new %%supplements_kernel_module macro to generate the
  Supplements: modalias(...) tags automatically.
* Tue Mar 07 2006 agruen@suse.de
- Add modalias tags (155357).
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 19 2006 hare@suse.de
- Initial package
openSUSE Build Service is sponsored by