File ixgbe.spec of Package IXGBE

Name: ixgbe
Summary: Intel(R) 10GbE PCI Express Ethernet Connection
Version: 3.8.21
Release: 1
Source: %{name}-%{version}.tar.gz
Vendor: Intel Corporation
License: GPL
ExclusiveOS: linux
Group: System Environment/Kernel
URL: http://www.intel.com/network/connectivity/products/server_adapters.htm
BuildRequires: kernel-desktop-devel, module-init-tools
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: pciutils-ids > 2011.7.0
Requires: kernel-desktop

%if 0%{?suse_version} == 1110
%suse_kernel_module_package kdump ec2 um -p %_sourcedir/preamble
%else
%suse_kernel_module_package kdump um -p %_sourcedir/preamble
%endif

%description
This package contains the Linux driver for the Intel(R) 10GbE PCI Express Family of Server Adapters.

%prep
%setup -n %{name}-%{version}
set -- *
mv src source
mkdir obj
 
%build
export EXTRA_CFLAGS='-DVERSION=\"%version\"'
for flavor in %flavors_to_build; do
    rm -rf obj/$flavor
    cp -r source obj/$flavor
    make -C /usr/src/linux-obj/%_target_cpu/$flavor modules \
        M=$PWD/obj/$flavor \
        KSRC=/usr/src/linux-obj/%_target_cpu/$flavor
done
 
%install
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
export INSTALL_MOD_DIR=updates
for flavor in %flavors_to_build; do
    make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install \
         M=$PWD/obj/$flavor
done
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man7
install -m 644 -D ixgbe.7 $RPM_BUILD_ROOT/%{_mandir}/man7
gzip -9nf $RPM_BUILD_ROOT/%{_mandir}/man?/*.?
 
%clean
rm -rf %{buildroot}
 
%files
%defattr(0644,root,root,0755)
%{_mandir}/man7/ixgbe.7.gz
%doc COPYING README
 
%changelog
openSUSE Build Service is sponsored by