]> git.pld-linux.org Git - packages/r8168.git/blob - r8168.spec
- up to 8.010.00
[packages/r8168.git] / r8168.spec
1 #
2 # Conditional build:
3 %bcond_without  dist_kernel     # allow non-distribution kernel
4 %bcond_without  kernel          # don't build kernel modules
5 %bcond_without  userspace       # don't build userspace programs
6 %bcond_with     verbose         # verbose build (V=1)
7
8 %if %{without kernel}
9 %undefine       with_dist_kernel
10 %endif
11
12 %define         rel     1
13 Summary:        Linux driver for RTL8111/8168B PCI Express Gigabit Ethernet controllers
14 Summary(pl.UTF-8):      Linuksowy sterownik dla kart sieciowych RTL8111/8168B PCI Express Gigabit Ethernet
15 Name:           r8168
16 Version:        8.010.00
17 Release:        %{rel}
18 License:        GPL
19 Group:          Base/Kernel
20 URL:            http://www.realtek.com.tw/
21 Source0:        ftp://202.65.194.212/cn/nic/r8168-%{version}.tar.bz2
22 # Source0-md5:  585f881d542b55f8cbfdd2b7d24a4b2b
23 %if %{with kernel}
24 %{?with_dist_kernel:BuildRequires:      kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
25 BuildRequires:  rpmbuild(macros) >= 1.379
26 %endif
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 Driver (Linux kernel module) for RTL8111/8168B PCI Express Gigabit
31 Ethernet controllers.
32
33 %description -l pl.UTF-8
34 Sterownik (moduł jądra Linuksa) dla kart sieciowych RTL8111/8168B PCI
35 Express Gigabit Ethernet.
36
37 %package -n kernel%{_alt_kernel}-net-r8168
38 Summary:        Linux kernel module for RTL8111/8168B PCI Express Gigabit Ethernet controllers
39 Summary(pl.UTF-8):      Moduł jądra Linuksa dla kart sieciowych RTL8111/8168B PCI Express Gigabit Ethernet
40 Release:        %{rel}@%{_kernel_ver_str}
41 Group:          Base/Kernel
42 Requires(post,postun):  /sbin/depmod
43 %if %{with dist_kernel}
44 %requires_releq_kernel
45 Requires(postun):       %releq_kernel
46 %endif
47
48 %description -n kernel%{_alt_kernel}-net-r8168
49 Driver (Linux kernel module) for RTL8111/8168B PCI Express Gigabit
50 Ethernet controllers.
51
52 %description -n kernel%{_alt_kernel}-net-r8168 -l pl.UTF-8
53 Sterownik (moduł jądra Linuksa) dla kart sieciowych RTL8111/8168B PCI
54 Express Gigabit Ethernet.
55
56 %prep
57 %setup -q -n r8168-%{version}
58
59 %build
60 %if %{with kernel}
61 %build_kernel_modules -m r8168 -C src
62 %endif
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66 %if %{with kernel}
67 %install_kernel_modules -m src/r8168 -d kernel/drivers/net
68 %endif
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %post   -n kernel%{_alt_kernel}-net-r8168
74 %depmod %{_kernel_ver}
75
76 %postun -n kernel%{_alt_kernel}-net-r8168
77 %depmod %{_kernel_ver}
78
79 %if %{with kernel}
80 %files -n kernel%{_alt_kernel}-net-r8168
81 %defattr(644,root,root,755)
82 %doc readme
83 /lib/modules/%{_kernel_ver}/kernel/drivers/net/*.ko*
84 %endif
This page took 0.051905 seconds and 4 git commands to generate.