From ddebce80148d5aa22cb8fb029ff753290256a108 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 11 Jul 2018 16:46:55 +0100 Subject: [PATCH] Revert "Enable libguestfs-benchmarking subpackage on all architectures." This reverts commit c317bc4a01a8cf03f696f2db87711df5d0b111c5. --- libguestfs.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libguestfs.spec b/libguestfs.spec index f23afcc..0a1109b 100644 --- a/libguestfs.spec +++ b/libguestfs.spec @@ -294,6 +294,7 @@ Language bindings: ruby-libguestfs Ruby bindings +%ifarch aarch64 x86_64 %package benchmarking Summary: Benchmarking utilities for %{name} Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} @@ -304,6 +305,7 @@ Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} performance analysis of %{name}, and also for general understanding of the performance of the kernel and qemu when booting small appliances. +%endif %package devel @@ -1062,6 +1064,7 @@ rm -r $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/dllv2v_test_harness* # Remove the .gitignore file from ocaml/html which will be copied to docdir. rm ocaml/html/.gitignore +%ifarch aarch64 x86_64 # Copy the benchmarking tools and man pages, since upstream doesn't # install them by default. NB Don't install the libtool wrapper scripts. libtool --mode=install install -m 0755 utils/boot-analysis/boot-analysis $RPM_BUILD_ROOT%{_bindir}/libguestfs-boot-analysis @@ -1069,6 +1072,7 @@ libtool --mode=install install -m 0755 utils/boot-benchmark/boot-benchmark $RPM_ install -m 0755 utils/boot-benchmark/boot-benchmark-range.pl $RPM_BUILD_ROOT%{_bindir}/libguestfs-boot-benchmark-range.pl install -m 0644 utils/boot-analysis/boot-analysis.1 $RPM_BUILD_ROOT%{_mandir}/man1/libguestfs-boot-analysis.1 install -m 0644 utils/boot-benchmark/boot-benchmark.1 $RPM_BUILD_ROOT%{_mandir}/man1/libguestfs-boot-benchmark.1 +%endif # Find locale files. %find_lang %{name} @@ -1088,12 +1092,14 @@ install -m 0644 utils/boot-benchmark/boot-benchmark.1 $RPM_BUILD_ROOT%{_mandir}/ %{_mandir}/man1/libguestfs-test-tool.1* +%ifarch aarch64 x86_64 %files benchmarking %{_bindir}/libguestfs-boot-analysis %{_bindir}/libguestfs-boot-benchmark %{_bindir}/libguestfs-boot-benchmark-range.pl %{_mandir}/man1/libguestfs-boot-analysis.1* %{_mandir}/man1/libguestfs-boot-benchmark.1* +%endif %files devel