From: Bartłomiej Zimoń Date: Fri, 13 Jul 2007 22:23:32 +0000 (+0000) Subject: - Initial Release X-Git-Tag: auto/ti/atl2-2_0_4-1~12 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fatl2.git;a=commitdiff_plain;h=98c916e77ec2d0f98b131de29c2f3fef17794e51 - Initial Release Changed files: atl2.spec -> 1.1 --- 98c916e77ec2d0f98b131de29c2f3fef17794e51 diff --git a/atl2.spec b/atl2.spec new file mode 100644 index 0000000..f7be40d --- /dev/null +++ b/atl2.spec @@ -0,0 +1,67 @@ +# +# Conditional build: +%bcond_without dist_kernel # allow non-distribution kernel +%bcond_with verbose # verbose build (V=1) +# +%define _rel 1 +Summary: Attansic(R) L2 Fast Ethernet Adapter driver for Linux +Summary(pl.UTF-8): Sterownik do karty Attansic(R) L2 Fast Ethernet Adapter +Name: kernel%{_alt_kernel}-net-atl2 +Version: 1.4.0.20 +Release: %{_rel}@%{_kernel_ver_str} +License: GPL v2 +Group: Base/Kernel +Source0: http://starowa.one.pl/~uzi/pld/atl2-%{version}.tar.gz +# Source0-md5: 196771fa8e7164d4c9beabcfdf4058b5 +URL: http://support.attansic.com +%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2} +BuildRequires: rpmbuild(macros) >= 1.379 +BuildRequires: unrar +Requires(post,postun): /sbin/depmod +%if %{with dist_kernel} +%requires_releq_kernel +Requires(postun): %releq_kernel +%endif +Provides: kernel(atl2) +Obsoletes: atl2 +Obsoletes: linux-net-atl2 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This package contains the Linux driver for the +Attansic(R) L2 Fast Ethernet network Adapter. + +%description -l pl.UTF-8 +Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych +Attansic(R) L2 Fast Ethernet Adapter. + +%prep +%setup -q -n atl2-%{version} + +cat > src/Makefile <<'EOF' +CFILES = at_main.c at_hw.c at_param.c at_ethtool.c kcompat.c +obj-m := atl2.o +atl2-objs := $(CFILES:.c=.o) +EOF + +%build +%build_kernel_modules -C src -m atl2 + +%install +rm -rf $RPM_BUILD_ROOT +%install_kernel_modules -m src/atl2 -d kernel/drivers/net -n atl2 -s current + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +%depmod %{_kernel_ver} + +%postun +%depmod %{_kernel_ver} + +%files +%defattr(644,root,root,755) +%doc atl2.7 COPYING readme release_note.txt ldistrib.txt +/etc/modprobe.d/%{_kernel_ver}/atl2.conf +/lib/modules/%{_kernel_ver}/kernel/drivers/net/atl2*.ko*