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 <omosnacek@gmail.com>
This commit is contained in:
Ondrej Mosnáček 2023-01-23 10:46:33 +01:00
parent c11eb88514
commit a5f1fa9914
No known key found for this signature in database
GPG Key ID: BDE08B7A0C57B343

View File

@ -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