SPECS: sk98lin.spec (NEW) - vendor driver for Marvell Yukon gigabit adapter...

hawk hawk at pld-linux.org
Wed May 7 23:16:20 CEST 2008


Author: hawk                         Date: Wed May  7 21:16:20 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- vendor driver for Marvell Yukon gigabit adapters, v10.50.1.3, repackaged
  from original tarball, only sources for kernel 2.6 were left, Makefile
  was updated and all proprietary (non GPL) stuff was removed

---- Files affected:
SPECS:
   sk98lin.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/sk98lin.spec
diff -u /dev/null SPECS/sk98lin.spec:1.1
--- /dev/null	Wed May  7 23:16:20 2008
+++ SPECS/sk98lin.spec	Wed May  7 23:16:14 2008
@@ -0,0 +1,103 @@
+# $Revision$, $Date$
+#
+# TODO:
+#   - NAPI support is not ported and fails to build with
+#     kernels >= 2.6.24, it may be workarounded by disabling
+#     CONFIG_NETCONSOLE in kernel configuration
+#
+# Conditional build:
+%bcond_without	dist_kernel	# allow non-distribution kernel
+%bcond_with	verbose		# verbose build (V=1)
+#
+%define		pname	sk98lin
+%define		rel	0.1
+#
+Summary:	Linux driver for family of Marvell Yukon adapters
+Summary(pl.UTF-8):	Sterownik do kart z rodziny Marvell Yukon
+Name:		%{pname}%{_alt_kernel}
+Version:	10.50.1.3
+Release:	%{rel}
+License:	GPL v2
+Group:		Base/Kernel
+# Repackaged from original tarball, only sources for kernel 2.6 were left,
+# Makefile was updated and all proprietary (non GPL) stuff was removed.
+Source0:	%{pname}-%{version}.tar.bz2
+# Source0-md5:	fff67831eb00a1687f67c11afa6292c6
+Patch0:		%{pname}-2.6.24.patch
+URL:		http://www.marvell.com/
+%{?with_dist_kernel:BuildRequires:	kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
+BuildRequires:	rpmbuild(macros) >= 1.379
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package contains the Linux driver for Marvell Yukon family of
+adapters.
+
+%description -l pl.UTF-8
+Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych z rodziny
+Marvell Yukon.
+
+%package -n kernel%{_alt_kernel}-net-sk98lin
+Summary:	Linux driver for family of Marvell Yukon adapters
+Summary(pl.UTF-8):	Sterownik do kart z rodziny Marvell Yukon
+Release:	%{rel}@%{_kernel_ver_str}
+Group:		Base/Kernel
+Requires(post,postun):	/sbin/depmod
+%if %{with dist_kernel}
+%requires_releq_kernel
+Requires(postun):	%releq_kernel
+%endif
+Provides:	kernel(sk98lin)
+Obsoletes:	sk98lin
+Obsoletes:	linux-net-sk98lin
+
+%description -n kernel%{_alt_kernel}-net-sk98lin
+This package contains the Linux driver for Marvell Yukon family of
+adapters.
+
+%description -n kernel%{_alt_kernel}-net-sk98lin -l pl.UTF-8
+Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych z rodziny
+Marvell Yukon.
+
+%prep
+%setup -q -n %{pname}-%{version}
+%patch0 -p1
+
+%build
+%build_kernel_modules -m %{pname}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%install_kernel_modules -m %{pname} -d kernel/drivers/net -n %{pname} -s current
+# blacklist kernel module
+cat > $RPM_BUILD_ROOT/etc/modprobe.d/%{_kernel_ver}/%{pname}.conf <<'EOF'
+blacklist sk98lin
+alias sk98lin sk98lin-current
+EOF
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-n kernel%{_alt_kernel}-net-sk98lin
+%depmod %{_kernel_ver}
+
+%postun	-n kernel%{_alt_kernel}-net-sk98lin
+%depmod %{_kernel_ver}
+
+%files	-n kernel%{_alt_kernel}-net-sk98lin
+%defattr(644,root,root,755)
+%doc sk98lin.4 sk98lin.htm sk98lin.txt
+/etc/modprobe.d/%{_kernel_ver}/%{pname}.conf
+/lib/modules/%{_kernel_ver}/kernel/drivers/net/%{pname}*.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  2008-05-07 21:16:14  hawk
+- vendor driver for Marvell Yukon gigabit adapters, v10.50.1.3, repackaged
+  from original tarball, only sources for kernel 2.6 were left, Makefile
+  was updated and all proprietary (non GPL) stuff was removed
+
================================================================


More information about the pld-cvs-commit mailing list