A new user interface for you! Read more...

File intel-igb.spec of Package igb

Name: intel-igb
Summary: Intel(R) Gigabit Ethernet Linux Driver
Version: 5.3.5.35
Release: 1
Source: %{name}-%{version}.tar.bz2
License: GPL
Vendor: Intel Corporation
Group: System/Kernel
URL: http://support.intel.com
BuildRequires: kernel-source kernel-syms pciutils-ids module-init-tools
Requires: pciutils
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%kernel_module_package -x debug -x trace

%description
This package contains the Intel(R) Gigabit Ethernet Linux Driver.

%package KMP
Summary: Igb Kernel Module
Group: System/Kernel

%description KMP
This is one of the sub-packages for a specific kernel.  All the
sub-packages will share the same summary, group, and description.

%prep
%setup
set -- *
mv src source
echo "igb.ko external" > source/Module.supported
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 %{kernel_source $flavor} modules M=$PWD/obj/$flavor
done

%install
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
export INSTALL_MOD_DIR=updates
for flavor in %flavors_to_build; do
    make -C %{kernel_source $flavor} modules_install M=$PWD/obj/$flavor
done
mkdir -p $RPM_BUILD_ROOT/usr/share/pci.ids.d
install -D -m 644 pci.updates $RPM_BUILD_ROOT/usr/share/pci.ids.d/pci.ids.intel-igb-%{version}
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man7
install -m 644 -D igb.7 $RPM_BUILD_ROOT/%{_mandir}/man7
gzip -9nf $RPM_BUILD_ROOT/%{_mandir}/man7/*.?

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_mandir}/man7/igb.7.gz
/usr/share/pci.ids.d/pci.ids.intel-igb-%{version}
%doc COPYING
%doc README

%post
if [ -x /usr/bin/merge-pciids -a -x /usr/bin/perl ]; then
    /usr/bin/merge-pciids
else
    echo "ERROR: merge-pciids or perl not found"
fi

%postun
if [ -x /usr/bin/merge-pciids -a -x /usr/bin/perl ]; then
    /usr/bin/merge-pciids
else
    echo "ERROR: merge-pciids or perl not found"
fi

%changelog
* Tue Oct 8 2013 - jeffrey.t.kirsher@intel.com
- Updated to reflect CODE 11 changes nd LF standard spec file work.