We are frequently packaging all gems in the gem-list on our jenkins instance. Results end up on http://pulp.inuits.eu/pulp/repos/rubygems/
Package are build on CentOS Boxen.
You can modify certain parameters by exporting these environment variables before running the script:
-
GEM_PREFIXTranslates into fpm's
--gem-prefixargument.
Defaults to/usr/lib/ruby/gems/1.8. -
GEM_BIN_PATHTranslates into fpm's
--gem-bin-pathargument.
Defaults to/usr/bin. -
TARGETFile containing list of gems to build. You can also override this by providing the filename as an argument to the script.
Defaults togem-list.
export GEM_PREFIX=/usr/local/lib/ruby/gems/1.8
./build-gems
./build-gems minimal
# This is the same as
export TARGET=minimal
./build-gems
Each line is formatted in the following way:
<gem name>:[version]:[''|arch]:[extra fpm options]
<gem name>: is a required option (</captain obvious>).[version]: optional specific version to build. Defaults to the latest 'stable' release if not specified.[arch]: optional 'arch'. Leave this empty or put 'arch' to indicate this builds is architecture specific.[extra fpm options]: Can be used to specify dependencies manually.
Lines starting with # are ignored.
sqlite3::arch:--provides "rubygem(sqlite3-ruby)" --depends "sqlite >= 3.6.16"
backports
backports:2.3.0
puppet-lint:pre
mysql::arch