X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=igb.spec;h=aed62d5679122777d2cac7e21be613f32f58e805;hb=c31caa18e678e7c33e110ebfec4780db05830db4;hp=1bf110ad88ba5abd715d748363787445437b248d;hpb=287315d75f1bdb76136ff744a357004299708d34;p=packages%2Figb.git diff --git a/igb.spec b/igb.spec index 1bf110a..aed62d5 100644 --- a/igb.spec +++ b/igb.spec @@ -14,17 +14,17 @@ %undefine with_userspace %endif -%define rel 1 +%define rel 5 %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.44.3 +Version: 3.4.7 Release: %{rel} License: GPL v2 Group: Base/Kernel -Source0: http://dl.sourceforge.net/e1000/%{pname}-%{version}.tar.gz -# Source0-md5: d1c02b55411ca6de7d4242b67b297a13 +Source0: http://downloads.sourceforge.net/e1000/%{pname}-%{version}.tar.gz +# Source0-md5: 4503a06412e10037b5f43b3cc151e886 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 @@ -32,11 +32,11 @@ 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. +adapters with 82575EB/GB or 82576 chipsets. %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. +Intel(R) PRO/1000 opartych o układy 82575EB/GB lub 82576. %package -n kernel%{_alt_kernel}-net-igb Summary: Intel(R) PRO/1000 driver for Linux @@ -51,27 +51,32 @@ Requires(postun): %releq_kernel %description -n kernel%{_alt_kernel}-net-igb This package contains the Linux driver for the Intel(R) PRO/1000 -adapters with 82575 chipset. +adapters with 82575EB/GB or 82576 chipsets. %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. +Intel(R) PRO/1000 opartych o układy 82575EB/GB lub 82576. %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 +igb-objs := igb_main.o e1000_82575.o e1000_mac.o e1000_nvm.o e1000_phy.o \ +e1000_manage.o igb_param.o igb_ethtool.o kcompat.o e1000_api.o e1000_mbx.o igb_vmdq.o EXTRA_CFLAGS=-DDRIVER_IGB EOF +# Large Receive Offload - Do Not Use LRO When Routing Packets +# CFLAGS_EXTRA=-DIGB_LRO + %build %build_kernel_modules -C src -m %{pname} %install rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_mandir}/man7 + %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' @@ -79,6 +84,8 @@ blacklist igb alias igb igb-current EOF +cp -a igb.7 $RPM_BUILD_ROOT%{_mandir}/man7 + %clean rm -rf $RPM_BUILD_ROOT @@ -90,6 +97,7 @@ rm -rf $RPM_BUILD_ROOT %files -n kernel%{_alt_kernel}-net-igb %defattr(644,root,root,755) -%doc igb.7 README -/etc/modprobe.d/%{_kernel_ver}/%{pname}.conf +%doc README +%config(noreplace,missingok) %verify(not md5 mtime size) /etc/modprobe.d/%{_kernel_ver}/%{pname}.conf /lib/modules/%{_kernel_ver}/kernel/drivers/net/%{pname}*.ko* +%{_mandir}/man7/igb.7*