Compare commits
10 Commits
7a931cbf07
...
fc2360c0de
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fc2360c0de | ||
|
|
392f6a1505 | ||
|
|
dca6c6f32e | ||
|
|
48043d80c3 | ||
|
|
fd1a9b8af3 | ||
|
|
2ba270f8d8 | ||
|
|
91b34dcd09 | ||
|
|
13337b704e | ||
|
|
f6edaa6b3c | ||
|
|
b88a0c15fb |
BIN
regexp_parser-2.7.0-specs.tar.gz
Normal file
BIN
regexp_parser-2.7.0-specs.tar.gz
Normal file
Binary file not shown.
BIN
regexp_parser-2.7.0.gem
Normal file
BIN
regexp_parser-2.7.0.gem
Normal file
Binary file not shown.
80
rubygem-regexp_parser.spec
Normal file
80
rubygem-regexp_parser.spec
Normal file
@ -0,0 +1,80 @@
|
||||
%global gem_name regexp_parser
|
||||
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 2.7.0
|
||||
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.7.0-specs.tar.gz v2.7.0 spec/
|
||||
Source1: %{gem_name}-%{version}-specs.tar.gz
|
||||
BuildRequires: ruby(release)
|
||||
BuildRequires: rubygems-devel
|
||||
BuildRequires: rubygem(rspec)
|
||||
BuildRequires: rubygem(regexp_property_values)
|
||||
BuildRequires: ruby >= 2.0.0
|
||||
BuildRequires: rubygem(did_you_mean)
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
A library for tokenizing, lexing, and parsing Ruby regular expressions.
|
||||
|
||||
%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}/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
|
||||
%dir %{gem_instdir}
|
||||
%license %{gem_instdir}/LICENSE
|
||||
%{gem_libdir}
|
||||
%exclude %{gem_cache}
|
||||
%{gem_spec}
|
||||
|
||||
%files doc
|
||||
%doc %{gem_docdir}
|
||||
%doc %{gem_instdir}/CHANGELOG.md
|
||||
%{gem_instdir}/Gemfile
|
||||
%doc %{gem_instdir}/README.md
|
||||
%{gem_instdir}/Rakefile
|
||||
%{gem_instdir}/regexp_parser.gemspec
|
||||
|
||||
%changelog
|
||||
* Tue Nov 14 2023 liyanan <liyanan61@h-partners.com> - 2.7.0-1
|
||||
- update to 2.7.0
|
||||
|
||||
* 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
|
||||
|
||||
* Thu Dec 02 2021 houyingchao <houyingchao@huawei.com> - 1.7.1-1
|
||||
- Init package
|
||||
4
rubygem-regexp_parser.yaml
Normal file
4
rubygem-regexp_parser.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: rubygems
|
||||
src_repo: regexp_parser
|
||||
tag_prefix: "^v"
|
||||
separator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user