!1 init package

Merge pull request !1 from myeuler/master
This commit is contained in:
openeuler-ci-bot 2020-09-02 09:10:45 +08:00 committed by Gitee
commit 843b1ee043
3 changed files with 81 additions and 0 deletions

BIN
unixbench-5.1.3.tar.gz Normal file

Binary file not shown.

22
unixbench-add-HOWTO.patch Normal file
View File

@ -0,0 +1,22 @@
diff -urN byte-unixbench-5.1.3/UnixBench/HOWTO byte-unixbench-5.1.3-bak/UnixBench/HOWTO
--- byte-unixbench-5.1.3/UnixBench/HOWTO 1970-01-01 08:00:00.000000000 +0800
+++ byte-unixbench-5.1.3-bak/UnixBench/HOWTO 2020-05-03 00:15:21.446228140 +0800
@@ -0,0 +1,18 @@
+This is an ugly usage solution for unixbench because it's not a friendly package software.
+
+So, what we do is to keep all files and rebuild locally.
+
+mkdir xxx/
+cp -r /opt/unixbench/src xxx/
+cp /opt/unixbench/Run xxx/
+cp /opt/unixbench/Makefile xxx/
+chmod +x xxx/Run
+mkdir xxx/pgms
+cp /opt/unixbench/pgms/* xxx/pgms/
+mkdir xxx/testdir
+mkdir xxx/tmp
+mkdir xxx/results
+cd xxx
+./Run
+
+do whatever you want.

59
unixbench.spec Normal file
View File

@ -0,0 +1,59 @@
%global debug_package %{nil}
Name: unixbench
Version: 5.1.3
Release: 1
Summary: UnixBench is the original BYTE UNIX benchmark suite, updated and revised by many people over the years
License: GPL2
URL: https://github.com/kdlucas/byte-unixbench
Source0: https://github.com/kdlucas/byte-unixbench/archive/%{name}-%{version}.tar.gz
Patch0: unixbench-add-HOWTO.patch
BuildRequires: gcc
%description
The purpose of UnixBench is to provide a basic indicator of the performance of a Unix-like system; hence, multiple tests are used to test various aspects of the system's performance. These test results are then compared to the scores from a baseline system to produce an index value, which is generally easier to handle than the raw scores. The entire set of index values is then combined to make an overall index for the system
For the reason that this is not a packaging friendly software, please refer to HOWTO to find out how to use this package
%prep
%setup -q -n byte-%{name}-%{version}/
%patch0 -p1
%build
cd UnixBench
%make_build
%install
cd UnixBench
mkdir -p %{buildroot}/opt/%{name}/pgms
mkdir -p %{buildroot}/opt/%{name}/src
install -m 0644 src/* %{buildroot}/opt/%{name}/src/
install -m 0644 README %{buildroot}/opt/%{name}/
install -m 0644 USAGE %{buildroot}/opt/%{name}/
install -m 0644 HOWTO %{buildroot}/opt/%{name}/
install -m 0644 Makefile %{buildroot}/opt/%{name}/
install -m 0755 Run %{buildroot}/opt/%{name}/
install -m 0755 pgms/gfx-x11 %{buildroot}/opt/%{name}/pgms/
install -m 0755 pgms/multi.sh %{buildroot}/opt/%{name}/pgms/
install -m 0755 pgms/*.sh %{buildroot}/opt/%{name}/pgms/
install -m 0644 pgms/index.base %{buildroot}/opt/%{name}/pgms/
install -m 0644 pgms/unixbench.logo %{buildroot}/opt/%{name}/pgms/
%pre
%preun
%post
%postun
%check
%files
/opt/%{name}/*
%changelog
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com>
- Package init