Locally enable the RubyGems generator
This will help to generate the right Requires/Provides from shipped .gemspec files without the need to list them explicitly.
This commit is contained in:
parent
82714b2417
commit
df30dd7b21
1 changed files with 6 additions and 0 deletions
|
|
@ -196,6 +196,11 @@ Source15: test_openssl_fips.rb
|
|||
%{load:%{SOURCE4}}
|
||||
%{load:%{SOURCE5}}
|
||||
|
||||
%global __local_generator_requires make -C %{_builddir}/%{buildsubdir}/%{_vpath_builddir} -s runruby TESTRUN_SCRIPT="--enable-gems %{SOURCE9}"
|
||||
%global __local_generator_provides make -C %{_builddir}/%{buildsubdir}/%{_vpath_builddir} -s runruby TESTRUN_SCRIPT="--enable-gems %{SOURCE10}"
|
||||
%global __local_generator_conflicts make -C %{_builddir}/%{buildsubdir}/%{_vpath_builddir} -s runruby TESTRUN_SCRIPT="--enable-gems %{SOURCE11}"
|
||||
%global __local_generator_path ^%{gem_dir}/specifications/.*\.gemspec$
|
||||
|
||||
# Fix ruby_version abuse.
|
||||
# https://bugs.ruby-lang.org/issues/11002
|
||||
Patch0: ruby-2.3.0-ruby_version.patch
|
||||
|
|
@ -229,6 +234,7 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|||
Recommends: ruby(rubygems) >= %{rubygems_version}
|
||||
Recommends: rubygem(bigdecimal) >= %{bigdecimal_version}
|
||||
|
||||
BuildRequires: rpm-local-generator-support
|
||||
# Build dependencies
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: gcc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue