SPECS: kernel-net-atl2.spec (NEW) - Initial Release

cactus cactus at pld-linux.org
Sat Jul 14 00:23:37 CEST 2007


Author: cactus                       Date: Fri Jul 13 22:23:37 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- Initial Release

---- Files affected:
SPECS:
   kernel-net-atl2.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/kernel-net-atl2.spec
diff -u /dev/null SPECS/kernel-net-atl2.spec:1.1
--- /dev/null	Sat Jul 14 00:23:37 2007
+++ SPECS/kernel-net-atl2.spec	Sat Jul 14 00:23:32 2007
@@ -0,0 +1,78 @@
+# $Revision$, $Date$
+#
+# 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*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/07/13 22:23:32  cactus
+- Initial Release
+
================================================================


More information about the pld-cvs-commit mailing list