Add macros to remove systemtap, git and cmake dependencies.
This commit is contained in:
parent
6beb732b5c
commit
1461bc8618
17
ruby.spec
17
ruby.spec
@ -21,7 +21,7 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%global release 84
|
%global release 85
|
||||||
%{!?release_string:%global release_string %{?development_release:0.}%{release}%{?development_release:.%{development_release}}%{?dist}}
|
%{!?release_string:%global release_string %{?development_release:0.}%{release}%{?development_release:.%{development_release}}%{?dist}}
|
||||||
|
|
||||||
# The RubyGems library has to stay out of Ruby directory three, since the
|
# The RubyGems library has to stay out of Ruby directory three, since the
|
||||||
@ -62,6 +62,10 @@
|
|||||||
%global with_rubypick 1
|
%global with_rubypick 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%bcond_without systemtap
|
||||||
|
%bcond_without git
|
||||||
|
%bcond_without cmake
|
||||||
|
|
||||||
Summary: An interpreter of object-oriented scripting language
|
Summary: An interpreter of object-oriented scripting language
|
||||||
Name: ruby
|
Name: ruby
|
||||||
Version: %{ruby_version}
|
Version: %{ruby_version}
|
||||||
@ -144,10 +148,16 @@ BuildRequires: libyaml-devel
|
|||||||
BuildRequires: readline-devel
|
BuildRequires: readline-devel
|
||||||
# Needed to pass test_set_program_name(TestRubyOptions)
|
# Needed to pass test_set_program_name(TestRubyOptions)
|
||||||
BuildRequires: procps
|
BuildRequires: procps
|
||||||
|
%if %{with systemtap}
|
||||||
BuildRequires: %{_bindir}/dtrace
|
BuildRequires: %{_bindir}/dtrace
|
||||||
|
%endif
|
||||||
# RubyGems test suite optional dependencies.
|
# RubyGems test suite optional dependencies.
|
||||||
|
%if %{with git}
|
||||||
BuildRequires: git
|
BuildRequires: git
|
||||||
|
%endif
|
||||||
|
%if %{with cmake}
|
||||||
BuildRequires: %{_bindir}/cmake
|
BuildRequires: %{_bindir}/cmake
|
||||||
|
%endif
|
||||||
# Required to test hardening.
|
# Required to test hardening.
|
||||||
BuildRequires: %{_bindir}/checksec
|
BuildRequires: %{_bindir}/checksec
|
||||||
BuildRequires: multilib-rpm-config
|
BuildRequires: multilib-rpm-config
|
||||||
@ -713,8 +723,10 @@ touch abrt.rb
|
|||||||
# runruby, so re-enable them).
|
# runruby, so re-enable them).
|
||||||
make runruby TESTRUN_SCRIPT="--enable-gems %{SOURCE12}"
|
make runruby TESTRUN_SCRIPT="--enable-gems %{SOURCE12}"
|
||||||
|
|
||||||
|
%if %{with systemtap}
|
||||||
# Check if systemtap is supported.
|
# Check if systemtap is supported.
|
||||||
make runruby TESTRUN_SCRIPT=%{SOURCE13}
|
make runruby TESTRUN_SCRIPT=%{SOURCE13}
|
||||||
|
%endif
|
||||||
|
|
||||||
DISABLE_TESTS=""
|
DISABLE_TESTS=""
|
||||||
|
|
||||||
@ -1030,6 +1042,9 @@ make check TESTS="-v $DISABLE_TESTS"
|
|||||||
%{gem_dir}/specifications/xmlrpc-%{xmlrpc_version}.gemspec
|
%{gem_dir}/specifications/xmlrpc-%{xmlrpc_version}.gemspec
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 19 2017 Jun Aruga <jaruga@redhat.com> - 2.4.2-85
|
||||||
|
- Add macros to remove systemtap, git and cmake dependencies.
|
||||||
|
|
||||||
* Mon Sep 18 2017 Pavel Valena <pvalena@redhat.com> - 2.4.2-84
|
* Mon Sep 18 2017 Pavel Valena <pvalena@redhat.com> - 2.4.2-84
|
||||||
- Update to Ruby 2.4.2.
|
- Update to Ruby 2.4.2.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user