Accepting request 867462 from benchmark

- Modernise spec file

OBS-URL: https://build.opensuse.org/request/show/867462
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/fhourstones?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2021-01-28 20:29:07 +00:00 committed by Git OBS Bridge
commit 3f24ca310c
2 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 28 12:32:15 UTC 2021 - Martin Pluskal <mpluskal@suse.com>
- Modernise spec file
-------------------------------------------------------------------
Mon Nov 14 09:02:29 UTC 2016 - mpluskal@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package fhourstones
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -30,11 +30,11 @@ This integer benchmark solves positions in the game of connect-4, as played
on a vertical 7x6 board.
%prep
%setup -q
%autosetup
%build
sed -i "s|-O3|%{optflags}|g" Makefile
make %{?_smp_mflags} all
%make_build all
echo '#!/bin/sh' >> %{name}
echo 'libexecdir=%{_libdir}/%{name}' >> %{name}
echo 'datadir=%{_datadir}/%{name}' >> %{name}
@ -49,7 +49,7 @@ install -D -p -m 0644 inputs \
%{buildroot}%{_datadir}/%{name}/inputs
%files
%doc LICENSE
%license LICENSE
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/%{name}