!6 Disable tests for rubygem-sassc

From: @lyn1001 
Reviewed-by: @jxy_git 
Signed-off-by: @jxy_git
This commit is contained in:
openeuler-ci-bot 2022-03-30 02:26:30 +00:00 committed by Gitee
commit dc3163a79a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,10 +1,11 @@
%bcond_with enable_tests
%global gem_name sassc
%define debug_package %{nil}
Name: rubygem-%{gem_name}
Summary: Use libsass with Ruby!
Version: 2.4.0
Release: 1
Release: 2
License: MIT
URL: https://github.com/sass/sassc-ruby
@ -15,12 +16,14 @@ BuildRequires: ruby-devel >= 2.0.0
BuildRequires: rubygems-devel
BuildRequires: ruby(release)
%if %{with enable_tests}
# test requirements
BuildRequires: libsass
BuildRequires: rubygem(ffi)
BuildRequires: rubygem(minitest)
BuildRequires: rubygem(minitest-around)
BuildRequires: rubygem(test_construct)
%endif
Requires: libsass
@ -58,7 +61,7 @@ gem build ../%{gem_name}-%{version}.gemspec
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
%if %{with enable_tests}
%check
pushd .%{gem_instdir}
# Pry dependency is not really necessary.
@ -66,7 +69,7 @@ sed -i '/require "pry"/ s/^/#/' test/test_helper.rb
ruby -Ilib -e 'Dir.glob "./test/**_test.rb", &method(:require)'
popd
%endif
%files
%license %{gem_instdir}/LICENSE.txt
@ -96,6 +99,9 @@ popd
%changelog
* Wed Mar 30 2022 liyanan<liyanan32@huawei.com> - 2.4.0-2
- Disable tests
* Wed Mar 2 2022 caodongxia<caodongxia@huawei.com> - 2.4.0-1
- Init package