From f2ce7cd54e8b3e34ec25993a78e95f470f8f0f77 Mon Sep 17 00:00:00 2001 From: Thorsten Leemhuis Date: Oct 15 2007 16:06:18 +0000 Subject: import package -- review #326841 --- diff --git a/.cvsignore b/.cvsignore index e69de29..1f3ee1c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +linux-2.6.20.tar.bz2 diff --git a/kcbench-data-README b/kcbench-data-README new file mode 100644 index 0000000..5a46030 --- /dev/null +++ b/kcbench-data-README @@ -0,0 +1,2 @@ +Files from this package are used by kcbench - a script that compiles a Linux +kernel to benchmark a system or test system stability. diff --git a/kcbench-data.spec b/kcbench-data.spec new file mode 100644 index 0000000..a79c4b9 --- /dev/null +++ b/kcbench-data.spec @@ -0,0 +1,76 @@ +Name: kcbench-data +Version: 0.1 +Release: 2 +Summary: Kernel sources to be used by kcbench + +Group: Applications/System +License: GPLv2 +URL: http://fedoraproject.org/wiki/Packages/kcbench +Source1: %{name}-README +Source20: http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.tar.bz2 + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +Requires: kcbench +# Require the latest package, to avoid people installing this +# and wondering what it's about +Requires: %{name}-2.6.20 = %{version}-%{release} + +%description +Linux Kernel sources to be compiled by kcbench to benchmark system +performance or test system stability. + + +%package 2.6.20 +Summary: Kernel sources from 2.6.20 to be used by kcbench +Group: Applications/System +Requires: %{name} = %{version}-%{release} +Provides: kcbench-datafiles = %{version}-%{release} +# needed for compiling a kernel: +Requires: make gcc binutils + +%description 2.6.20 +Linux Kernel sources 2.6.20 to be compiled by kcbench to benchmark system +performance or test system stability. + + +%prep +%setup -q -c -T +echo "Nothing to prep" + + +%build +echo "Nothing to build" + + +%install +rm -rf ${RPM_BUILD_ROOT} +install -D -p -m 0644 %{SOURCE1} ./README +mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/%{name} +tar -xjf %{SOURCE20} -C ${RPM_BUILD_ROOT}%{_datadir}/%{name} --exclude='linux-2.6.20/Documentation' + + +%clean +rm -rf ${RPM_BUILD_ROOT} + + +%files +%defattr(-,root,root,-) +%doc README +%dir %{_datadir}/%{name}/ + + +%files 2.6.20 +%defattr(-,root,root,-) +%{_datadir}/%{name}/linux-2.6.20 + + +%changelog +* Sat Oct 13 2007 Thorsten Leemhuis - 0.1-2 +- require make gcc and binutils, needed for kernel compile +- exclude Documentation/ dir from kernel-sources +- include a README file + +* Mon Oct 01 2007 Thorsten Leemhuis - 0.1-1 +- initial package diff --git a/sources b/sources index e69de29..6671552 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +34b0f354819217e6a345f48ebbd8f13e linux-2.6.20.tar.bz2