]> git.pld-linux.org Git - packages/atl2.git/blob - atl2.spec
- outdated
[packages/atl2.git] / atl2.spec
1 #
2 # Conditional build:
3 %bcond_without  dist_kernel     # allow non-distribution kernel
4 %bcond_with     verbose         # verbose build (V=1)
5 #
6 %define         _rel    1
7 Summary:        Attansic(R) L2 Fast Ethernet Adapter driver for Linux
8 Summary(pl.UTF-8):      Sterownik do kart Attansic(R) L2 Fast Ethernet Adapter
9 Name:           kernel%{_alt_kernel}-net-atl2
10 Version:        2.0.4
11 Release:        %{_rel}@%{_kernel_ver_str}
12 License:        GPL v2
13 Group:          Base/Kernel
14 Source0:        http://people.redhat.com/csnook/atl2/atl2-%{version}.tar.bz2
15 # Source0-md5:  22b22dc9d45b85549b002cf152c8ac27
16 URL:            http://www.attansic.com/
17 %{?with_dist_kernel:BuildRequires:      kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
18 BuildRequires:  rpmbuild(macros) >= 1.379
19 Requires(post,postun):  /sbin/depmod
20 %if %{with dist_kernel}
21 %requires_releq_kernel
22 Requires(postun):       %releq_kernel
23 %endif
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 This package contains the Linux driver for the Attansic(R) L2 Fast
28 Ethernet Adapter.
29
30 %description -l pl.UTF-8
31 Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych
32 Attansic(R) L2 Fast Ethernet Adapter.
33
34 %prep
35 %setup -q -n atl2-%{version}
36
37 %build
38 %build_kernel_modules -m atl2 EXTRA_CFLAGS="-DDBG=0"
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 %install_kernel_modules -m atl2 -d kernel/drivers/net
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %post
48 %depmod %{_kernel_ver}
49
50 %postun
51 %depmod %{_kernel_ver}
52
53 %files
54 %defattr(644,root,root,755)
55 /lib/modules/%{_kernel_ver}/kernel/drivers/net/atl2*.ko*
This page took 0.086567 seconds and 3 git commands to generate.