Source0:        %{gnu_download_url}/coreutils/coreutils-%{version}.tar.gz
Source1:        mk7distro.tar.bz2
Patch0:         hostutils.patch.bz2

Can someone tell me what does the following command do in %prep section of RPM spec file ?

%setup -q -n %{name} -c -a 1

It's a macro that unpacks the sources:

the %setup macro is used to unpack the original sources, in preparation for the
build. In its simplest form, the macro is used with no options and gets the name
of the source archive from the source tag specified earlier in the spec file.
  • so what happens in the command ? Does both Source0 and Source1 are uncompressed ? – Monku Oct 13 '16 at 22:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.