70 lines
1.8 KiB
RPMSpec
70 lines
1.8 KiB
RPMSpec
%global gem_name cucumber-wire
|
|
%{?_with_bootstrap: %global bootstrap 1}
|
|
Name: rubygem-%{gem_name}
|
|
Version: 0.0.1
|
|
Release: 1
|
|
Summary: Wire protocol for Cucumber
|
|
License: MIT
|
|
URL: http://cucumber.io
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
Patch0: rubygem-cucumber-wire-0.0.1-Adapt-to-the-move-of-Location-to-Cucumber-Core-Test.patch
|
|
BuildRequires: ruby(release) rubygems-devel ruby
|
|
%if ! 0%{?bootstrap}
|
|
BuildRequires: rubygem(aruba) rubygem(cucumber) rubygem(rspec)
|
|
%endif
|
|
BuildArch: noarch
|
|
%description
|
|
Wire protocol for Cucumber.
|
|
|
|
%package help
|
|
Summary: Documentation for %{name}
|
|
Requires: %{name} = %{version}-%{release}
|
|
BuildArch: noarch
|
|
Provides: %{name}-doc = %{version}-%{release}
|
|
Obsoletes: %{name}-doc < %{version}-%{release}
|
|
%description help
|
|
Documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{gem_name}-%{version}
|
|
%patch0 -p1
|
|
%gemspec_add_file 'lib/cucumber/wire/step_argument.rb'
|
|
|
|
%build
|
|
gem build ../%{gem_name}-%{version}.gemspec
|
|
%gem_install
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
cp -a .%{gem_dir}/* \
|
|
%{buildroot}%{gem_dir}/
|
|
%if ! 0%{?bootstrap}
|
|
|
|
%check
|
|
pushd .%{gem_instdir}
|
|
LANG=C.UTF-8 rspec spec
|
|
sed -i "/(Timeout::Error)/ a\ /usr/share/ruby/timeout.rb:108:in \`timeout'" features/timeouts.feature
|
|
RUBYOPT="-I$(pwd)/lib" cucumber
|
|
popd
|
|
%endif
|
|
|
|
%files
|
|
%dir %{gem_instdir}
|
|
%exclude %{gem_instdir}/.*
|
|
%{gem_libdir}
|
|
%exclude %{gem_cache}
|
|
%{gem_spec}
|
|
|
|
%files help
|
|
%doc %{gem_docdir}
|
|
%{gem_instdir}/Gemfile
|
|
%doc %{gem_instdir}/README.md
|
|
%{gem_instdir}/Rakefile
|
|
%{gem_instdir}/cucumber-wire.gemspec
|
|
%{gem_instdir}/features
|
|
%{gem_instdir}/spec
|
|
|
|
%changelog
|
|
* Mon Aug 24 2020 liyanan <liyanan32@huawei.com> - 0.0.1-1
|
|
- package init
|