update to latest version
This commit is contained in:
parent
5f38e8dd55
commit
486769ef82
BIN
erubi-1.10.0-test.tar.gz
Normal file
BIN
erubi-1.10.0-test.tar.gz
Normal file
Binary file not shown.
BIN
erubi-1.10.0.gem
Normal file
BIN
erubi-1.10.0.gem
Normal file
Binary file not shown.
BIN
erubi-1.7.0.gem
BIN
erubi-1.7.0.gem
Binary file not shown.
@ -1,11 +1,12 @@
|
||||
%global gem_name erubi
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 1.7.0
|
||||
Version: 1.10.0
|
||||
Release: 1
|
||||
Summary: Small ERB Implementation
|
||||
License: MIT
|
||||
URL: https://github.com/jeremyevans/erubi
|
||||
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)
|
||||
BuildArch: noarch
|
||||
%description
|
||||
@ -20,7 +21,7 @@ Documentation for %{name}.
|
||||
|
||||
%prep
|
||||
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
|
||||
|
||||
%build
|
||||
@ -34,7 +35,12 @@ cp -a .%{gem_dir}/* \
|
||||
|
||||
%check
|
||||
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
|
||||
|
||||
%files
|
||||
@ -49,8 +55,10 @@ popd
|
||||
%doc %{gem_instdir}/CHANGELOG
|
||||
%doc %{gem_instdir}/README.rdoc
|
||||
%{gem_instdir}/Rakefile
|
||||
%{gem_instdir}/test
|
||||
|
||||
%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
|
||||
- package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user