Update to haml 5.2.2

(cherry picked from commit cc2a08297aadf42d7b399477146d91611f7fcf9a)
This commit is contained in:
wk333 2022-03-04 10:35:40 +08:00 committed by openeuler-sync-bot
parent dcd3247a3c
commit 521eb12281
5 changed files with 11 additions and 3 deletions

Binary file not shown.

BIN
haml-5.2.2-tests.txz Normal file

Binary file not shown.

BIN
haml-5.2.2.gem Normal file

Binary file not shown.

View File

@ -1,12 +1,14 @@
%global gem_name haml %global gem_name haml
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 5.0.4 Version: 5.2.2
Release: 1 Release: 1
Summary: An elegant, structured (X)HTML/XML templating engine Summary: An elegant, structured (X)HTML/XML templating engine
License: MIT and WTFPL License: MIT and WTFPL
URL: http://haml.info/ URL: http://haml.info/
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: https://github.com/%{gem_name}/%{gem_name}/archive/v%{version}.tar.gz # git clone --no-checkout https://github.com/haml/haml.git
# git -C haml archive -v -o haml-5.2.2-tests.txz v5.2.2 test/
Source1: %{gem_name}-%{version}-tests.txz
BuildRequires: ruby(release) rubygems-devel ruby rubygem(activemodel) rubygem(minitest) BuildRequires: ruby(release) rubygems-devel ruby rubygem(activemodel) rubygem(minitest)
BuildRequires: rubygem(railties) rubygem(temple) rubygem(tilt) BuildRequires: rubygem(railties) rubygem(temple) rubygem(tilt)
BuildArch: noarch BuildArch: noarch
@ -45,8 +47,11 @@ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
%check %check
pushd .%{gem_instdir} pushd .%{gem_instdir}
ln -s %{_builddir}/haml-5.0.4/test test ln -s %{_builddir}/test .
sed -i '/[bB]undler/ s/^/#/' test/test_helper.rb sed -i '/[bB]undler/ s/^/#/' test/test_helper.rb
sed -i '/[Ss]imple[Cc]ov/ s/^/#/g' test/test_helper.rb
mv test/template_test.rb{,.disable}
ruby -Ilib:test -e '(Dir.glob("./test/*_test.rb") - %w[./test/options_test.rb]).each {|f| require f }' ruby -Ilib:test -e '(Dir.glob("./test/*_test.rb") - %w[./test/options_test.rb]).each {|f| require f }'
ruby -Ilib:test -e 'require "./test/options_test.rb"' ruby -Ilib:test -e 'require "./test/options_test.rb"'
popd popd
@ -77,5 +82,8 @@ popd
%exclude %{gem_instdir}/yard/default/.gitignore %exclude %{gem_instdir}/yard/default/.gitignore
%changelog %changelog
* Fri Mar 04 2022 wangkai <wangkai385@huawei.com> - 5.2.2-1
- Update to haml 5.2.2
* Fri Aug 21 2020 tuShenmei <tushenmei@huawei.com> - 5.0.4-1 * Fri Aug 21 2020 tuShenmei <tushenmei@huawei.com> - 5.0.4-1
- package init - package init

Binary file not shown.