RPM build supervisor

Building

  1. Install packages for RPM Build Environment:

    $ sudo yum install git rpm-build python-devel python-setuptools
    
  2. Create RPM build user:

    $ sudo useradd rpmbuilder
    
  3. Become rpmbuilder:

    $ sudo su - rpmbuilder
    
  4. Get rpm build tree from Github:

    $ git clone https://github.com/maartenq/rpmbuild_supervisor.git
    
  5. Make a symbolic ~/.rpmmacros:

    $ ln -s ~/rpmbuild_supervisor/.rpmmacros ~/.rpmmacros
    
  6. Download Supervisor 3.3.1 from GitHub:

    $ curl -L -o ~/rpmbuild_supervisor/rpmbuild/SOURCES/supervisor-3.3.1.tar.gz \
        https://github.com/Supervisor/supervisor/archive/3.3.1.tar.gz
    
  7. RPM build Supervisor 3.3.1:

    $ cd ~/rpmbuild_supervisor/rpmbuild/SPECS/
    $ rpmbuild -ba supervisor.spec
    
  8. Copy RPM/SRPM packages:

    $ cp ~/rpmbuild_supervisor/rpmbuild/RPMS/noarch/supervisor-3.3.1-1.noarch.rpm /tmp/
    $ cp ~/rpmbuild_supervisor/rpmbuild/SRPMS/supervisor-3.3.1-1.src.rpm /tmp/
    
  9. Clean up rpmbuilder account:

    $ exit
    $ sudo userdel -r rpmbuilder
    

Installing

  1. Install Supervisor-3.3.1 with yum:

    $ yum install /tmp/supervisor-3.3.1-1.noarch.rpm