Ruby/Migration
< Ruby
This scheme migration rules
- all the Requires dependencies for all the subpackages are determined automatically, so that all the dependencies of suck kind must be rejected;
- BuildRequires dependencies for the package in case when testing shell be executed (see %check section), or when it is really necessary to do, must be explicitly defined, and can be got by the setup.rb application;
- when the package has been renamed, it is required to explicitly define the old package name in Provides and Obsoletes keywords;
- In the %prep all the macros pointing to ruby are rejected, in particular %update_setup_rb;
- In the %build all the macros pointing to ruby are replaced with %ruby_build, with %ruby_config in particular %ruby_build;
- In the %install all the macros pointing to ruby are replaced with %ruby_install;
- In the %check all the macros pointing to ruby are replaced with %ruby_test, although in case of the extremely and urgent need this macro can be grayed out;
- In the %files class sections the following rules of replacement are applied: %[ruby]gem_specdir to %ruby_gemspecdir, %ruby_vendorlibdir to %ruby_gemlibdir, %ruby_vendorarchdir to %ruby_gemextdir;
- In the %files for documentation %ruby_ri_sitedir is replaced with %ruby_gemdocdir.