import tuned-profiles-nfv-host-bin-0-0.1.20180302git1edfa966.el8

This commit is contained in:
CentOS Sources 2019-05-07 08:25:08 -04:00 committed by Stepan Oksanichenko
commit f3892d5bef
3 changed files with 50 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
SOURCES/kvm-unit-tests-1edfa966328dfc824e9b0351087bbfaf699dce04.tar.gz

View File

@ -0,0 +1 @@
4836fa8230048d3a8c5ecd2708418efcb08e4997 SOURCES/kvm-unit-tests-1edfa966328dfc824e9b0351087bbfaf699dce04.tar.gz

View File

@ -0,0 +1,48 @@
%global git_commit 1edfa966328dfc824e9b0351087bbfaf699dce04
%global git_date 20180302
%global git_short_commit %(c=%{git_commit};echo ${c:0:8})
%global git_suffix %{git_date}git%{git_short_commit}
%global src_name kvm-unit-tests
# it's bootable image like kernel or memtest86+, not host executable,
# so debuginfo is useless
%global debug_package %{nil}
Name: tuned-profiles-nfv-host-bin
Version: 0
Release: 0.1.%{git_suffix}%{?dist}
Summary: Binaries that are needed for the NFV host Tuned profile
License: GPLv2
URL: http://www.linux-kvm.org/page/KVM-unit-tests
Source0: https://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git/snapshot/%{src_name}-%{git_commit}.tar.gz
BuildRequires: make, gcc, binutils, coreutils
ExclusiveArch: %{ix86} x86_64
%description
Binaries that are needed for the Network Function Virtualization (NFV)
host Tuned profile.
%prep
%setup -q -n %{src_name}-%{git_commit}
%build
./configure
# it's bootable image like kernel or memtest86+, not host executable,
# so we can deviate from the distro's flags
%make_build CFLAGS="%{optflags} -nostdlib -ffreestanding -fno-strict-aliasing -fno-stack-protector -Ilib -Ilib/x86" \
LDFLAGS="%{?__global_ldflags}" x86/tscdeadline_latency.flat
# and we can also strip
strip x86/tscdeadline_latency.flat
%install
install -Dpm 0644 x86/tscdeadline_latency.flat %{buildroot}%{_datadir}/%{name}/tscdeadline_latency.flat
%files
%license COPYRIGHT
%{_datadir}/%{name}
%changelog
* Fri Mar 2 2018 Jaroslav Škarvada <jskarvad@redhat.com> - 0-0.1.20180302git1edfa966
- Initial release