0ae8e18
Name:           kcbench-data
0ae8e18
Version:        0.1
0ae8e18
Release:        2
0ae8e18
Summary:        Kernel sources to be used by kcbench
0ae8e18
0ae8e18
Group:          Applications/System
0ae8e18
License:        GPLv2
0ae8e18
URL:            http://fedoraproject.org/wiki/Packages/kcbench
0ae8e18
Source1:        %{name}-README
0ae8e18
Source20:       http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.tar.bz2
0ae8e18
0ae8e18
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
0ae8e18
BuildArch:      noarch
0ae8e18
0ae8e18
Requires:       kcbench
0ae8e18
# Require the latest package, to avoid people installing this
0ae8e18
# and wondering what it's about
0ae8e18
Requires:       %{name}-2.6.20 = %{version}-%{release}
0ae8e18
0ae8e18
%description
0ae8e18
Linux Kernel sources to be compiled by kcbench to benchmark system
0ae8e18
performance or test system stability.
0ae8e18
0ae8e18
0ae8e18
%package 2.6.20
0ae8e18
Summary:        Kernel sources from 2.6.20 to be used by kcbench
0ae8e18
Group:          Applications/System
0ae8e18
Requires:       %{name} = %{version}-%{release}
0ae8e18
Provides:       kcbench-datafiles = %{version}-%{release}
0ae8e18
# needed for compiling a kernel:
0ae8e18
Requires:       make gcc binutils
0ae8e18
0ae8e18
%description 2.6.20
0ae8e18
Linux Kernel sources 2.6.20 to be compiled by kcbench to benchmark system
0ae8e18
performance or test system stability.
0ae8e18
0ae8e18
0ae8e18
%prep
0ae8e18
%setup -q -c -T
0ae8e18
echo "Nothing to prep"
0ae8e18
0ae8e18
0ae8e18
%build
0ae8e18
echo "Nothing to build"
0ae8e18
0ae8e18
0ae8e18
%install
0ae8e18
rm -rf ${RPM_BUILD_ROOT}
0ae8e18
install -D -p -m 0644 %{SOURCE1} ./README
0ae8e18
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/%{name}
0ae8e18
tar -xjf %{SOURCE20} -C ${RPM_BUILD_ROOT}%{_datadir}/%{name} --exclude='linux-2.6.20/Documentation'
0ae8e18
0ae8e18
0ae8e18
%clean
0ae8e18
rm -rf ${RPM_BUILD_ROOT}
0ae8e18
0ae8e18
0ae8e18
%files
0ae8e18
%defattr(-,root,root,-)
0ae8e18
%doc README
0ae8e18
%dir %{_datadir}/%{name}/
0ae8e18
0ae8e18
0ae8e18
%files 2.6.20
0ae8e18
%defattr(-,root,root,-)
0ae8e18
%{_datadir}/%{name}/linux-2.6.20
0ae8e18
0ae8e18
0ae8e18
%changelog
0ae8e18
* Sat Oct 13 2007 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]org> - 0.1-2
0ae8e18
- require make gcc and binutils, needed for kernel compile
0ae8e18
- exclude Documentation/ dir from kernel-sources
0ae8e18
- include a README file
0ae8e18
0ae8e18
* Mon Oct 01 2007 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]org> - 0.1-1
0ae8e18
- initial package