]> git.pld-linux.org Git - packages/atl2.git/blame_incremental - atl2.spec
- outdated
[packages/atl2.git] / atl2.spec
... / ...
CommitLineData
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
7Summary: Attansic(R) L2 Fast Ethernet Adapter driver for Linux
8Summary(pl.UTF-8): Sterownik do kart Attansic(R) L2 Fast Ethernet Adapter
9Name: kernel%{_alt_kernel}-net-atl2
10Version: 2.0.4
11Release: %{_rel}@%{_kernel_ver_str}
12License: GPL v2
13Group: Base/Kernel
14Source0: http://people.redhat.com/csnook/atl2/atl2-%{version}.tar.bz2
15# Source0-md5: 22b22dc9d45b85549b002cf152c8ac27
16URL: http://www.attansic.com/
17%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
18BuildRequires: rpmbuild(macros) >= 1.379
19Requires(post,postun): /sbin/depmod
20%if %{with dist_kernel}
21%requires_releq_kernel
22Requires(postun): %releq_kernel
23%endif
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27This package contains the Linux driver for the Attansic(R) L2 Fast
28Ethernet Adapter.
29
30%description -l pl.UTF-8
31Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych
32Attansic(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
41rm -rf $RPM_BUILD_ROOT
42%install_kernel_modules -m atl2 -d kernel/drivers/net
43
44%clean
45rm -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.079635 seconds and 4 git commands to generate.