!8 fix build error
From: @cherry530 Reviewed-by: @shinwell_hu Signed-off-by: @shinwell_hu
This commit is contained in:
commit
dd3b985cb0
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user