SPECS: kernel-net-r1000.spec - alt_kernel support
hawk
hawk at pld-linux.org
Thu Jan 18 09:09:19 CET 2007
Author: hawk Date: Thu Jan 18 08:09:19 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- alt_kernel support
---- Files affected:
SPECS:
kernel-net-r1000.spec (1.4 -> 1.5)
---- Diffs:
================================================================
Index: SPECS/kernel-net-r1000.spec
diff -u SPECS/kernel-net-r1000.spec:1.4 SPECS/kernel-net-r1000.spec:1.5
--- SPECS/kernel-net-r1000.spec:1.4 Sun Nov 26 03:26:56 2006
+++ SPECS/kernel-net-r1000.spec Thu Jan 18 09:09:13 2007
@@ -5,19 +5,20 @@
%bcond_without smp # don't build SMP module
%bcond_with verbose # verbose build (V=1)
#
+%define _name kernel-net-r1000
%define _rel 1
Summary: RTL8111B/RTL8168B/RTL8111/RTL8168 driver for Linux
Summary(pl): Sterownik dla Linuksa do kart RTL8111B/RTL8168B/RTL8111/RTL8168
-Name: kernel-net-r1000
+Name: kernel%{_alt_kernel}-net-r1000
Version: 1.04
Release: %{_rel}@%{_kernel_ver_str}
License: GPL v2
Group: Base/Kernel
Source0: ftp://202.65.194.18/cn/nic/r1000_v%{version}.tgz
# Source0-md5: 95ffba4436fbb866a7e68809eac3bfb9
-Patch0: %{name}-module_parm.patch
+Patch0: %{_name}-module_parm.patch
URL: http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=5&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false#RTL8111B/RTL8168B/RTL8111/RTL8168
-%{?with_dist_kernel:BuildRequires: kernel-module-build >= 3:2.6.7}
+%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.7}
BuildRequires: rpmbuild(macros) >= 1.330
Requires(post,postun): /sbin/depmod
%if %{with dist_kernel}
@@ -25,7 +26,7 @@
Requires(postun): %releq_kernel_up
%endif
Provides: kernel(r1000)
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRoot: %{tmpdir}/%{_name}-%{version}-root-%(id -u -n)
%description
This package contains the Linux driver for the Realtek
@@ -35,7 +36,7 @@
Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych
Realtek RTL8111B/RTL8168B/RTL8111/RTL8168.
-%package -n kernel-smp-net-r1000
+%package -n kernel%{_alt_kernel}-smp-net-r1000
Summary: RTL8111B/RTL8168B/RTL8111/RTL8168 driver for Linux SMP
Summary(pl): Sterownik dla Linuksa SMP do kart RTL8111B/RTL8168B/RTL8111/RTL8168
Release: %{_rel}@%{_kernel_ver_str}
@@ -47,11 +48,11 @@
%endif
Provides: kernel(r1000)
-%description -n kernel-smp-net-r1000
+%description -n kernel%{_alt_kernel}-smp-net-r1000
This package contains the Linux SMP driver for the Realtek
family of RTL8111B/RTL8168B/RTL8111/RTL8168 Ethernet network adapters.
-%description -n kernel-smp-net-r1000 -l pl
+%description -n kernel%{_alt_kernel}-smp-net-r1000 -l pl
Ten pakiet zawiera sterownik dla Linuksa SMP do kart sieciowych
Realtek RTL8111B/RTL8168B/RTL8111/RTL8168.
@@ -71,25 +72,25 @@
%clean
rm -rf $RPM_BUILD_ROOT
-%post
+%post -n kernel%{_alt_kernel}-net-r1000
%depmod %{_kernel_ver}
-%postun
+%postun -n kernel%{_alt_kernel}-net-r1000
%depmod %{_kernel_ver}
-%post -n kernel-smp-net-r1000
+%post -n kernel%{_alt_kernel}-smp-net-r1000
%depmod %{_kernel_ver}smp
-%postun -n kernel-smp-net-r1000
+%postun -n kernel%{_alt_kernel}-smp-net-r1000
%depmod %{_kernel_ver}smp
-%files
+%files -n kernel%{_alt_kernel}-net-r1000
%defattr(644,root,root,755)
%doc README release_note.txt
/lib/modules/%{_kernel_ver}/kernel/drivers/net/*
%if %{with smp} && %{with dist_kernel}
-%files -n kernel-smp-net-r1000
+%files -n kernel%{_alt_kernel}-smp-net-r1000
%defattr(644,root,root,755)
%doc README release_note.txt
/lib/modules/%{_kernel_ver}smp/kernel/drivers/net/*
@@ -101,6 +102,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.5 2007/01/18 08:09:13 hawk
+- alt_kernel support
+
Revision 1.4 2006/11/26 02:26:56 shadzik
- cosmetics
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/kernel-net-r1000.spec?r1=1.4&r2=1.5&f=u
More information about the pld-cvs-commit
mailing list