]> git.pld-linux.org Git - packages/igb.git/blobdiff - igb.spec
- rebuild for kernel-3.7.10-6
[packages/igb.git] / igb.spec
index 8e80d0c5404944f4d9b7cd42e7f39af4bdca100c..5445fbcd7d8db4d67ee817ffd319c59dcdf55492 100644 (file)
--- a/igb.spec
+++ b/igb.spec
 %undefine      with_userspace
 %endif
 
-%define                rel     2
+%define                rel     13
 %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:       2.0.6
+Version:       4.1.2
 Release:       %{rel}
 License:       GPL v2
 Group:         Base/Kernel
-Source0:       http://dl.sourceforge.net/e1000/%{pname}-%{version}.tar.gz
-# Source0-md5: 93785189a5d620be704b20b23bf08eb5
+Source0:       http://downloads.sourceforge.net/e1000/%{pname}-%{version}.tar.gz
+# Source0-md5: 0a5462b76310b83a40c9023edae50d72
 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
@@ -61,10 +61,13 @@ Intel(R) PRO/1000 opartych o ukÅ‚ady 82575EB/GB lub 82576.
 %setup -q -n %{pname}-%{version}
 cat > src/Makefile <<'EOF'
 obj-m := igb.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-objs := igb_main.o e1000_82575.o e1000_i210.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 igb_sysfs.o igb_procfs.o igb_ptp.o
 
-EXTRA_CFLAGS=-DDRIVER_IGB
+EXTRA_CFLAGS += -DDRIVER_IGB
+EXTRA_CFLAGS += -DDRIVER_NAME=igb
+EXTRA_CFLAGS += -DDRIVER_NAME_CAPS=IGB
 EOF
 
 %build
@@ -72,6 +75,8 @@ EOF
 
 %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*
This page took 0.040501 seconds and 4 git commands to generate.