LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File phoronix-test-suite.spec of Package phoronix-test-suite (Project openSUSE:Dropped)

#
# spec file for package phoronix-test-suite (Version 1.8.1)
#
# 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:        GPL v3 only
Group:          System/Benchmark
AutoReqProv:    on
Version:        1.8.1
Release:        1
Summary:        Comprehensive test and benchmarking platform
Url:            http://www.phoronix-test-suite.com/
Source0:        %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       php5, php5-gd, php5-gtk
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif
%if 0%{?suse_version} > 1020
BuildRequires:  fdupes
%endif
#BuildArchitectures: noarch
#ExclusiveArch: %ix86
#Authors:
#--------------
#	Phoronix

%description
The Phoronix Test Suite can be used for simply comparing your
computer's performance or internal quality assurance purposes under
Linux. Results from the Phoronix Test Suite are displayed in a results
viewer with optional support for uploading them to PTS Global. This
software is based upon the internal tools and extensive Linux
benchmarking work done by Phoronix since 2004, with input from tier-one
computer hardware vendors. The Phoronix Test Suite ships with over 50
tests and 20 suites.



Authors:
--------
    Various from phoronix.com, 
    CTCS2 integration Patrick Kirsch <pkirsch@suse.de>

%prep 
%setup

%build

%install
rm -rf %{buildroot}
mkdir %{buildroot}
mkdir %{buildroot}/usr
./install-sh %{buildroot}/usr
sed -i 's|%buildroot||g' %buildroot%_bindir/phoronix-test-suite
mkdir -p %buildroot/usr/share/applications
mv %buildroot/usr/share/phoronix-test-suite/pts-core/static/phoronix-test-suite.desktop %buildroot/usr/share/applications/.
mkdir -p %buildroot/usr/share/pixmaps
mv %buildroot/usr/share/icons/phoronix-test-suite.png %buildroot/usr/share/pixmaps/.
%if 0%{?suse_version}
%suse_update_desktop_file -r %{name} System Monitor
%endif
%if 0%{?suse_version} > 1020
%fdupes -s $RPM_BUILD_ROOT
%endif

%clean
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%dir %{_datadir}/phoronix-test-suite
%{_mandir}/man*/phoronix-test-suite*
%{_bindir}/phoronix-test-suite
%{_datadir}/phoronix-test-suite/*
%{_datadir}/applications/*
%doc
%{_datadir}/doc/*
/usr/share/pixmaps/*

%changelog
* Tue May 19 2009 joop_boonen@web.de
- Build version 1.8.1
- Some improvements to the spec file
- With improvements 1.2.1 package of some-guy <muhammedu@gmail.com>
* Thu Sep 04 2008 kyu@suse.de
- initial release