X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=r8168.spec;h=708e8661924409ca48159680bef7721f22b5531a;hb=d2040bfc6e5a683eb9be4f13da8a001dd2a820f4;hp=295e96d8b762f05baad08e5205aa50b9620d94d2;hpb=639842d40c023d69028c6be429e65c9f3824a75a;p=packages%2Fr8168.git diff --git a/r8168.spec b/r8168.spec index 295e96d..708e866 100644 --- a/r8168.spec +++ b/r8168.spec @@ -1,21 +1,21 @@ -# 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 11 +%define pname r8168 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.016.00 +Name: %{pname}%{_alt_kernel} +Version: 8.029.00 Release: %{rel} License: GPL Group: Base/Kernel @@ -23,16 +23,16 @@ URL: http://www.realtek.com.tw/ # 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 # unfortunately this download is not DF-friendly. -Source0: http://xatka.net/~z/PLD/%{name}-%{version}.tar.bz2 -# Source0-md5: 8afad4f5bc48d75754c761457cc2d79d +Source0: %{pname}-%{version}.tar.bz2 +# Source0-md5: 5dc15a976950250b7b543876cc3350a8 +Patch0: r8168-kernel-3.3.patch %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 -BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +BuildRoot: %{tmpdir}/%{pname}-%{version}-root-%(id -u -n) %description Driver (Linux kernel module) for RTL8111/8168B PCI Express Gigabit @@ -62,11 +62,12 @@ Sterownik (moduł jądra Linuksa) dla kart sieciowych RTL8111/8168B PCI Express Gigabit Ethernet. %prep -%setup -q +%setup -q -n %{pname}-%{version} +%patch0 -p1 %build %if %{with kernel} -%build_kernel_modules -m r8168 -C src +%build_kernel_modules -m r8168 -C src KERNELRELEASE=%{_kernel_ver} %endif %install @@ -87,6 +88,6 @@ rm -rf $RPM_BUILD_ROOT %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