%global commit0 6be84b0b38b8f37dcb69da417d242bd92dd6f258 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: phoronix-test-suite Version: 10.8.4 Release: git^%{shortcommit0} Summary: Comprehensive Linux Benchmarking System License: GPL-3.0-or-later URL: https://github.com/phoronix-test-suite/phoronix-test-suite/ Source0: %{url}/archive/%{commit0}.tar.gz BuildArch: noarch BuildRequires: desktop-file-utils BuildRequires: systemd BuildRequires: libappstream-glib BuildRequires: appdata-tools Requires(post): systemd Requires(preun): systemd Requires(postun): systemd Requires: php-cli Requires: php-xml Requires: php-json Requires: php-openssl Requires: php-gd Requires: php-sqlite3 Requires: php-posix Requires: php-curl Requires: hicolor-icon-theme %description The Phoronix Test Suite is the most comprehensive testing and benchmarking platform available for the Linux operating system. This software is designed to effectively carry out both qualitative and quantitative benchmarks in 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 users only for confirmation of actions. %prep %autosetup -n %{name}-%{commit0} %build # Nothing needed here %install export DESTDIR=%{buildroot} ./install-sh %{_prefix} desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}-launcher.desktop # appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*.metainfo.xml %post %systemd_post phoromatic-client.service %systemd_post phoromatic-server.service %systemd_post phoronix-result-server.service %postun %systemd_postun_with_restart phoromatic-client.service %systemd_postun_with_restart phoromatic-server.service %systemd_postun_with_restart phoronix-result-server.service %preun %systemd_preun phoromatic-client.service %systemd_preun phoromatic-server.service %systemd_preun phoronix-result-server.service %files %doc %{_datadir}/doc/%{name} %{_datadir}/%{name} %{_datadir}/icons/hicolor/48x48/apps/phoronix-test-suite.png %{_datadir}/icons/hicolor/64x64/mimetypes/application-x-openbenchmarking.png %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %config(noreplace) %{_sysconfdir}/bash_completion.d %{_datadir}/applications/* %{_datadir}/mime/packages/* %{_datadir}/metainfo/*metainfo.xml %{_unitdir}/phoromatic-client.service %{_unitdir}/phoromatic-server.service %{_unitdir}/phoronix-result-server.service %changelog %autochangelog