diff --git a/unixbench-5.1.3.tar.gz b/unixbench-5.1.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..604c708a1abf2ca3cbf5f969a30ad7b0a2b507f1 Binary files /dev/null and b/unixbench-5.1.3.tar.gz differ diff --git a/unixbench-add-HOWTO.patch b/unixbench-add-HOWTO.patch new file mode 100644 index 0000000000000000000000000000000000000000..5eeaa4fddc54e88171ad2588cb7de7490151f9e8 --- /dev/null +++ b/unixbench-add-HOWTO.patch @@ -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. diff --git a/unixbench.spec b/unixbench.spec new file mode 100644 index 0000000000000000000000000000000000000000..1defd5b776220cb3ebebe581686a073f637a0e7a --- /dev/null +++ b/unixbench.spec @@ -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 +- Package init +