File phoronix-test-suite-2.2.0.spec of Package PTS

#
# spec file for package phoronix test suite (Version 2.2.0)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH,Nuernberg,Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners,unless otherwise agreed
# upon.The license for this file,and modifications and additions to the
# file,is the same license as for the pristine package itself(unless the 
# license for the pristine package is not an Open Source License,in which
# case the license is the MIT License).An "Open Source License" is a 
# license that conforms to the Open Source Definition(Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild
Name:   phoronix-test-suite
License: GNU GPLv3 
Summary: The most comprehensive testing and benchmarking platform for the Linux
URL: http://www.phoronix-test-suite.com/
Version: 2.2.0
Release: 1
Autoreqprov: on
Source0: %{name}-%{version}.tar.bz2
#For subpackage creation
Source1: ctcstools-%{version}.tar.bz2	
Patch:   run-PTS-automaticly.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: SUSE internal

%description
This software is designed to effectively carry out both qualitative and quantitative benchmarks is a clean,reproducible,and easy-to-use manner.
The Phoronix Test Suite consists of a lightweight processing core(pts-core) with each benchmark consisting of an XML-based profile with related resource scripts.The process from the benchmark installation,to the actual benchmarking,to the parsing of important hardware and software components is heavily automated and completely repeatable,asking usrs only for confirmation of actions.

%package ctcs-glue
Summary:  The let-pts-be-run-via-ctcs glue
Group:    SUSE internal
Autoreqprov: on
Requires:    ctcs2 >= 0.1.6
Requires:    phoronix-test-suite = %{version}

%description ctcs-glue
This package contains the glue for phoronix-test-suite into the ctcs testing framework.

%prep
%setup -q -n %{name} -a1
%patch -p1

%build

%install
export DESTDIR=${RPM_BUILD_ROOT}
./install-sh 
rm -f $RPM_BUILD_ROOT/usr/share/applications/%{name}.desktop

mkdir -p $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
mkdir -p $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
mkdir -p $RPM_BUILD_ROOT/usr/lib/ctcs2/bin/phoronix-test-suite
cp ctcstools-2.2.0/pts_apache-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_apache.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_aio-stress-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_aio-stress.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_blogbench-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_blogbench.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_bork-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_bork.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_build-apache-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_build-apache.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_build-imagemagick-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_build-imagemagick.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_build-linux-kernel-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_build-linux-kernel.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_build-mplayer-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_build-mplayer.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_byte-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_byte.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_c-ray-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_c-ray.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_cachebench-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_cachebench.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_compliance-acpi-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_compliance-acpi.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_compliance-sensors-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_compliance-sensors.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_compress-7zip-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_compress-7zip.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_compress-gzip-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_compress-gzip.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_compress-lzma-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_compress-lzma.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_compress-pbzip2-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_compress-pbzip2.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_crafty-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_crafty.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_dcraw-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_dcraw.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_encode-ape-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_encode-ape.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_encode-flac-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_encode-flac.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_encode-mp3-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_encode-mp3.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_encode-ogg-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_encode-ogg.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_encode-wavpack-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_encode-wavpack.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_espeak-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_espeak.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
cp ctcstools-2.2.0/pts_iozone-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools-2.2.0/pts_iozone.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
ln -s ../../../../bin/phoronix-test-suite $RPM_BUILD_ROOT/usr/lib/ctcs2/bin/phoronix-test-suite

# now fix file permissions
# no suid root
# no world writable
find $RPM_BUILD_ROOT -type f -print0 |xargs -0 chmod -c o-w,u-s


%files
%defattr(-,root,root)
/usr/bin/phoronix-test-suite
/usr/share/doc/phoronix-test-suite
/usr/share/phoronix-test-suite
%config /etc/bash_completion.d/phoronix-test-suite
#/usr/share/applications/phoronix-test-suite.desktop
/usr/share/icons/phoronix-test-suite.png
/usr/share/man/man1/phoronix-test-suite.1.gz

%files ctcs-glue
%defattr(-,root,root)
/usr/lib/ctcs2

%clean
rm -rf $RPM_BUILD_ROOT

%changelog

openSUSE Build Service is sponsored by