Gem to rpm converter

Description

Gem to rpm converter creates an RPM spec file from a Ruby gem. The project uses the gem metadata to fill out most of the information needed for building an RPM containing the gem. Usage: Run gem2rpm --help for options At its simplest, download a gem (lets call that file GEM) and run gem2rpm $GEM This will print an rpm spec file based on the information contained in the gems spec file. In general, it is necessary to edit the generated spec file because the gem is missing some important information that is customarily provided in rpms, most notably the license and the changelog. Rather than editing the generated specfile, edit the template from which the specfile is generated. This will make it easier to update the RPM when a new version of the Gem becomes available. To support this process, it is recommended to first save the default template somewhere: gem2rpm -T > rubygem-GEM.spec.template Now, edit the template and then run gem2rpm to generate the spec file using the edited template: gem2rpm -t rubygem-GEM.spec.template > rubygem-GEM.spec With that, you can now build your RPM as ususal. When a new version of the gem becomes available, you should edit the saved template and rerun gem2rpm over it. Template Details: The template is a standard erb file; there are three main variables available in the template file: format - The Gem::Format for the gem spec - The Gem::Specification for the gem (the same as format.spec) Conventions: A typical source RPM for a gem should consist of three files: the gem file itself, the template for the spec file and the spec file. To ensure that the template will be included in the source RPM, it must be listed as one of the sources in the spec file. The resulting rpms should follow the naming convention rubygem-$GEM where GEM is the name of the packaged gem. The default template also makes sure that the resulting package provides ruby($GEM), according to general packaging conventions for scripting languages.

Rpm - Gem - File - Spec - Converter - Template - Ruby - Software Distribution - System

Published By:David Lutterkort

License Type:Freeware

Date Added:22 October, 2010

Version:0.5.1

Price:Free

Downloads:54

Size:9.2 KB

Platform: Linux

What people say
- required fields
     
Related Downloads

rpm-analyzer is a graphical tool to help you analyze rpm dependencies. You can easily see what packages are required to install or remove a specific rpm.

DateOct 16, 2010

AuthorAlain Tauch

Size45.1 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Utilities

TH-03 is an application that provides an interface to the Picotech TH-03 digital thermometer. The project generates logfiles on demand and can run as a daemon. Building and installing Type: .

DateAug 29, 2010

AuthorB. Stultiens

Size133.1 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Utilities

RPM Package Maker is a frontend for other linux tools in order to help linux users to create RPM packages quickly and easily. Since version 0.

DateOct 20, 2010

AuthorBartha Istvan

Size563.2 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Utilities

Aleph One is an Open Source 3D first-person shooter game, based on the game Marathon 2 by Bungie Software.

DateOct 17, 2010

AuthorChristian Bauer

Size890.9 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Games

Paco project is a source code package organizer for Unix/Linux systems, originally written to aid package management when installing an LFS system.

DateSep 17, 2010

AuthorDavid Rosal

Size358.4 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming