File kcbench.spec of Package kcbench

#
# spec file for package kcbench
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           kcbench
Version:        0.9.5
Release:        0
Summary:        Benchmark that compiles a Linux kernel
License:        MIT
URL:            https://gitlab.com/knurd42/kcbench
Source:         https://gitlab.com/knurd42/kcbench/-/archive/v%{version}/kcbench-%{version}.tar.bz2
BuildRequires:  make
BuildArch:      noarch

# needed for compiling a modern Linux kernels:
Requires:       make
Requires:       gcc
Requires:       binutils
Requires:       bison
Requires:       flex
# for awk
Requires:       gawk
Requires:       time
Requires:       bc
# for lscpu
Requires:       util-linux
# for pkill
Requires:       procps
Requires:       /usr/bin/pkg-config
Requires:       libelf-devel
Requires:       openssl-devel
Requires:       curl
Requires:       perl-base

%description
Compiles a Linux kernel to benchmark a system or test its stability.

%prep
%setup -q

%build

%install
%make_install PREFIX=/usr/

rm -f %{buildroot}/usr/share/doc/kcbench/ChangeLog
rm -f %{buildroot}/usr/share/doc/kcbench/README.md

%files
%license LICENSE
%doc ChangeLog README.md
%{_bindir}/kcbench
%{_bindir}/kcbenchrate
%{_mandir}/man1/*

%changelog
openSUSE Build Service is sponsored by