Use gem2rpm to generate a spec file
Create an RPM spec file for building gems by using the gem2rpm utility.
Create an RPM spec file for a Ruby gem Copy linkLink copied!
Generate an RPM spec file for a RubyGems package by using the gem2rpm utility.
Before you begin Copy linkLink copied!
- You have the
gem2rpmutility installed on your system:$ gem install gem2rpm
Procedure Copy linkLink copied!
Use custom gem2rpm templates to generate a spec file Copy linkLink copied!
gem2rpm templates are standard Embedded Ruby (ERB) files that RPM spec files can be generated from. Edit the template from which the RPM spec file is generated instead of editing the generated spec file.
Before you begin Copy linkLink copied!
- You have the
gem2rpmutility installed on your system:$ gem install gem2rpm
Procedure Copy linkLink copied!
gem2rpm template variables Copy linkLink copied!
Review the following variables included in the gem2rpm template for RPM spec file generation.
| Variable | Explanation |
|---|---|
|
|
The |
|
|
The |
|
|
The |
|
|
The |
|
|
The |
|
|
The |
|
|
The |
|
|
The |
|
|
The |