!2 Update to 1.10.0

From: @bzg1107 
Reviewed-by: @jxy_git, @small_leek 
Signed-off-by: @jxy_git, @small_leek
This commit is contained in:
openeuler-ci-bot 2022-07-04 08:34:35 +00:00 committed by Gitee
commit f630f9573a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 12 additions and 4 deletions

BIN
erubi-1.10.0-test.tar.gz Normal file

Binary file not shown.

BIN
erubi-1.10.0.gem Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,11 +1,12 @@
%global gem_name erubi %global gem_name erubi
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 1.7.0 Version: 1.10.0
Release: 1 Release: 1
Summary: Small ERB Implementation Summary: Small ERB Implementation
License: MIT License: MIT
URL: https://github.com/jeremyevans/erubi URL: https://github.com/jeremyevans/erubi
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: erubi-1.10.0-test.tar.gz
BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest) BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest)
BuildArch: noarch BuildArch: noarch
%description %description
@ -20,7 +21,7 @@ Documentation for %{name}.
%prep %prep
gem unpack %{SOURCE0} gem unpack %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version} %setup -q -D -T -n %{gem_name}-%{version} -b1
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%build %build
@ -34,7 +35,12 @@ cp -a .%{gem_dir}/* \
%check %check
pushd .%{gem_instdir} pushd .%{gem_instdir}
ruby ./test/test.rb tar xzvf %{SOURCE1}
ln -s %{_builddir}/test test
# Avoid global_expectations dependency.
# https://github.com/jeremyevans/erubi/commit/592cabf3ddafeb65758b01317fe6fd4825e8e8a4
sed -i '/require .minitest\/global_expectations\/autorun./ s/^/#/' test/test.rb
ruby -rminitest/autorun ./test/test.rb
popd popd
%files %files
@ -49,8 +55,10 @@ popd
%doc %{gem_instdir}/CHANGELOG %doc %{gem_instdir}/CHANGELOG
%doc %{gem_instdir}/README.rdoc %doc %{gem_instdir}/README.rdoc
%{gem_instdir}/Rakefile %{gem_instdir}/Rakefile
%{gem_instdir}/test
%changelog %changelog
* Tue Jun 28 2022 baizhonggui <baizhonggui@h-partners.com> - 1.10.0-1
- update to 1.10.0
* Thu Aug 20 2020 xiezheng <xiezheng4@huawei.com> - 1.7.0-1 * Thu Aug 20 2020 xiezheng <xiezheng4@huawei.com> - 1.7.0-1
- package init - package init