!6 [sync] PR-4: openEuler-22.03-LTS rubygem-mustache 升级 1.1.1版本
From: @openeuler-sync-bot Reviewed-by: @shinwell_hu Signed-off-by: @shinwell_hu
This commit is contained in:
commit
e65c2ea7d7
Binary file not shown.
BIN
mustache-1.1.1.gem
Normal file
BIN
mustache-1.1.1.gem
Normal file
Binary file not shown.
@ -21,8 +21,8 @@ than the remaining test cases, because they are defining
|
||||
|
||||
diff --git a/usr/share/gems/gems/mustache-1.0.2/test/autoloading_test.rb a/usr/share/gems/gems/mustache-1.0.2/test/autoloading_test.rb
|
||||
index 0a7ad762..77eb3557 100644
|
||||
--- a/usr/share/gems/gems/mustache-1.0.2/test/autoloading_test.rb
|
||||
+++ b/usr/share/gems/gems/mustache-1.0.2/test/autoloading_test.rb
|
||||
--- a/test/autoloading_test.rb
|
||||
+++ b/test/autoloading_test.rb
|
||||
@@ -7,6 +7,10 @@ def setup
|
||||
Mustache.view_path = File.dirname(__FILE__) + '/fixtures'
|
||||
end
|
||||
@ -1,13 +1,13 @@
|
||||
%global gem_name mustache
|
||||
|
||||
Name: rubygem-mustache
|
||||
Version: 1.0.2
|
||||
Release: 8
|
||||
Version: 1.1.1
|
||||
Release: 1
|
||||
Summary: A framework-agnostic way to render logic-free views
|
||||
License: MIT
|
||||
URL: https://github.com/mustache/mustache
|
||||
Source0: https://rubygems.org/gems/mustache-%{version}.gem
|
||||
Patch0: rubygem-mustache-1.0.2-Fix-test-race-condition.patch
|
||||
Patch0: rubygem-mustache-1.1.1-Fix-test-race-condition.patch
|
||||
BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest)
|
||||
BuildArch: noarch
|
||||
|
||||
@ -27,11 +27,13 @@ BuildArch: noarch
|
||||
Documentation for rubygem-mustache.
|
||||
|
||||
%prep
|
||||
%setup -q -c -T
|
||||
%gem_install -n %{SOURCE0}
|
||||
%patch0 -p1
|
||||
%setup -q -n %{gem_name}-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
gem build ../%{gem_name}-%{version}.gemspec
|
||||
|
||||
%gem_install
|
||||
|
||||
%install
|
||||
install -d %{buildroot}%{gem_dir}
|
||||
@ -47,9 +49,7 @@ cp -a .%{gem_instdir}/man/*.html .
|
||||
|
||||
%check
|
||||
cd .%{gem_instdir}
|
||||
sed -r -i '/[Cc]ode[Cc]limate/ s/^/#/' test/helper.rb
|
||||
LANG=en_US.utf8 ruby -Ilib -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
||||
cd -
|
||||
sed -i '/simplecov/,/^end$/ s/^/#/' test/helper.rb
|
||||
|
||||
%files
|
||||
%dir %{gem_instdir}
|
||||
@ -70,6 +70,9 @@ cd -
|
||||
%{gem_instdir}/{Rakefile,test}
|
||||
|
||||
%changelog
|
||||
* Sun Jan 30 2022 xu_ping <xuping33@huawei.com> - 1.1.1-1
|
||||
- Upgrade 1.1.1
|
||||
|
||||
* Sat Jan 22 2022 liyanan <liyanan32@huawei.com> - 1.0.2-8
|
||||
- Fix build error
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user