spec: use %autosetup

Replace the two %setup calls with %autosetup; the second call was even
redoing the first.

Reported by Neal Gompa, thanks!
This commit is contained in:
Pino Toscano 2022-05-12 16:21:33 +02:00 committed by Martin Pitt
parent f86c02c60e
commit e3f668b584

View file

@ -25,8 +25,7 @@ Requires: cockpit-system
Cockpit Starter Kit Example Module
%prep
%setup -q -n %{name}
%setup -q -a 1 -n %{name}
%autosetup -n %{name} -a 1
# ignore pre-built webpack in release tarball and rebuild it
rm -rf dist