-# TODO:
-# - does not build with 2.6.31
+# NOTE:
+# - if you want to use it with ltm kernel, use LINUX_2_6_27 branch
#
# Conditional build:
%bcond_without dist_kernel # allow non-distribution kernel
%bcond_without kernel # don't build kernel modules
-%bcond_without userspace # don't build userspace programs
%bcond_with verbose # verbose build (V=1)
%if %{without kernel}
%undefine with_dist_kernel
%endif
-%define rel 1
+%define rel 59
Summary: Linux driver for RTL8111/8168B PCI Express Gigabit Ethernet controllers
Summary(pl.UTF-8): Linuksowy sterownik dla kart sieciowych RTL8111/8168B PCI Express Gigabit Ethernet
Name: r8168
-Version: 8.014.00
+Version: 8.019.00
Release: %{rel}
License: GPL
Group: Base/Kernel
URL: http://www.realtek.com.tw/
-# Download it manually from:
+# Check for new versions at
# http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false
-Source0: %{name}-%{version}.tar.bz2
-# Source0-md5: d69944138d576edf3f92adfe6242e753
+# unfortunately this download is not DF-friendly.
+Source0: http://execve.pl/PLD/%{name}-%{version}.tar.bz2
+# Source0-md5: f6934fc5df1dfb5fea82e4a310568890
%if %{with kernel}
%if %{with dist_kernel}
-BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2
-BuildRequires: kernel%{_alt_kernel}-module-build < 3:2.6.31
+BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.33
%endif
BuildRequires: rpmbuild(macros) >= 1.379
%endif
%if %{with kernel}
%files -n kernel%{_alt_kernel}-net-r8168
%defattr(644,root,root,755)
-%doc readme
+%doc README
/lib/modules/%{_kernel_ver}/kernel/drivers/net/*.ko*
%endif