rpm getting generated in diff directory
When I build my software with rpmbuild command, the rpms are not getting
generated in the directory specified in rpmmacros file(%_rpmdir)
This is what I am doing..
rpmbuild -bb -vv --buildroot <build root path> --target=x86_64 --rcfile /tmp/rpmrc /tmp/mySpecfile.spec
# cat /tmp/rpmrc
# cat /tmp/rpmmacros
So I expect the rpms to be present under the directory specified by %_rpmdir
but instead they are going to /root/rpmbuild/RPMS/x86_64 directory.
How do I address this ? Anyone has faced the same problem?