60 lines
1.5 KiB
RPMSpec
60 lines
1.5 KiB
RPMSpec
|
|
%global gem_name cucumber-expressions
|
||
|
|
Name: rubygem-%{gem_name}
|
||
|
|
Version: 6.0.1
|
||
|
|
Release: 1
|
||
|
|
Summary: A simpler alternative to Regular Expressions
|
||
|
|
License: MIT
|
||
|
|
URL: https://github.com/cucumber/cucumber-expressions-ruby
|
||
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||
|
|
BuildRequires: ruby(release) rubygems-devel ruby >= 1.9.3 rubygem-rspec-core
|
||
|
|
BuildRequires: rubygem-rspec-expectations
|
||
|
|
BuildArch: noarch
|
||
|
|
%description
|
||
|
|
Cucumber Expressions - a simpler alternative to 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}
|
||
|
|
|
||
|
|
%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}
|
||
|
|
rspec spec
|
||
|
|
popd
|
||
|
|
|
||
|
|
%files
|
||
|
|
%dir %{gem_instdir}
|
||
|
|
%exclude %{gem_instdir}/.*
|
||
|
|
%license %{gem_instdir}/LICENSE
|
||
|
|
%{gem_instdir}/Makefile
|
||
|
|
%{gem_libdir}
|
||
|
|
%exclude %{gem_cache}
|
||
|
|
%{gem_spec}
|
||
|
|
|
||
|
|
%files doc
|
||
|
|
%doc %{gem_docdir}
|
||
|
|
%{gem_instdir}/Gemfile
|
||
|
|
%doc %{gem_instdir}/README.md
|
||
|
|
%{gem_instdir}/Rakefile
|
||
|
|
%{gem_instdir}/cucumber-expressions.gemspec
|
||
|
|
%{gem_instdir}/examples.txt
|
||
|
|
%{gem_instdir}/spec
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Fri Aug 21 2020 shenleizhao <shenleizhao@huawei.com> - 6.0.1-1
|
||
|
|
- package init
|