rubygem-cucumber-wire/rubygem-cucumber-wire.spec

83 lines
2.2 KiB
RPMSpec
Raw Permalink Normal View History

2020-08-21 14:09:34 +08:00
%global gem_name cucumber-wire
%{?_with_bootstrap: %global bootstrap 1}
Name: rubygem-%{gem_name}
2023-01-19 11:06:19 +08:00
Version: 6.2.0
Release: 1
2020-08-21 14:09:34 +08:00
Summary: Wire protocol for Cucumber
License: MIT
URL: http://cucumber.io
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
2023-01-19 11:06:19 +08:00
Source1: https://github.com/cucumber/cucumber-ruby-wire/archive/refs/tags/v%{version}.tar.gz
2020-08-21 14:09:34 +08:00
BuildRequires: ruby(release) rubygems-devel ruby
%if ! 0%{?bootstrap}
BuildRequires: rubygem(aruba) rubygem(cucumber) rubygem(rspec) rubygem(did_you_mean)
2020-08-21 14:09:34 +08:00
%endif
BuildArch: noarch
%description
Wire protocol for Cucumber.
2020-08-24 15:47:18 +08:00
%package help
2020-08-21 14:09:34 +08:00
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
2020-08-24 15:47:18 +08:00
Provides: %{name}-doc = %{version}-%{release}
Obsoletes: %{name}-doc < %{version}-%{release}
%description help
2020-08-21 14:09:34 +08:00
Documentation for %{name}.
%prep
2023-01-19 11:06:19 +08:00
%setup -q -n %{gem_name}-%{version} -b1
%gemspec_remove_dep -g cucumber-cucumber-expressions "~> 14.0", ">= 14.0.0"
%gemspec_add_dep -g cucumber-cucumber-expressions ">= 14.0"
%gemspec_remove_dep -g cucumber-messages "~> 17.1", ">= 17.1.1"
%gemspec_add_dep -g cucumber-messages ">= 17.0"
2020-08-21 14:09:34 +08:00
%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}
2023-01-19 11:06:19 +08:00
rspec -Ilib spec
ln -s %{_builddir}/cucumber-ruby-wire-6.2.0/features features
RUBYOPT="-I$(pwd)/lib" cucumber --format progress --publish-quiet
2020-08-21 14:09:34 +08:00
popd
%endif
%files
%dir %{gem_instdir}
%exclude %{gem_instdir}/.*
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
2023-01-19 11:06:19 +08:00
%license %{gem_instdir}/LICENSE
2020-08-21 14:09:34 +08:00
2020-08-24 15:47:18 +08:00
%files help
2020-08-21 14:09:34 +08:00
%doc %{gem_docdir}
%doc %{gem_instdir}/README.md
2023-01-19 11:06:19 +08:00
%doc %{gem_instdir}/CHANGELOG.md
%doc %{gem_instdir}/CONTRIBUTING.md
2020-08-21 14:09:34 +08:00
%{gem_instdir}/spec
%changelog
2023-01-19 11:06:19 +08:00
* Mon Jan 9 2023 liyanan <liyanan32@h-partners.com> - 6.2.0-1
- Update to 6.2.0
* Wed Mar 02 2022 baizhonggui <baizhonggui@huawei.com> - 0.0.1-2
- Add support ruby 3.0 for fixing build error
2020-08-24 15:47:18 +08:00
* Mon Aug 24 2020 liyanan <liyanan32@huawei.com> - 0.0.1-1
- package init