https://github.com/rubiojr/chef-rpms-builder
Chef RPMS build script
https://github.com/rubiojr/chef-rpms-builder
Last synced: 4 days ago
JSON representation
Chef RPMS build script
- Host: GitHub
- URL: https://github.com/rubiojr/chef-rpms-builder
- Owner: rubiojr
- Created: 2011-07-21T11:20:36.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-08-16T13:34:10.000Z (almost 14 years ago)
- Last Synced: 2025-03-21T15:43:43.371Z (3 months ago)
- Language: Ruby
- Homepage:
- Size: 109 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chef SRPMs build script
This script fetches chef package sources from http://github.com/frameos RPM repositories and creates SRPMS from Opscode's Chef master branch.
Either Fedora or RHEL/CentOS/SL (x86_64) is required to use this script.
If you want to build binary packages also, you will need pkg-wizard's buildbot. See Usage section for more details.
# Prepare the environment
If you are trying to build in RHEL5/CentOS5/SL5, you must install newer versions of ruby (1.8.7) and rubygems (>= 1.3.2) first. Up to date packages are available at http://rbel.frameos.org. You will also need EPEL repo to install Git.
First, we need to install some tools and build dependencies:
yum install rpmdevtools rubygems ruby-devel gcc gcc-c++ make which rpmdevtools git rpm-build mock
gem install pkg-wizard rake rest-client merb-core merb-slices merb-assets merb-helpers
gem merb-haml moneta bunny uuidtools rspec rake cucumber jeweler gemcutter# Check out the sources
Check out the build script sources:
git clone git://github.com/rubiojr/chef-rpms-builder.git
# Usage
Change to the builder directorycd chef-rpms-builder
Without build-bot (binary RPMS won't be created)
ruby chef-rpms-builder --quiet
Use "--quiet" if you don't want to see debug output
If you want to use pkg-wizard's buildbot (see http://pkg-wizard.frameos.org)
to create binary RPMS:ruby chef-rpms-builder --quiet --use-buildbot --rhel5
This will build packages using a build-bot in localhost using rbel5 mock profiles.