commit e8524be4c2f9cfc1a2a7d7bbdfb93f11233aafbd Author: CentOS Sources Date: Thu Aug 1 13:25:49 2019 -0400 import tuned-profiles-nfv-host-bin-0-0.1.20180302git1edfa966.el8 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..445ed61 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/kvm-unit-tests-1edfa966328dfc824e9b0351087bbfaf699dce04.tar.gz diff --git a/.tuned-profiles-nfv-host-bin.metadata b/.tuned-profiles-nfv-host-bin.metadata new file mode 100644 index 0000000..0a8c648 --- /dev/null +++ b/.tuned-profiles-nfv-host-bin.metadata @@ -0,0 +1 @@ +4836fa8230048d3a8c5ecd2708418efcb08e4997 SOURCES/kvm-unit-tests-1edfa966328dfc824e9b0351087bbfaf699dce04.tar.gz diff --git a/SPECS/tuned-profiles-nfv-host-bin.spec b/SPECS/tuned-profiles-nfv-host-bin.spec new file mode 100644 index 0000000..605d67d --- /dev/null +++ b/SPECS/tuned-profiles-nfv-host-bin.spec @@ -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 - 0-0.1.20180302git1edfa966 +- Initial release