From 8b828cd8e5db09574141a9e793a149f7c2473adac40602e94f3f9b27d922eca3 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Mon, 14 Nov 2016 09:20:40 +0000 Subject: [PATCH] - Update to version 3.1+git.20150122: * - Initial package for version 3.1 OBS-URL: https://build.opensuse.org/package/show/benchmark/fhourstones?expand=0&rev=2 --- fhourstones-3.1+git.20150122.tar.xz | 3 ++ fhourstones.changes | 11 ++++++ fhourstones.spec | 60 +++++++++++++++++++++++++++++ 3 files changed, 74 insertions(+) create mode 100644 fhourstones-3.1+git.20150122.tar.xz create mode 100644 fhourstones.changes create mode 100644 fhourstones.spec diff --git a/fhourstones-3.1+git.20150122.tar.xz b/fhourstones-3.1+git.20150122.tar.xz new file mode 100644 index 0000000..759ebce --- /dev/null +++ b/fhourstones-3.1+git.20150122.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8108d136e878a67be4d82b9bd027e1cc12a6fae851e0dc528786860619019af4 +size 11296 diff --git a/fhourstones.changes b/fhourstones.changes new file mode 100644 index 0000000..7f6adcc --- /dev/null +++ b/fhourstones.changes @@ -0,0 +1,11 @@ +------------------------------------------------------------------- +Mon Nov 14 09:20:20 UTC 2016 - mpluskal@suse.com + +- Update to version 3.1+git.20150122: + * + +------------------------------------------------------------------- +Mon Nov 14 09:02:29 UTC 2016 - mpluskal@suse.com + +- Initial package for version 3.1 + diff --git a/fhourstones.spec b/fhourstones.spec new file mode 100644 index 0000000..b7abd52 --- /dev/null +++ b/fhourstones.spec @@ -0,0 +1,60 @@ +# +# spec file for package Fhourstones +# +# Copyright (c) 2016 SUSE LINUX 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: fhourstones +Version: 3.1+git.20150122 +Release: 0 +Summary: The Fhourstones Benchmark +License: BSD-2-Clause +Group: System/Benchmark +Url: https://tromp.github.io/c4/fhour.html +Source: https://tromp.github.io/c4/%{name}.tar.gz +BuildRequires: xz +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +This integer benchmark solves positions in the game of connect-4, as played +on a vertical 7x6 board. + +%prep +%setup -q -c %{name} + +%build +sed -i "s|-O3|%{optflags}|g" Makefile +make %{?_smp_mflags} all +echo '#!$/bin/sh' >> %{name} +echo 'libexecdir=${_libdir}/%{name}' >> %{name} +echo 'datadir=${DATADIR}' >> %{name} +echo 'exec $${libdir}/SearchGame < $${datadir}/inputs' >> %{name} + +%install +install -D -p -m 0755 %{name} \ + %{buildroot}%{_bindir}/%{name} +install -D -p -m 0755 SearchGame \ + %{buildroot}%{_libdir}/%{name}/SearchGame +install -D -p -m 0644 inputs \ + %{builrdoot}%{_datadir}/%{name}/inputs + +%files +%defattr(-,root,root) +%doc LICENCE +%{_bindir}/%{name} +%{_libdir}/%{name}/SearchGame +%{_datadir}/%{name}/inputs + +%changelog