When working on packaging some unpackaged yet software for CentOS, I often start with a clean minimal VM and then setup a new development+packaging environment.
This becomes repetitive so that I needed a memo in order to just copy/paste.
Note that this is just the very basic packaging tools I need and this does not override any official packaging guide.
Then I install the complete build dependencies depending on the package I want to build.
After this, I have to setup a minimal build environment:
This becomes repetitive so that I needed a memo in order to just copy/paste.
Note that this is just the very basic packaging tools I need and this does not override any official packaging guide.
sudo yum -y install rpm-build rpmdevtools redhat-rpm-config make gcc autoconf automake gcc-c++ yum-utils
sudo yum -y groupinstall "Development Tools"
Then I install the complete build dependencies depending on the package I want to build.
After this, I have to setup a minimal build environment:
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros
When building with "rpmbuild" I might encouter some insatisfied build dependencies.
This is solved with
This is solved with
yum-builddep /path/to/package.spec