Building an rpm Package Locally on CentOS 7
Prerequisites
1. Source code or src.rpm
...
7
3. RPM development tree
Steps to Create an rpm Development Tree (if it does not exist)
...
4. mkdir BUILD BUILDROOT RPMS SOURCES SPECS SRPMS
Installing Dependencies
Below is the list of dependencies specified in the "pbspro.spec" file:
...
We can install the dependencies specified in the "pbspro.spec" file using the command below:
yum-builder pbsprobuilddep pbspro.spec
or
yum install gcc autoconf automake hwloc-devel libX11-devel libXt-devel libedit-devel libical-devel ncurses-devel perl postgresql-devel python-devel tcl-devel tk-devel swig expat-devel openssl-devel
Note: If there is any error in installing any dependency, we can try installing dependencies individually using the command below:
yum install "dependency name"
example : yum install postgresql
...