CPackRPM: SPEC file moves generated RPMs directly into ../RPMS/ instead of ../RPMS/${ARCH}
I started from generating SRPM with cmake
.
Then I was trying to generate RPM from that SRPM, but all RPMs were placed into ../RPMS/
instead of ../RPMS/x86_64
.
I tried diffirent flags both from cpack
and rpmbuild
docs, but couldn't fix that behaviour, so I used rpm -i project.src.rpm
to look into content of SPEC file.
There were line: mv *.rpm %_rpmdir
, which explains why files were placed inside ../RPMS/
.
Seems like a bug, because target arch is being ignored.
Usually there are folders for each builded arch like: /RPMS/i386/
, /RPMS/x86_64/
, /RPMS/noarch/
, etc.