File will-it-scale.spec of Package will-it-scale
#
# spec file for package will-it-scale
#
# Copyright (c) 2022 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: will-it-scale
Version: 0
Release: 0
Summary: Some performance testcases
License: MIT
URL: https://github.com/antonblanchard/will-it-scale.git
BuildRequires: pkgconfig(hwloc)
%description
Will It Scale takes a testcase and runs it from 1 through to n parallel copies to see if the testcase will scale. It builds both a process and threads based test in order to see any differences between the two.
%prep
rm -rf %_builddir/%name-%version
mv %_sourcedir/%name-%version %_builddir/%name-%version
%setup -c -T -D
%autopatch -p1
%build
find -type f -exec chmod -c 444 '{}' +
%make_build CFLAGS='%optflags'
%install
d='%buildroot%_bindir'
mkdir -p "${d}"
mv -t "${d}" *_processes *_threads
%files
%doc README.md
%doc *.py
%doc *.js
%_bindir/*
%changelog