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 <fedora[AT]leemhuis[DOT]org> - 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 <fedora[AT]leemhuis[DOT]org> - 0.1-1
- initial package