代码拉取完成,页面将自动刷新
%global gem_name liquid
Name: rubygem-%{gem_name}
Summary: Secure, non-evaling end user template engine
Version: 5.4.0
Release: 1
License: MIT
URL: http://www.liquidmarkup.org
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: https://github.com/Shopify/%{gem_name}/archive/refs/tags/v%{version}.tar.gz
BuildArch: noarch
BuildRequires: ruby(release) ruby >= 2.1.0 rubygems-devel >= 1.3.7
BuildRequires: rubygem(bigdecimal) rubygem(minitest)
Requires: rubygem(bigdecimal)
%description
Liquid is a template engine which was written with very specific requirements:
* It has to have beautiful and simple markup. Template engines which don't
produce good looking markup are no fun to use.
* It needs to be non evaling and secure. Liquid templates are made so that
users can edit them. You don't want to run code on your server which your
users wrote.
* It has to be stateless. Compile and render steps have to be separate so that
the expensive parsing and compiling can be done once and later on you can
just render it passing in a hash with local variables and objects.
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version} -b 1
%build
gem build ../%{gem_name}-%{version}.gemspec
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
%check
pushd .%{gem_instdir}
ln -s %{_builddir}/%{gem_name}-%{version}/test test
sed -i "s/require 'stackprof'/begin; require 'stackprof'; rescue LoadError; skip 'stackprof not available'; end/" test/integration/context_test.rb
ruby -I"lib:test" -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
popd
%files
%license %{gem_instdir}/LICENSE
%dir %{gem_instdir}
%{gem_libdir}
%{gem_spec}
%exclude %{gem_cache}
%files doc
%doc %{gem_instdir}/History.md
%doc %{gem_instdir}/README.md
%doc %{gem_docdir}
%changelog
* Tue Jun 10 2025 openeuler_bot <infra@openeuler.sh> - 5.4.0-1
- Allow `#` to be used as an inline comment tag (#1498) [CP Clermont] (version:5.4.0)
- Drop support for end-of-life Ruby versions (2.5 and 2.6) (#1578) [Andy Waite] (version:5.4.0)
- `PartialCache` now shares snippet cache with subcontexts by default (#1553) [Chris AtLee] (version:5.4.0)
- Hash registers no longer leak into subcontexts as static registers (#1564) [Chris AtLee] (version:5.4.0)
* Thu Jun 30 2022 xu_ping <xuping33@h-partners.com> - 5.3.0-1
- Upgrade 5.3.0
* Thu Feb 10 2022 xu_ping <xuping33@huawei.com> - 4.0.3-2
- Fix ParseTreeVisitor error and DropsTest failure
* Thu Jul 30 2020 wutao <wutao61@huawei.com> - 4.0.3-1
- package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。