fix build error

Signed-off-by: cherry530 <707078654@qq.com>
This commit is contained in:
cherry530 2024-01-09 14:44:34 +08:00
parent 2ae1ea6a1e
commit ab6bfa8469

View File

@ -2,7 +2,7 @@
Summary: Simply adds a declarative test method syntax to test/unit Summary: Simply adds a declarative test method syntax to test/unit
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 0.0.6 Version: 0.0.6
Release: 1 Release: 2
License: MIT License: MIT
URL: http://github.com/svenfuchs/test_declarative URL: http://github.com/svenfuchs/test_declarative
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
@ -26,10 +26,11 @@ BuildArch: noarch
Documentation for %{name} Documentation for %{name}
%prep %prep
%setup -q -c -T %setup -q -n %{gem_name}-%{version} -b 1
%gem_install -n %{SOURCE0}
%build %build
gem build ../%{gem_name}-%{version}.gemspec
%gem_install
%install %install
mkdir -p %{buildroot}%{gem_dir} mkdir -p %{buildroot}%{gem_dir}
@ -38,8 +39,7 @@ cp -a .%{gem_dir}/* \
%check %check
pushd .%{gem_instdir} pushd .%{gem_instdir}
tar xf %{SOURCE1} ln -s %{_builddir}/test test
cp -r test %{buildroot}%{gem_instdir}
cd test cd test
ruby -e 'Dir.glob "./test/**/test_*.rb", &method(:require)' ruby -e 'Dir.glob "./test/**/test_*.rb", &method(:require)'
popd popd
@ -54,9 +54,11 @@ popd
%files doc %files doc
%doc %{gem_docdir} %doc %{gem_docdir}
%doc %{gem_instdir}/README.md %doc %{gem_instdir}/README.md
%{gem_instdir}/test
%changelog %changelog
* Tue Jan 09 2024 xu_ping <707078654@qq.com> - 0.0.6-2
- fix build error
* Wed Nov 15 2023 Ge Wang <wang__ge@126.com> - 0.0.6-1 * Wed Nov 15 2023 Ge Wang <wang__ge@126.com> - 0.0.6-1
- update to version 0.0.6 - update to version 0.0.6