From 6e2677c456f8d002579ff2fe0cae89e7f07be21e Mon Sep 17 00:00:00 2001 From: Jose Carlos Venegas Munoz Date: Tue, 22 Jan 2019 23:38:31 -0600 Subject: [PATCH] pkgs: Fix spec file. - Remove not needed require - call %autosetup before apply patches. Signed-off-by: Jose Carlos Venegas Munoz --- .../ksm-throttler/kata-ksm-throttler.spec-template | 3 --- obs-packaging/runtime/kata-runtime.spec-template | 6 +----- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/obs-packaging/ksm-throttler/kata-ksm-throttler.spec-template b/obs-packaging/ksm-throttler/kata-ksm-throttler.spec-template index 611ef04859..6a3dc15350 100644 --- a/obs-packaging/ksm-throttler/kata-ksm-throttler.spec-template +++ b/obs-packaging/ksm-throttler/kata-ksm-throttler.spec-template @@ -26,9 +26,6 @@ License : Apache-2.0 BuildRequires: git BuildRequires: systemd -%if 0%{?suse_version} && 0%{?is_opensuse} -BuildRequires: openSUSE-release -%endif # Patches @RPM_PATCH_LIST@ diff --git a/obs-packaging/runtime/kata-runtime.spec-template b/obs-packaging/runtime/kata-runtime.spec-template index cd036f8f1b..44fecd8e77 100644 --- a/obs-packaging/runtime/kata-runtime.spec-template +++ b/obs-packaging/runtime/kata-runtime.spec-template @@ -25,9 +25,6 @@ Group : Development/Tools License : Apache-2.0 BuildRequires: git -%if 0%{?suse_version} && 0%{?is_opensuse} -BuildRequires: openSUSE-release -%endif %{!?el7 || !?suse_version:Requires: qemu-lite >= @qemu_lite_obs_fedora_version@ } @@ -55,11 +52,10 @@ Overview %prep mkdir local tar -C local -xzf ../SOURCES/go%{GO_VERSION}.linux-@GO_ARCH@.tar.gz +%autosetup -N -S git # Patches @RPM_APPLY_PATCHES@ -%setup -q -%autosetup -S git %build export GOROOT=$HOME/rpmbuild/BUILD/local/go