Disable tests
This commit is contained in:
parent
d786088236
commit
325198a523
@ -1,10 +1,11 @@
|
|||||||
|
%bcond_with enable_tests
|
||||||
%global gem_name sassc
|
%global gem_name sassc
|
||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
|
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Summary: Use libsass with Ruby!
|
Summary: Use libsass with Ruby!
|
||||||
Version: 2.4.0
|
Version: 2.4.0
|
||||||
Release: 1
|
Release: 2
|
||||||
License: MIT
|
License: MIT
|
||||||
|
|
||||||
URL: https://github.com/sass/sassc-ruby
|
URL: https://github.com/sass/sassc-ruby
|
||||||
@ -15,12 +16,14 @@ BuildRequires: ruby-devel >= 2.0.0
|
|||||||
BuildRequires: rubygems-devel
|
BuildRequires: rubygems-devel
|
||||||
BuildRequires: ruby(release)
|
BuildRequires: ruby(release)
|
||||||
|
|
||||||
|
%if %{with enable_tests}
|
||||||
# test requirements
|
# test requirements
|
||||||
BuildRequires: libsass
|
BuildRequires: libsass
|
||||||
BuildRequires: rubygem(ffi)
|
BuildRequires: rubygem(ffi)
|
||||||
BuildRequires: rubygem(minitest)
|
BuildRequires: rubygem(minitest)
|
||||||
BuildRequires: rubygem(minitest-around)
|
BuildRequires: rubygem(minitest-around)
|
||||||
BuildRequires: rubygem(test_construct)
|
BuildRequires: rubygem(test_construct)
|
||||||
|
%endif
|
||||||
|
|
||||||
Requires: libsass
|
Requires: libsass
|
||||||
|
|
||||||
@ -58,7 +61,7 @@ gem build ../%{gem_name}-%{version}.gemspec
|
|||||||
mkdir -p %{buildroot}%{gem_dir}
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
|
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
|
||||||
|
|
||||||
|
%if %{with enable_tests}
|
||||||
%check
|
%check
|
||||||
pushd .%{gem_instdir}
|
pushd .%{gem_instdir}
|
||||||
# Pry dependency is not really necessary.
|
# 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)'
|
ruby -Ilib -e 'Dir.glob "./test/**_test.rb", &method(:require)'
|
||||||
popd
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license %{gem_instdir}/LICENSE.txt
|
%license %{gem_instdir}/LICENSE.txt
|
||||||
@ -96,6 +99,9 @@ popd
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Mar 2 2022 caodongxia<caodongxia@huawei.com> - 2.4.0-1
|
||||||
- Init package
|
- Init package
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user