The Mer Wiki now uses your Mer user account and password (create account on https://bugs.merproject.org/)


Packaging/Ruby

From Mer Wiki
(Difference between revisions)
Jump to: navigation, search
Line 2: Line 2:
  
 
Ruby is used mainly for Testing and Tools in Mer and thus it is going to Mer:Tools project in community OBS. As ruby consists of numerous different gems, a packages that contain ruby libraries or applications, there is need for consistent policy how we should package them.
 
Ruby is used mainly for Testing and Tools in Mer and thus it is going to Mer:Tools project in community OBS. As ruby consists of numerous different gems, a packages that contain ruby libraries or applications, there is need for consistent policy how we should package them.
 +
 +
== Package Naming ==
 +
 +
ruby gems packages should hae follow prefix in package names: '''rubygem-'''
 +
 +
== Packaging with gem2rpm ==
  
 
First start by installing Mer SDK. After that is done login to the SDK and install rubygem-gem2rpm
 
First start by installing Mer SDK. After that is done login to the SDK and install rubygem-gem2rpm

Revision as of 13:08, 9 July 2012

Draft

Ruby is used mainly for Testing and Tools in Mer and thus it is going to Mer:Tools project in community OBS. As ruby consists of numerous different gems, a packages that contain ruby libraries or applications, there is need for consistent policy how we should package them.

Package Naming

ruby gems packages should hae follow prefix in package names: rubygem-

Packaging with gem2rpm

First start by installing Mer SDK. After that is done login to the SDK and install rubygem-gem2rpm

sudo zypper install rubygem-gem2rpm

After that is done you need to fetch the gem you want to package.

gem fetch <mygemname>

When the gem is downloaded you can create .spec file with following cmd

/usr/share/gems/bin/gem2rpm <mygemname-version>.gem > rubygem-<mygemname>.spec

Next add new entry to .changes file and upload the new packaging.

...

Personal tools