81 lines
1.9 KiB
RPMSpec
81 lines
1.9 KiB
RPMSpec
%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
|