Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 How to build an rpm package for PBS Pro 14.01.0 (Locally and on OBS)

Building an rpm Package Locally on CentOs 7

...

4. mkdir            BUILD  BUILDROOT  RPMS  SOURCES  SPECS  SRPMS

Installing Dependencies

Below is the list of dependencies specified in the "pbspro.spec" file:

...

Source directory and creation of tar.gz file

  1. Go to pbs-13.0.800 pbspro directory

      2. change directory to src/pbs

[maltesh@maltesh pbs-13.0.800user@hostname pbspro]# cd src/pbs

[maltesh@maltesh pbsuser@hostname pbs]# ls
aclocal.m4 autogen.sh autom4te.cache buildutils config.log configure configure.ac COPYRIGHT doc INSTALL LICENSE m4 Makefile.am Makefile.in pbs_startup README src win_configure

...

make dist generates .tar.gz (pbspbspro-1314.0.8001.tar.gz) file in the same directory.

6.move the pbs pbspro-1314.0.8001.tar.gz gz file to ~/rpmbuild/SOURCES

7. move pbs-13.0.800 pbspro/src/pbspro.spec file to  ~/rpmbuild/SPECS

...

This command will generate the rpm packages namely  pbspro-client-1314.0.8001-0.x86_64.rpm , pbspro pbspro-debuginfo-1314.0.8001-0.x86_64.rpm ,pbspro pbspro-execution-1314.0.8001-0.x86_64.rpm ,  

pbspro-server-1314.0.8001-0.x86_64.rpm    in ~/rpmbuild/RPMS dirctory.

...

Building and Testing an rpm Package Locally on CentOS7

...