Search
j0ke.net Open Build Service
>
Projects
>
hardware
:
nic
>
bnx2x
> netxtreme2.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File netxtreme2.spec of Package bnx2x
# norootforbuild %define name netxtreme2 %define version 7.2.20 %define debug_package %{nil} Summary: Broadcom NetXtreme Ethernet drivers Name: %{name} Version: %{version} Release: 1 Vendor: Broadcom Corporation License: GPL Group: System/Kernel Source: %{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot BuildRequires: kernel-source kernel-syms module-init-tools %suse_kernel_module_package ec2 xen xenpae vmi um %description This package contains the Broadcom NetXtreme II 10-Gigabit Ethernet driver. %package KMP Summary: Open Vswitch KMP Group: System/Kernel %description KMP This package contains the Broadcom NetXtreme II 10-Gigabit Ethernet driver. %prep %setup -T -b 0 set -- * mkdir source mv "$@" 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 ls -a obj/$flavor/ make -C /usr/src/linux-obj/%_target_cpu/$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 /usr/src/linux-obj/%_target_cpu/$flavor modules_install M=$PWD/obj/$flavor done %post /sbin/depmod -a %postun /sbin/depmod -a %changelog