SHA256
1
0
forked from pool/rt-tests
rt-tests/rt-tests.spec

85 lines
2.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package rt-tests
#
# Copyright (c) 2012 SUSE LINUX Products 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/
#
# norootforbuild
Name: rt-tests
BuildRequires: libnuma-devel
Url: http://www.kernel.org/pub/linux/kernel/people/tglx/rt-tests/
License: GPL-2.0
Group: System/Benchmark
AutoReqProv: on
Summary: Realtime Kernel Testsuite
Version: 1.0
Release: 0.<RELEASE5>
Requires: libnuma1
Source0: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# rt-tests doesn't build on s390, s390x, ia64, ppc, ppc64, %ix86
ExclusiveArch: x86_64
%description
Realtime Kernel Testsuite which measures Realtime attributes of the
Kernel: Timer and signal latency and the functionality of Priority
Inheritance Mutexes.
Authors:
--------
Thomas Gleixner <tglx@linutronix.de>
Clark Williams <williams@redhat.com>
%prep
%setup -n rt-tests
%build
CFLAGS=$RPM_OPT_FLAGS make NUMA=1 %{?jobs:-j%jobs}
%install
mkdir -p ${RPM_BUILD_ROOT}/%{_bindir} ${RPM_BUILD_ROOT}/%{_mandir}/man8/
install -m 755 cyclictest ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 pi_stress ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 pip_stress ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 pmqtest ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 rt-migrate-test ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 signaltest ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 ptsematest ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 sigwaittest ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 svsematest ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 hackbench ${RPM_BUILD_ROOT}/%{_bindir}
install -m 644 src/cyclictest/cyclictest.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/
install -m 644 src/pi_tests/pi_stress.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/
install -m 644 src/pmqtest/pmqtest.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/
install -m 644 src/ptsematest/ptsematest.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/
install -m 644 src/sigwaittest/sigwaittest.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/
install -m 644 src/svsematest/svsematest.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/
install -m 644 src/hackbench/hackbench.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/
%files
%defattr(-, root, root)
%doc ChangeLog
%doc COPYING
%{_bindir}/*
%{_mandir}/man8/*
%clean
rm -rf $RPM_BUILD_ROOT
%changelog