]> git.pld-linux.org Git - packages/atl2.git/blame - atl2.spec
- Initial Release
[packages/atl2.git] / atl2.spec
CommitLineData
98c916e7
BZ
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 karty Attansic(R) L2 Fast Ethernet Adapter
9Name: kernel%{_alt_kernel}-net-atl2
10Version: 1.4.0.20
11Release: %{_rel}@%{_kernel_ver_str}
12License: GPL v2
13Group: Base/Kernel
14Source0: http://starowa.one.pl/~uzi/pld/atl2-%{version}.tar.gz
15# Source0-md5: 196771fa8e7164d4c9beabcfdf4058b5
16URL: http://support.attansic.com
17%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
18BuildRequires: rpmbuild(macros) >= 1.379
19BuildRequires: unrar
20Requires(post,postun): /sbin/depmod
21%if %{with dist_kernel}
22%requires_releq_kernel
23Requires(postun): %releq_kernel
24%endif
25Provides: kernel(atl2)
26Obsoletes: atl2
27Obsoletes: linux-net-atl2
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31This package contains the Linux driver for the
32Attansic(R) L2 Fast Ethernet network Adapter.
33
34%description -l pl.UTF-8
35Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych
36Attansic(R) L2 Fast Ethernet Adapter.
37
38%prep
39%setup -q -n atl2-%{version}
40
41cat > src/Makefile <<'EOF'
42CFILES = at_main.c at_hw.c at_param.c at_ethtool.c kcompat.c
43obj-m := atl2.o
44atl2-objs := $(CFILES:.c=.o)
45EOF
46
47%build
48%build_kernel_modules -C src -m atl2
49
50%install
51rm -rf $RPM_BUILD_ROOT
52%install_kernel_modules -m src/atl2 -d kernel/drivers/net -n atl2 -s current
53
54%clean
55rm -rf $RPM_BUILD_ROOT
56
57%post
58%depmod %{_kernel_ver}
59
60%postun
61%depmod %{_kernel_ver}
62
63%files
64%defattr(644,root,root,755)
65%doc atl2.7 COPYING readme release_note.txt ldistrib.txt
66/etc/modprobe.d/%{_kernel_ver}/atl2.conf
67/lib/modules/%{_kernel_ver}/kernel/drivers/net/atl2*.ko*
This page took 0.264537 seconds and 4 git commands to generate.