- alpha build fixes, rel. 8
[packages/e1000.git] / e1000.spec
index eb5260272a793dfcec8eb9dae36e800006b72a05..c19b6106d1b63dcf6351b2841d884a584d3f6936 100644 (file)
@@ -1,19 +1,21 @@
 # conditional build
-# _without_dist_kernel          without distribution kernel
+# _without_dist_kernel         without distribution kernel
 
 %define                _orig_name      e1000
-%define                _rel 1
 
 Summary:       Intel(R) PRO/1000 driver for Linux
 Summary(pl):   Sterownik do karty Intel(R) PRO/1000
 Name:          kernel-net-%{_orig_name}
-Version:       4.3.2
+Version:       4.3.15
+%define        _rel    8
 Release:       %{_rel}@%{_kernel_ver_str}
 License:       BSD
 Vendor:                Intel Corporation
 Group:         Base/Kernel
 Source0:       ftp://aiedownload.intel.com/df-support/2897/eng/%{_orig_name}-%{version}.tar.gz
-%{!?_without_dist_kernel:BuildRequires:         kernel-headers }
+# Source0-md5: d1b09d0210c27f8aa931601980da5b56
+Patch0:                %{name}-alpha.patch
+%{!?_without_dist_kernel:BuildRequires:        kernel-headers }
 BuildRequires: %{kgcc_package}
 URL:           http://support.intel.com/support/network/adapter/pro100/
 Obsoletes:     e1000
@@ -52,12 +54,13 @@ Ten pakiet zawiera sterownik dla Linuksa SMP do kart sieciowych
 
 %prep
 %setup -q -n %{_orig_name}-%{version}
+%patch -p1
 
 %build
-%{__make} -C src SMP=1 CC="%{kgcc} -DCONFIG_X86_LOCAL_APIC -DSTB_WA" KSRC=/usr/src/linux
+%{__make} -C src SMP=1 CC="%{kgcc} -DCONFIG_X86_LOCAL_APIC -DSTB_WA" KSRC=%{_kernelsrcdir}
 mv -f src/%{_orig_name}.o src/%{_orig_name}-smp.o
-%{__make} -C src clean KSRC=/usr/src/linux
-%{__make} -C src CC="%{kgcc} -DSTB_WA" KSRC=/usr/src/linux
+%{__make} -C src clean KSRC=%{_kernelsrcdir}
+%{__make} -C src CC="%{kgcc} -DSTB_WA" KSRC=%{_kernelsrcdir}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -66,8 +69,6 @@ install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc
 install src/%{_orig_name}-smp.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc/%{_orig_name}.o
 install src/%{_orig_name}.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/%{_orig_name}.o
 
-gzip -9nf %{_orig_name}.7 README ldistrib.txt
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -85,10 +86,10 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
+%doc %{_orig_name}.7 README ldistrib.txt
 /lib/modules/%{_kernel_ver}/misc/*
 
 %files -n kernel-smp-net-%{_orig_name}
 %defattr(644,root,root,755)
-%doc *.gz
+%doc %{_orig_name}.7 README ldistrib.txt
 /lib/modules/%{_kernel_ver}smp/misc/*
This page took 0.032924 seconds and 4 git commands to generate.