Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Instructions for rpmdev-setuptree command

A. Create rpm Development Tree (if it does not exist)

Create the tree by hand, or use "The rpmdevtools package contains the rpmdev-setuptree " to command which will create the necessary directories.  To create

sudo yum install -y rpmdevtools

rpmdev-setuptree

Alternatively, to create the tree by hand:

1. Go to your home directory; you don't need to be root

...

1.    Go to pbspro directory which you have cloned (git clone https://github.com/PBSPro/pbspro)
2.    Run the autogen.sh script to generate the configure script and Makefile.in files
                ./autogen.sh
                (generates configure script and Makefile.in templates)
3.    Run ./configure
4.    Generate the source tar that will use to build the rpm
                make dist
                make dist generates .tar.gz (pbspro-<pbs_version>.tar.gz) file in the same directory.
5.    Move the pbspro-<pbs_version>.tar.gz file to ~/rpmbuild/SOURCES
6.    Move  Copy pbspro/pbspro.spec file to  ~/rpmbuild/SPECS
7.    Change directory to ~/rpmbuild/SPECS
8.    Run the below command
                  rpmbuild -ba pbspro.spec         (This command will generate the below rpm packages in ~/rpmbuild/RPMS dirctory)

...