9장. Packaging Ruby gems
Ruby is a dynamic, interpreted, reflective, object-oriented, general-purpose programming language.
Programs written in Ruby are typically packaged by using the RubyGems software, which provides a specific Ruby packaging format.
Packages created by RubyGems are called gems and they can be re-packaged into RPM packages.
This documentation refers to terms related to the RubyGems concept with the gem prefix, for example, .gemspec is used for the gem specification, and terms related to RPM are unqualified.
9.1. How RubyGems relate to RPM 링크 복사링크가 클립보드에 복사되었습니다!
RubyGems represent Ruby’s own packaging format. However, RubyGems contain metadata similar to metadata required by RPM. This metadata streamlines packaging gems as RPMs. RPMs re-packaged from gems fit with the rest of the distribution. End users are also able to satisfy dependencies of a gem by installing the appropriate RPM-packaged gem and other system libraries.
RubyGems use terminology similar to RPM packages, such as spec files, package names, dependencies, and other items.
To conform with the rest of RHEL RPM distribution, packages created by RubyGems must comply with the following rules:
-
Follow the
rubygem-%{gem_name}pattern when naming your packages. -
Use the
#!/usr/bin/rubystring as the interpreter directive.