From a5f1fa991481c9fedf692a5e76620f75cf3ff1b9 Mon Sep 17 00:00:00 2001 From: Ondrej Mosnáček Date: Jan 23 2023 09:49:19 +0000 Subject: Use %autosetup instead of %setup This makes it easier to modify the spec to apply a patch for testing. The -q option is dropped, as it's the default for %autosetup: https://rpm-software-management.github.io/rpm/manual/autosetup.html#autosetup-options Signed-off-by: Ondrej Mosnáček --- diff --git a/selinux-policy.spec b/selinux-policy.spec index 899e32f..7179c08 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -404,7 +404,7 @@ end %build %prep -%setup -n %{name}-%{commit} -q +%autosetup -n %{name}-%{commit} tar -C policy/modules/contrib -xf %{SOURCE35} mkdir selinux_config