diff --git a/rubygem-sassc.spec b/rubygem-sassc.spec index bbaeb12..2e4bdc1 100644 --- a/rubygem-sassc.spec +++ b/rubygem-sassc.spec @@ -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 - 2.4.0-2 +- Disable tests + * Wed Mar 2 2022 caodongxia - 2.4.0-1 - Init package