Martin Pluskal 2018-09-13 08:38:23 +00:00 committed by Git OBS Bridge
parent 521cf912a1
commit eee8c1e657

View File

@ -1,7 +1,7 @@
# #
# spec file for package rt-tests # spec file for package rt-tests
# #
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,73 +12,57 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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/
# #
# norootforbuild
Name: rt-tests 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 Version: 1.0
Release: 0.<RELEASE5> Release: 0
Requires: libnuma1 Summary: Realtime Kernel Testsuite
License: GPL-2.0-only
Group: System/Benchmark
URL: http://www.kernel.org/pub/linux/kernel/people/tglx/rt-tests/
Source0: %{name}-%{version}.tar.xz Source0: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libnuma-devel
# rt-tests doesn't build on s390, s390x, ia64, ppc, ppc64, %ix86 # rt-tests doesn't build on s390, s390x, ia64, ppc, ppc64, %ix86
ExclusiveArch: x86_64 ExclusiveArch: x86_64
%description %description
Realtime Kernel Testsuite which measures Realtime attributes of the Realtime Kernel Testsuite which measures Realtime attributes of the Kernel:
Kernel: Timer and signal latency and the functionality of Priority Timer and signal latency and the functionality of Priority Inheritance
Inheritance Mutexes. Mutexes.
Authors:
--------
Thomas Gleixner <tglx@linutronix.de>
Clark Williams <williams@redhat.com>
%prep %prep
%setup -n rt-tests %setup -q -n rt-tests
%build %build
CFLAGS=$RPM_OPT_FLAGS make NUMA=1 %{?jobs:-j%jobs} CFLAGS="%{optflags}" make NUMA=1 %{?_smp_mflags}
%install %install
mkdir -p ${RPM_BUILD_ROOT}/%{_bindir} ${RPM_BUILD_ROOT}/%{_mandir}/man8/ mkdir -p %{buildroot}/%{_bindir} %{buildroot}/%{_mandir}/man8/
install -m 755 cyclictest ${RPM_BUILD_ROOT}/%{_bindir} install -m 755 cyclictest %{buildroot}/%{_bindir}
install -m 755 pi_stress ${RPM_BUILD_ROOT}/%{_bindir} install -m 755 pi_stress %{buildroot}/%{_bindir}
install -m 755 pip_stress ${RPM_BUILD_ROOT}/%{_bindir} install -m 755 pip_stress %{buildroot}/%{_bindir}
install -m 755 pmqtest ${RPM_BUILD_ROOT}/%{_bindir} install -m 755 pmqtest %{buildroot}/%{_bindir}
install -m 755 rt-migrate-test ${RPM_BUILD_ROOT}/%{_bindir} install -m 755 rt-migrate-test %{buildroot}/%{_bindir}
install -m 755 signaltest ${RPM_BUILD_ROOT}/%{_bindir} install -m 755 signaltest %{buildroot}/%{_bindir}
install -m 755 ptsematest ${RPM_BUILD_ROOT}/%{_bindir} install -m 755 ptsematest %{buildroot}/%{_bindir}
install -m 755 sigwaittest ${RPM_BUILD_ROOT}/%{_bindir} install -m 755 sigwaittest %{buildroot}/%{_bindir}
install -m 755 svsematest ${RPM_BUILD_ROOT}/%{_bindir} install -m 755 svsematest %{buildroot}/%{_bindir}
install -m 755 hackbench ${RPM_BUILD_ROOT}/%{_bindir} install -m 755 hackbench %{buildroot}/%{_bindir}
install -m 644 src/cyclictest/cyclictest.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/ install -m 644 src/cyclictest/cyclictest.8 %{buildroot}/%{_mandir}/man8/
install -m 644 src/pi_tests/pi_stress.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/ install -m 644 src/pi_tests/pi_stress.8 %{buildroot}/%{_mandir}/man8/
install -m 644 src/pmqtest/pmqtest.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/ install -m 644 src/pmqtest/pmqtest.8 %{buildroot}/%{_mandir}/man8/
install -m 644 src/ptsematest/ptsematest.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/ install -m 644 src/ptsematest/ptsematest.8 %{buildroot}/%{_mandir}/man8/
install -m 644 src/sigwaittest/sigwaittest.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/ install -m 644 src/sigwaittest/sigwaittest.8 %{buildroot}/%{_mandir}/man8/
install -m 644 src/svsematest/svsematest.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/ install -m 644 src/svsematest/svsematest.8 %{buildroot}/%{_mandir}/man8/
install -m 644 src/hackbench/hackbench.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/ install -m 644 src/hackbench/hackbench.8 %{buildroot}/%{_mandir}/man8/
%files %files
%defattr(-, root, root)
%doc ChangeLog %doc ChangeLog
%doc COPYING %license COPYING
%{_bindir}/* %{_bindir}/*
%{_mandir}/man8/* %{_mandir}/man8/*
%clean
rm -rf $RPM_BUILD_ROOT
%changelog %changelog