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
Name: rubygem-%{gem_name}
Version: 0.0.6
Release: 1
Release: 2
License: MIT
URL: http://github.com/svenfuchs/test_declarative
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
@ -26,10 +26,11 @@ BuildArch: noarch
Documentation for %{name}
%prep
%setup -q -c -T
%gem_install -n %{SOURCE0}
%setup -q -n %{gem_name}-%{version} -b 1
%build
gem build ../%{gem_name}-%{version}.gemspec
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
@ -38,8 +39,7 @@ cp -a .%{gem_dir}/* \
%check
pushd .%{gem_instdir}
tar xf %{SOURCE1}
cp -r test %{buildroot}%{gem_instdir}
ln -s %{_builddir}/test test
cd test
ruby -e 'Dir.glob "./test/**/test_*.rb", &method(:require)'
popd
@ -54,9 +54,11 @@ popd
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/README.md
%{gem_instdir}/test
%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
- update to version 0.0.6