Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37417124
en ru br
Репозитории ALT

Группа :: Other
Пакет: phoronix-test-suite

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1

%define phpbase php8.1

Name: phoronix-test-suite
Version: 10.8.4
Release: alt1

Summary: An Automated, Open-Source Testing Framework
Summary(ru_RU.UTF8): п░п╡я┌п╬п╪п╟я┌п╦п╥п╦я─п╬п╡п╟п╫п╫п╟я▐ я│я─п╣п╢п╟ я┌п╣я│я┌п╦я─п╬п╡п╟п╫п╦я▐ я│ п╬я┌п╨я─я▀я┌я▀п╪ п╦я│я┘п╬п╢п╫я▀п╪ п╨п╬п╢п╬п╪

License: GPLv3+
Group: Other
URL: https://phoronix-test-suite.com

Source0: %name-%version.tar

BuildArch: noarch

BuildRequires: rpm-build-xdg
BuildRequires: desktop-file-utils
BuildRequires: systemd
BuildRequires: libappstream-glib

Requires: %phpbase
Requires: %phpbase-xml
Requires: %phpbase-json
Requires: %phpbase-openssl
Requires: %phpbase-gd
Requires: %phpbase-pdo_sqlite
Requires: %phpbase-posix
Requires: %phpbase-curl
Requires: %phpbase-sockets
Requires: hicolor-icon-theme

%add_findreq_skiplist %_datadir/phoronix-test-suite/ob-cache/test-profiles/*

%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
%setup
sed -i 's/functions\.sh/functions/' deploy/phoromatic-initd/phoromatic-client
grep -rl '.sh'  pts-core/external-test-dependencies/scripts | grep -v install-pclinuxos-packages.sh | xargs rm
grep -rl '.xml'  pts-core/external-test-dependencies/xml/ | grep -v ubuntu-packages.xml | grep -v pclinuxos-packages.xml | grep -v angstrom-packages.xml | grep -v xsl | xargs rm
sed -i 's/python/python3/' ob-cache/test-profiles/pts/cython-bench-1.0.0/install.sh
find . -name "*windows*" -exec rm {} \;
find . -name "*macosx**" -exec rm {} \;
find . -name "*.sh" -exec chmod +x {} \;

%build

%install
DESTDIR=%buildroot ./install-sh %_prefix
desktop-file-validate %buildroot/%_desktopdir/%name.desktop
desktop-file-validate %buildroot/%_desktopdir/%name-launcher.desktop
appstream-util validate-relax --nonet %buildroot/%_datadir/appdata/*.appdata.xml
install -vdm755 %buildroot/%_unitdir
mv %buildroot/%_prefix/%_unitdir/* %buildroot/%_unitdir
# drop packaging scripts
rm -rv %buildroot%_datadir/phoronix-test-suite/deploy/
# remove non for package script (due unneeded requires)
rm -rv %buildroot%_datadir/phoronix-test-suite/pts-core/static/sample-pts-client-update-script.sh

%files
%doc %_defaultdocdir/%name
%_datadir/%name
%_liconsdir/phoronix-test-suite.png
%_iconsdir/hicolor/64x64/mimetypes/application-x-openbenchmarking.png
%_bindir/%name
%_man1dir/%name.1*
%config(noreplace) %_sysconfdir/bash_completion.d/phoronix-test-suite
%_desktopdir/*
%_xdgmimedir/packages/*
%_datadir/appdata/%name.appdata.xml
%_unitdir/phoromatic-server.service
%_unitdir/phoromatic-client.service
%_unitdir/phoronix-result-server.service

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin