]> git.pld-linux.org Git - packages/r8168.git/blobdiff - r8168.spec
- rebuild for kernel-3.4.3-1
[packages/r8168.git] / r8168.spec
index 1bdc028b9e6228574ad82eec5d97b36b34bf725f..708e8661924409ca48159680bef7721f22b5531a 100644 (file)
@@ -1,36 +1,50 @@
+# 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
-Summary:       Driver for RTL8111/8168B PCI Express Gigabit Ethernet controllers
-Name:          r8168
-Version:       8.003.00
+%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:          %{pname}%{_alt_kernel}
+Version:       8.029.00
 Release:       %{rel}
 License:       GPL
 Group:         Base/Kernel
 URL:           http://www.realtek.com.tw/
-Source0:       ftp://202.65.194.212/cn/nic/r8168-%{version}.tar.bz2
-# Source0-md5: f22797f85eaba7d657365945aa92fecf
+# 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:       %{pname}-%{version}.tar.bz2
+# Source0-md5: 5dc15a976950250b7b543876cc3350a8
+Patch0:                r8168-kernel-3.3.patch
 %if %{with kernel}
-%{?with_dist_kernel:BuildRequires:     kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
+%if %{with dist_kernel}
+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
 Ethernet controllers.
 
+%description -l pl.UTF-8
+Sterownik (moduł jądra Linuksa) dla kart sieciowych RTL8111/8168B PCI
+Express Gigabit Ethernet.
+
 %package -n kernel%{_alt_kernel}-net-r8168
-Summary:       Linux driver for r8168
-Summary(pl.UTF-8):     Sterownik dla Linuksa do r8168
+Summary:       Linux kernel module for RTL8111/8168B PCI Express Gigabit Ethernet controllers
+Summary(pl.UTF-8):     Moduł jądra Linuksa dla kart sieciowych RTL8111/8168B PCI Express Gigabit Ethernet
 Release:       %{rel}@%{_kernel_ver_str}
 Group:         Base/Kernel
 Requires(post,postun): /sbin/depmod
@@ -43,14 +57,17 @@ Requires(postun):   %releq_kernel
 Driver (Linux kernel module) for RTL8111/8168B PCI Express Gigabit
 Ethernet controllers.
 
-This package contains Linux module.
+%description -n kernel%{_alt_kernel}-net-r8168 -l pl.UTF-8
+Sterownik (moduł jądra Linuksa) dla kart sieciowych RTL8111/8168B PCI
+Express Gigabit Ethernet.
 
 %prep
-%setup -q -n r8168-%{version}
+%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
@@ -71,6 +88,6 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with kernel}
 %files -n kernel%{_alt_kernel}-net-r8168
 %defattr(644,root,root,755)
-%doc release_note.txt readme
+%doc README
 /lib/modules/%{_kernel_ver}/kernel/drivers/net/*.ko*
 %endif
This page took 0.030866 seconds and 4 git commands to generate.