diff --git a/SPECS/ruby.spec b/SPECS/ruby.spec index d2cdffa..f527ab3 100644 --- a/SPECS/ruby.spec +++ b/SPECS/ruby.spec @@ -72,6 +72,8 @@ %bcond_without hardening_test %endif +%bcond_with tests + Summary: An interpreter of object-oriented scripting language Name: ruby Version: %{ruby_version} @@ -771,6 +773,7 @@ sed -i 's/^/%doc /' .ruby-doc.* sed -i 's/^/%lang(ja) /' .ruby-doc.ja %check +%if %{with tests} %if 0%{?with_hardening_test} # Check Ruby hardening. checksec -f libruby.so.%{ruby_version} | \ @@ -824,6 +827,7 @@ DISABLE_TESTS="$DISABLE_TESTS -n !/test_do_not_allow_invalid_client_cert_auth_co # https://github.com/ruby/openssl/issues/215 OPENSSL_SYSTEM_CIPHERS_OVERRIDE=xyz_nonexistent_file OPENSSL_CONF='' \ make check TESTS="-v $DISABLE_TESTS" +%endif %files %license BSDL