Skip to content

Karamorf/rpmbuild-ruby-enterprise

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rpmbuild-ruby-enterprise

Simple rpmdev setup for building ruby-enterprise RPMs

Original spec file from Adam Vollrath <[email protected]>

Make sure you have check-rpath disabled in your ~/.rpmmacros (http://fedoraproject.org/wiki/RPath_Packaging_Draft)

RPM dev setup from http://fedoraproject.org/wiki/A_Short_RPM_Tutorial

One off tool setup

$ sudo yum install @development-tools
$ sudo yum install fedora-packager
$ sudo usermod -a -G mock <your username>

Building RPM as non-root outside ~/rpmbuild

Make sure ~/.rpmmacros has %_topdir set to your "starting directory"

%_topdir                %{expand:%%(pwd)}

Then clone & build:

$ git clone https://github.com/simonmcc/rpmbuild-ruby-enterprise.git
$ cd rpmbuild-ruby-enterprise
$ ./build.sh   

build.sh is a simple wrapper that grabs the required source & creates the rest of the skeleton directories required to complete the RPM build:

$ cat build.sh
#!/bin/bash -x

VERSION=1.8.7
PHUSION_RELEASE=2012.02
SOURCE=ruby-enterprise-${VERSION}-${PHUSION_RELEASE}.tar.gz

mkdir -p BUILD SOURCES SRPMS RPMS/x86_64 RPMS/i386 RPMS/noarch
if [ ! -f $SOURCE ]
then
        (cd SOURCES ; wget http://rubyenterpriseedition.googlecode.com/files/$SOURCE)
fi

rpmbuild -ba SPECS/ruby-enterprise.spec
$

About

rpmbuild tree for ruby-enterprise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published