!7 升级master rubygem-regexp_parser 2.6.1
From: @cherry530 Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
dca6c6f32e
Binary file not shown.
BIN
regexp_parser-2.6.1-specs.tar.gz
Normal file
BIN
regexp_parser-2.6.1-specs.tar.gz
Normal file
Binary file not shown.
BIN
regexp_parser-2.6.1.gem
Normal file
BIN
regexp_parser-2.6.1.gem
Normal file
Binary file not shown.
@ -1,17 +1,21 @@
|
||||
%global gem_name regexp_parser
|
||||
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 2.0.0
|
||||
Version: 2.6.1
|
||||
Release: 1
|
||||
Summary: Scanner, lexer, parser for ruby's regular expressions
|
||||
License: MIT
|
||||
URL: https://github.com/ammar/regexp_parser
|
||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||
# git clone https://github.com/ammar/regexp_parser.git && cd regexp_parser \
|
||||
# git archive -v -o regexp_parser-2.6.1-specs.tar.gz v2.6.1 spec/
|
||||
Source1: %{gem_name}-%{version}-specs.tar.gz
|
||||
BuildRequires: ruby(release)
|
||||
BuildRequires: rubygems-devel
|
||||
BuildRequires: rubygem(rspec)
|
||||
BuildRequires: rubygem(regexp_property_values)
|
||||
BuildRequires: ruby >= 1.9.1
|
||||
BuildRequires: ruby >= 2.0.0
|
||||
BuildRequires: rubygem(did_you_mean)
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
@ -26,7 +30,7 @@ BuildArch: noarch
|
||||
Documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{gem_name}-%{version}
|
||||
%setup -q -n %{gem_name}-%{version} -b 1
|
||||
|
||||
%build
|
||||
gem build ../%{gem_name}-%{version}.gemspec
|
||||
@ -39,7 +43,12 @@ cp -a .%{gem_dir}/* \
|
||||
|
||||
%check
|
||||
pushd .%{gem_instdir}
|
||||
rspec -Ilib spec
|
||||
ln -s %{_builddir}/spec spec
|
||||
|
||||
sed -i '/ice_nine/ s/^/#/' spec/spec_helper.rb
|
||||
sed -i -r '/IceNine/ s/IceNine.deep_freeze\((.*)\)/\1/' spec/expression/to_s_spec.rb
|
||||
|
||||
rspec spec
|
||||
popd
|
||||
|
||||
%files
|
||||
@ -56,9 +65,11 @@ popd
|
||||
%doc %{gem_instdir}/README.md
|
||||
%{gem_instdir}/Rakefile
|
||||
%{gem_instdir}/regexp_parser.gemspec
|
||||
%{gem_instdir}/spec
|
||||
|
||||
%changelog
|
||||
* Wed Jan 04 2023 xu_ping <xuping33@h-partners.com> - 2.6.1-1
|
||||
- update to 2.6.1
|
||||
|
||||
* Thu Feb 24 2022 liyanan <liyanan32@huawei.com> - 2.0.0-1
|
||||
- update to 2.0.0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user