Setting Up an Environment for Building RPMs
RHEL or CentOS Systems
Users of these systems can run the following command to set up their environment:
$ rpmdev-setuptree # Creates ~/rpmbuild and ~/.rpmmacros
SLES Systems
Users of these systems can run the following command to set up their environment:
$ mkdir -p ~/rpmbuild/{BUILD,RPMS,S{OURCE,PEC,RPM}S} $ echo "%_topdir $HOME/rpmbuild"> ~/.rpmmacros