From f34ab294e21b59e243c29d298c32453946c4721efb3ae3b176e85c9b9401444d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20M=C3=BCller?= Date: Sun, 11 Sep 2022 22:03:03 +0000 Subject: [PATCH] Accepting request 1002541 from home:expeehaa:branches:devel:languages:ruby:extensions - Split dependencies for building different Ruby versions in dedicated packages. OBS-URL: https://build.opensuse.org/request/show/1002541 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/ruby-build?expand=0&rev=64 --- ruby-build.changes | 5 +++++ ruby-build.spec | 29 ++++++++++++++++++++++++----- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/ruby-build.changes b/ruby-build.changes index 6a2c4e0..c08713d 100644 --- a/ruby-build.changes +++ b/ruby-build.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Sep 11 21:27:04 UTC 2022 - Lukas Müller + +- Split dependencies for building different Ruby versions in dedicated packages. + ------------------------------------------------------------------- Sat Sep 10 12:15:54 UTC 2022 - Lukas Müller diff --git a/ruby-build.spec b/ruby-build.spec index 1e15823..6abca71 100644 --- a/ruby-build.spec +++ b/ruby-build.spec @@ -38,12 +38,20 @@ BuildRequires: bats %endif Requires: bash Requires: curl -Requires: gcc +Requires: gzip Requires: make Requires: tar -# ruby MRI BuildRequires -Requires: bison +# Maybe Requires would be better. +Recommends: %{name}-dependencies-mri + +%description +ruby-build provides a simple way to compile and install different versions of Ruby on UNIX-like systems. + +%package dependencies-mri +Summary: ruby-build dependencies for building MRI Requires: automake +Requires: bison +Requires: gcc Requires: gdbm-devel Requires: gperf Requires: graphviz @@ -54,8 +62,15 @@ Requires: openssl-devel Requires: readline-devel Requires: tk-devel -%description -ruby-build provides a simple way to compile and install different versions of Ruby on UNIX-like systems. +%description dependencies-mri +ruby-build dependencies for building MRI. + +%package dependencies-jruby +Summary: ruby-build dependencies for building JRuby +Requires: gcc-c++ + +%description dependencies-jruby +ruby-build dependencies for building JRuby. %prep %setup -q @@ -81,4 +96,8 @@ bats test %dir %{_datadir}/ruby-build %{_datadir}/ruby-build/* +%files dependencies-mri + +%files dependencies-jruby + %changelog