How to build RPM packages from Spec files

Let’s take nginx as an example. First, let’s prepare the following building environment: yum install gcc rpm-build rpm-devel rpmlint make python bash coreutils diffutils patch rpmdevtools rpmdev-setuptree Now under your home directory there is a rpmbuild directory, under which there are sub-directories: BUILD BUILDROOT RPMS SOURCES SPECS SRPMS Since we build the RPM package from […]