]> git.pld-linux.org Git - packages/atl2.git/blame_incremental - atl2.spec
- release 31
[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 pname atl2
7%define rel 31
8Summary: Attansic(R) L2 Fast Ethernet Adapter driver for Linux
9Summary(pl.UTF-8): Sterownik do kart Attansic(R) L2 Fast Ethernet Adapter
10Name: %{pname}%{_alt_kernel}
11Version: 2.0.5
12Release: %{rel}
13License: GPL v2
14Group: Base/Kernel
15Source0: http://people.redhat.com/csnook/atl2/atl2-%{version}.tar.bz2
16# Source0-md5: bbd5696cb6c7c6432d7338d783c408f2
17URL: http://www.attansic.com/
18%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
19BuildRequires: rpmbuild(macros) >= 1.379
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22
23%description
24This package contains the Linux driver for the Attansic(R) L2 Fast
25Ethernet Adapter.
26
27%description -l pl.UTF-8
28Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych
29Attansic(R) L2 Fast Ethernet Adapter.
30
31%package -n kernel%{_alt_kernel}-net-atl2
32Summary: Attansic(R) L2 Fast Ethernet Adapter driver for Linux
33Summary(pl.UTF-8): Sterownik do kart Attansic(R) L2 Fast Ethernet Adapter
34Release: %{rel}@%{_kernel_ver_str}
35Group: Base/Kernel
36Requires(post,postun): /sbin/depmod
37%if %{with dist_kernel}
38%requires_releq_kernel
39Requires(postun): %releq_kernel
40%endif
41Provides: kernel(atl2)
42
43%description -n kernel%{_alt_kernel}-net-atl2
44This package contains the Linux driver for the Attansic(R) L2 Fast
45Ethernet Adapter.
46
47%description -n kernel%{_alt_kernel}-net-atl2 -l pl.UTF-8
48Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych
49Attansic(R) L2 Fast Ethernet Adapter.
50
51%prep
52%setup -q -n %{pname}-%{version}
53
54%build
55%build_kernel_modules -m atl2 EXTRA_CFLAGS="-DDBG=0"
56
57%install
58rm -rf $RPM_BUILD_ROOT
59%install_kernel_modules -m atl2 -d kernel/drivers/net
60
61%clean
62rm -rf $RPM_BUILD_ROOT
63
64%post -n kernel%{_alt_kernel}-net-atl2
65%depmod %{_kernel_ver}
66
67%postun -n kernel%{_alt_kernel}-net-atl2
68%depmod %{_kernel_ver}
69
70%files -n kernel%{_alt_kernel}-net-atl2
71%defattr(644,root,root,755)
72/lib/modules/%{_kernel_ver}/kernel/drivers/net/%{pname}*.ko*
This page took 0.066917 seconds and 4 git commands to generate.