[opensuse-packaging] Building a rubygem package for a special ruby version
Hi, how do I have to setup my project in order to build a package with a defined ruby version (e.g. 2.4) I have settings in the spec file like: BuildRequires: rubygem(%{rb_default_ruby_abi}:fast_gettext) %{_libdir}/ruby/vendor_ruby/%{rb_ver}/*.rb Thanks and greetings Stefan -- ******************************************************************************* Stefan Schubert e-mail: schubi@suse.de ------------------------------------------------------------------------------- SUSE LINUX GmbH GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
When you only want to package for a specific version you can set (add other versions separated by spaces) %define rb_build_versions ruby24 %define rb_default_ruby_abi ruby:2.4.0 And another nice thing I discovered is %define mod_version_suffix -1 which allows appending "-1" at the end of the package name. Best regards, Johannes Am 21.02.2018 um 11:04 schrieb Stefan Schubert:
Hi,
how do I have to setup my project in order to build a package with a defined ruby version (e.g. 2.4)
I have settings in the spec file like:
BuildRequires: rubygem(%{rb_default_ruby_abi}:fast_gettext)
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/*.rb
Thanks and greetings
Stefan
-- Johannes Weberhofer Weberhofer GmbH, Austria, Vienna -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 02/21/2018 11:04 AM, Stefan Schubert wrote:
Hi,
how do I have to setup my project in order to build a package with a defined ruby version (e.g. 2.4)
I have settings in the spec file like:
BuildRequires: rubygem(%{rb_default_ruby_abi}:fast_gettext)
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/*.rb
Thanks and greetings
Stefan
You may want to take a look at the portus project, in Virtualization:containers:Portus. We built portus for ruby2.5 even on distros which was not available or the default one. Look at the portus package and at the project configuration. It took us some time to figure out all the configuration details. We based our work on this other project https://build.opensuse.org/package/show/home:darix:apps/discourse It could also be helpful. I hope this helps jordi -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (3)
-
Johannes Weberhofer
-
Jordi Massaguer Pla
-
Stefan Schubert