add bootstrap logic (not build for now, pending for ruby 3.0)

This commit is contained in:
Mamoru TASAKA 2020-12-31 21:46:33 +09:00
parent 55c4ee6f97
commit b1fe63ac90
1 changed files with 12 additions and 6 deletions

View File

@ -5,6 +5,8 @@
%global gemver 1.16.6 %global gemver 1.16.6
#%%global gem_githash af3e3fc059 #%%global gem_githash af3e3fc059
%global need_test_bootstrap 1
# Upstream GIT http://github.com/rcairo/ # Upstream GIT http://github.com/rcairo/
%undefine _changelog_trimtime %undefine _changelog_trimtime
@ -12,7 +14,7 @@
Summary: Ruby bindings for cairo Summary: Ruby bindings for cairo
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: %{gemver} Version: %{gemver}
Release: 1%{?dist} Release: 1.99%{?dist}
License: GPLv2 or Ruby License: GPLv2 or Ruby
URL: http://cairographics.org/rcairo/ URL: http://cairographics.org/rcairo/
%if 1 %if 1
@ -48,7 +50,7 @@ BuildRequires: rubygem(test-unit-notify)
BuildRequires: rubygem(pkg-config) BuildRequires: rubygem(pkg-config)
BuildRequires: rubygem(native-package-installer) BuildRequires: rubygem(native-package-installer)
# Circular dependency # Circular dependency
%if 1 %if 0%{?need_test_bootstrap} < 1
BuildRequires: rubygem(poppler) BuildRequires: rubygem(poppler)
# Make sure at least one font is available for test/test_context.rb:57 # Make sure at least one font is available for test/test_context.rb:57
# `initialize': out of memory (NoMemoryError) # `initialize': out of memory (NoMemoryError)
@ -167,12 +169,12 @@ rm -f ./TMPINSTDIR/%{gem_instdir}/{Makefile*,extconf.rb}
cp -a ./TMPINSTDIR/* %{buildroot}/ cp -a ./TMPINSTDIR/* %{buildroot}/
%check %check
%if 0%{?fedora} >= 21 %if 0%{?need_test_bootstrap} >= 1
export RUBYLIB=$(pwd)/TMPINSTDIR/%{gem_instdir}:$(pwd)/TMPINSTDIR/%{gem_extdir_mri}/ exit 0
%else
export RUBYLIB=$(pwd)/TMPINSTDIR/%{gem_instdir}:$(pwd)/TMPINSTDIR/%{gem_extdir_mri}/lib
%endif %endif
export RUBYLIB=$(pwd)/TMPINSTDIR/%{gem_instdir}:$(pwd)/TMPINSTDIR/%{gem_extdir_mri}/
pushd ./TMPINSTDIR/%{gem_instdir} pushd ./TMPINSTDIR/%{gem_instdir}
# kill unneeded make process # kill unneeded make process
rm -rf ./TMPBINDIR rm -rf ./TMPBINDIR
@ -224,6 +226,10 @@ ruby ./test/run-test.rb
%{header_dir}/rb_cairo.h %{header_dir}/rb_cairo.h
%changelog %changelog
* Thu Dec 31 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.16.6-1.99
- Rebuild for ruby 3.0
- Set bootstrap logic for test suite
* Sun Aug 9 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.16.6-1 * Sun Aug 9 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.16.6-1
- 1.16.6 - 1.16.6