SPECS: igb.spec (NEW) - kernel driver for Intel(R) Pro 1000 adapte...

hawk hawk at pld-linux.org
Mon May 5 17:52:07 CEST 2008


Author: hawk                         Date: Mon May  5 15:52:07 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- kernel driver for Intel(R) Pro 1000 adapters based on 82575 chipset

---- Files affected:
SPECS:
   igb.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/igb.spec
diff -u /dev/null SPECS/igb.spec:1.1
--- /dev/null	Mon May  5 17:52:07 2008
+++ SPECS/igb.spec	Mon May  5 17:52:01 2008
@@ -0,0 +1,106 @@
+# $Revision$, $Date$
+# Conditional build:
+%bcond_without	dist_kernel	# allow non-distribution kernel
+%bcond_without	kernel		# don't build kernel modules
+%bcond_with	verbose		# verbose build (V=1)
+
+%ifarch sparc
+%undefine	with_smp
+%endif
+
+%if %{without kernel}
+%undefine with_dist_kernel
+%endif
+%if "%{_alt_kernel}" != "%{nil}"
+%undefine	with_userspace
+%endif
+
+%define		rel	1
+%define		pname	igb
+Summary:	Intel(R) PRO/1000 driver for Linux
+Summary(pl.UTF-8):	Sterownik do karty Intel(R) PRO/1000
+Name:		%{pname}%{_alt_kernel}
+Version:	1.2.24
+Release:	%{rel}
+License:	GPL v2
+Group:		Base/Kernel
+Source0:	http://dl.sourceforge.net/e1000/%{pname}-%{version}.tar.gz
+# Source0-md5:	34fcb212775902a8747129d265e4f0c6
+URL:		http://sourceforge.net/projects/e1000/
+%{?with_dist_kernel:BuildRequires:	kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
+BuildRequires:	rpmbuild(macros) >= 1.379
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package contains the Linux driver for the Intel(R) PRO/1000
+adapters with 82575 chipset.
+
+%description -l pl.UTF-8
+Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych
+z rodziny Intel(R) PRO/1000 opartych o układ 82575.
+
+%package -n kernel%{_alt_kernel}-net-igb
+Summary:	Intel(R) PRO/1000 driver for Linux
+Summary(pl.UTF-8):	Sterownik do karty Intel(R) PRO/1000
+Release:	%{rel}@%{_kernel_ver_str}
+Group:		Base/Kernel
+Requires(post,postun):	/sbin/depmod
+%if %{with dist_kernel}
+%requires_releq_kernel
+Requires(postun):	%releq_kernel
+%endif
+
+%description -n kernel%{_alt_kernel}-net-igb
+This package contains the Linux driver for the Intel(R) PRO/1000
+adapters with 82575 chipset.
+
+%description -n kernel%{_alt_kernel}-net-igb -l pl.UTF-8
+Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych
+z rodziny Intel(R) PRO/1000 opartych o układ 82575.
+
+%prep
+%setup -q -n %{pname}-%{version}
+cat > src/Makefile <<'EOF'
+obj-m := igb.o
+igb-objs := e1000_82575.o e1000_mac.o e1000_nvm.o e1000_phy.o e1000_manage.o \
+kcompat.o e1000_api.o igb_main.o igb_param.o igb_ethtool.o
+
+EXTRA_CFLAGS=-DDRIVER_IGB
+EOF
+
+%build
+%build_kernel_modules -C src -m %{pname}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%install_kernel_modules -m src/%{pname} -d kernel/drivers/net -n %{pname} -s current
+# blacklist kernel module
+cat > $RPM_BUILD_ROOT/etc/modprobe.d/%{_kernel_ver}/%{pname}.conf <<'EOF'
+blacklist igb
+alias igb igb-current
+EOF
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-n kernel%{_alt_kernel}-net-igb
+%depmod %{_kernel_ver}
+
+%postun	-n kernel%{_alt_kernel}-net-igb
+%depmod %{_kernel_ver}
+
+%files	-n kernel%{_alt_kernel}-net-igb
+%defattr(644,root,root,755)
+%doc igb.7 README
+/etc/modprobe.d/%{_kernel_ver}/%{pname}.conf
+/lib/modules/%{_kernel_ver}/kernel/drivers/net/%{pname}*.ko*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2008-05-05 15:52:01  hawk
+- kernel driver for Intel(R) Pro 1000 adapters based on 82575 chipset
+
================================================================


More information about the pld-cvs-commit mailing list