How to build an rpm package for PBS Pro 14.0.0 (Locally and on OBS)
Building an rpm Package Locally on CentOs 7
Prerequisites
1. Source (mainline)
2. Dependencies installed on Centos 7
3. RPM development tree
Steps to Create an rpm Development Tree (if it does not exist)
1. Go to home directory
2. mkdir rpmbuild
...
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 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
Source directory and creation of tar.gz file
- Go to pbs-13.0.800 directory
...
pbspro-execution-13.0.800-0.x86_64.rpm, pbspro-server-13.0.800-0.x86_64.rpm in ~/rpmbuild/RPMS dirctory.
...
Building and Testing an rpm Package Locally on CentOS7
1. Get pbs/pbspro
2. cd pbs/pbspro
...
Once pbs_benchpress completes, you can find the PTL log in ptl.txt.
...
Building and Testing an rpm Package Locally on openSUSE 13.2
Use the following steps to build the open source PBS Pro on your local machine (running openSUSE 13.2):
...
Once pbs_benchpress completes, you can find the PTL log in ptl.txt.
...
Building an rpm Package on OBS
OBS: The Open Build Service (OBS) is a generic system to build and distribute binary packages from sources in an automatic, consistent, and reproducible way.
Prerequisites
1.Source (13.0.800).
Generating the rpm
1. Follow the same above steps 1-5 to generate .tar.gz file.
2. Log in to the OBS system using the link below:
https://172.16.77.234/package/show/home:subhasisb2003/pbs
3. Under Source Files, add pbspro.spec and pbspro-13.0.800.tar.gz files (if the files exist, delete them using delete option ).
...