File phoronix-test-suite.spec of Package phoronix-test-suite
#
# spec file for package phoronix-test-suite
#
# Copyright (c) 2015 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: 6.2.2
Release: 0
Summary: Comprehensive test and benchmarking platform
License: GPL-3.0
Group: System/Benchmark
Url: http://www.phoronix-test-suite.com/
Source0: http://www.phoronix.net/downloads/phoronix-test-suite/releases/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE phoronix-test-suite-php-gtk-ini.patch
Patch0: phoronix-test-suite-php-gtk-ini.patch
Patch1: SUSE.patch
BuildRequires: fdupes
BuildRequires: systemd-rpm-macros
BuildRequires: update-desktop-files
Requires: php5
Requires: php5-curl
Requires: php5-dom
Requires: php5-gd
Requires: php5-json
Requires: php5-openssl
Requires: php5-pcntl
# php5-posix seems to be provided by php5 now
#Requires: php5-posix
Requires: php5-zip
Requires: xdg-utils
#php5-gtk is not in Factory so for now use Recommends
#libqt4-devel
#gmp-devel
Recommends: php5-gtk
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%systemd_requires
%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
%patch1 -p1
%build
%install
export DESTDIR=%{buildroot}
./install-sh ${_prefix}
%suse_update_desktop_file -i -n %{name}
%suse_update_desktop_file -i -n %{name}-launcher
%fdupes -s %{buildroot}
mkdir %{buildroot}%{_sbindir}
ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rcphoromatic-client
ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rcphoromatic-server
%pre
%service_add_pre phoromatic-client.service phoromatic-server.service
%post
%desktop_database_post
%service_add_post phoromatic-client.service phoromatic-server.service
%preun
%service_del_preun phoromatic-client.service phoromatic-server.service
%postun
%desktop_database_post
%service_del_postun phoromatic-client.service phoromatic-server.service
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README.md
%doc %{_datadir}/doc/%{name}
%{_mandir}/man1/%{name}.1.gz
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/
%config(noreplace) %{_sysconfdir}/bash_completion.d/*
%{_datadir}/mime/packages/*
%dir %{_datadir}/appdata
%{_sbindir}/rcphoromatic-client
%{_sbindir}/rcphoromatic-server
%{_unitdir}/phoromatic-client.service
%{_unitdir}/phoromatic-server.service
%{_datadir}/appdata/phoronix-test-suite.appdata.xml
%changelog