File phoronix-test-suite.spec of Package phoronix-test-suite
#
# spec file for package phoronix-test-suite
#
# Copyright (c) 2012 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/
#
Name: phoronix-test-suite
Version: 4.8.4
Release: 0
Summary: Comprehensive test and benchmarking platform
License: GPL-3.0
Group: System/Benchmark
Url: http://www.phoronix-test-suite.com/
Source0: %{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE phoronix-test-suite-php-gtk-ini.patch
Patch0: phoronix-test-suite-php-gtk-ini.patch
# PATCH-FIX-SLE sles10_fixs.patch
Patch1: sles10_fixs.patch
Requires: php5
Requires: php5-curl
Requires: php5-dom
Requires: php5-gd
Requires: php5-json
Requires: php5-openssl
Requires: php5-pcntl
Requires: php5-posix
Requires: php5-zip
Requires: xdg-utils
#php5-gtk is not in Factory so for now use Recommends
Recommends: php5-gtk
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
%if 0%{?suse_version} > 1020
BuildRequires: fdupes
%endif
BuildArch: noarch
%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.
%prep
%setup -q -n %{name}
%patch0 -p1
%if 0%{?suse_version} <= 1020
%patch1 -p1
%endif
%build
%install
export DESTDIR=%{buildroot}
./install-sh ${_prefix}
%if 0%{?suse_version}
%suse_update_desktop_file -i -n %{name}
%suse_update_desktop_file -i -n %{name}-launcher
%endif
%if 0%{?suse_version} > 1020
%fdupes -s %{buildroot}
%endif
%files
%defattr(-,root,root)
%doc %{_datadir}/doc/%{name}
%{_mandir}/man1/%{name}.1.gz
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/*
%if 0%{?suse_version} > 1020
%{_datadir}/icons/hicolor/
%else
%{_datadir}/pixmaps/phoronix-test-suite.png
%{_datadir}/pixmaps/application-x-openbenchmarking.png
%endif
%config(noreplace) %{_sysconfdir}/bash_completion.d/*
%{_datadir}/mime/packages/*
%changelog