]> git.pld-linux.org Git - packages/r8168.git/blobdiff - r8168.spec
- only kernel module here, kernel bcond doesn't make sense
[packages/r8168.git] / r8168.spec
index 294f0fc89b7a25242ffd82f8a7be174ee3563121..417981acb1068a5f19dcae4bfbb194df626f3c17 100644 (file)
@@ -1,21 +1,13 @@
-# 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_with    verbose         # verbose build (V=1)
 
-%if %{without kernel}
-%undefine      with_dist_kernel
-%endif
-
-%define                rel     26
+%define                rel     7
 %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
+Version:       8.036.00
 Release:       %{rel}
 License:       GPL
 Group:         Base/Kernel
@@ -24,14 +16,12 @@ URL:                http://www.realtek.com.tw/
 # 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}
+# Source0-md5: a9a5b238f59cc30eefa5917d7f6b728e
+Patch0:                linux-3.10.patch
 %if %{with dist_kernel}
 BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.33
 %endif
 BuildRequires: rpmbuild(macros) >= 1.379
-%endif
 BuildRoot:     %{tmpdir}/%{pname}-%{version}-root-%(id -u -n)
 
 %description
@@ -66,15 +56,11 @@ Express Gigabit Ethernet.
 %patch0 -p1
 
 %build
-%if %{with kernel}
 %build_kernel_modules -m r8168 -C src KERNELRELEASE=%{_kernel_ver}
-%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%if %{with kernel}
 %install_kernel_modules -m src/r8168 -d kernel/drivers/net
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -85,9 +71,7 @@ rm -rf $RPM_BUILD_ROOT
 %postun        -n kernel%{_alt_kernel}-net-r8168
 %depmod %{_kernel_ver}
 
-%if %{with kernel}
 %files -n kernel%{_alt_kernel}-net-r8168
 %defattr(644,root,root,755)
 %doc README
 /lib/modules/%{_kernel_ver}/kernel/drivers/net/*.ko*
-%endif
This page took 0.134912 seconds and 4 git commands to generate.