]> git.pld-linux.org Git - packages/r8168.git/blame - r8168.spec
- pl
[packages/r8168.git] / r8168.spec
CommitLineData
7f7a21b1 1#
d558c20d
ER
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
7f7a21b1
JB
13Summary: Linux driver for RTL8111/8168B PCI Express Gigabit Ethernet controllers
14Summary(pl.UTF-8): Linuksowy sterownik dla kart sieciowych RTL8111/8168B PCI Express Gigabit Ethernet
d558c20d
ER
15Name: r8168
16Version: 8.003.00
17Release: %{rel}
18License: GPL
19Group: Base/Kernel
20URL: http://www.realtek.com.tw/
21Source0: ftp://202.65.194.212/cn/nic/r8168-%{version}.tar.bz2
22# Source0-md5: f22797f85eaba7d657365945aa92fecf
23%if %{with kernel}
24%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
25BuildRequires: rpmbuild(macros) >= 1.379
26%endif
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30Driver (Linux kernel module) for RTL8111/8168B PCI Express Gigabit
31Ethernet controllers.
32
7f7a21b1
JB
33%description -l pl.UTF-8
34Sterownik (moduł jądra Linuksa) dla kart sieciowych RTL8111/8168B PCI
35Express Gigabit Ethernet.
36
d558c20d 37%package -n kernel%{_alt_kernel}-net-r8168
7f7a21b1
JB
38Summary: Linux kernel module for RTL8111/8168B PCI Express Gigabit Ethernet controllers
39Summary(pl.UTF-8): Moduł jądra Linuksa dla kart sieciowych RTL8111/8168B PCI Express Gigabit Ethernet
d558c20d
ER
40Release: %{rel}@%{_kernel_ver_str}
41Group: Base/Kernel
42Requires(post,postun): /sbin/depmod
43%if %{with dist_kernel}
44%requires_releq_kernel
45Requires(postun): %releq_kernel
46%endif
47
48%description -n kernel%{_alt_kernel}-net-r8168
49Driver (Linux kernel module) for RTL8111/8168B PCI Express Gigabit
50Ethernet controllers.
51
7f7a21b1
JB
52%description -n kernel%{_alt_kernel}-net-r8168 -l pl.UTF-8
53Sterownik (moduł jądra Linuksa) dla kart sieciowych RTL8111/8168B PCI
54Express Gigabit Ethernet.
d558c20d
ER
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
65rm -rf $RPM_BUILD_ROOT
66%if %{with kernel}
67%install_kernel_modules -m src/r8168 -d kernel/drivers/net
68%endif
69
70%clean
71rm -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 release_note.txt readme
83/lib/modules/%{_kernel_ver}/kernel/drivers/net/*.ko*
84%endif
This page took 0.073375 seconds and 4 git commands to generate.