|
|
|
@ -1,32 +1,19 @@
|
|
|
|
|
%global gem_name rspec-its
|
|
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 1.2.0
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Version: 1.3.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Provides "its" method formerly part of rspec-core
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/rspec/rspec-its
|
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
|
|
|
|
|
# Fix Ruby 2.4 compatibility
|
|
|
|
|
# https://github.com/rspec/rspec-its/pull/45
|
|
|
|
|
Patch0: rubygem-rspec-its-1.2.0-Fix-Ruby-2.4-compatibility.patch
|
|
|
|
|
|
|
|
|
|
%if 0%{?el7}
|
|
|
|
|
Requires: ruby(release)
|
|
|
|
|
Requires: ruby(rubygems)
|
|
|
|
|
Requires: rubygem(rspec-core) >= 2.99.0.beta1
|
|
|
|
|
Requires: rubygem(rspec-expectations) >= 2.99.0.beta1
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
|
BuildRequires: rubygem(rspec-core)
|
|
|
|
|
BuildRequires: rubygem(rspec-expectations)
|
|
|
|
|
BuildRequires: rubygem(aruba)
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%if 0%{?el7}
|
|
|
|
|
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
RSpec extension gem for attribute matching.
|
|
|
|
@ -53,7 +40,6 @@ cp -a .%{gem_dir}/* \
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
cat %{PATCH0} | patch -p1 -F 0
|
|
|
|
|
rspec -Ilib spec
|
|
|
|
|
export RUBYOPT="-I${PWD}/lib"
|
|
|
|
|
cucumber
|
|
|
|
@ -61,7 +47,6 @@ popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
|
%license %{gem_instdir}/LICENSE.txt
|
|
|
|
|
%{gem_libdir}
|
|
|
|
@ -72,7 +57,6 @@ popd
|
|
|
|
|
%files doc
|
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
%doc %{gem_instdir}/Changelog.md
|
|
|
|
|
%{gem_instdir}/cucumber.yml
|
|
|
|
|
%{gem_instdir}/features
|
|
|
|
|
%{gem_instdir}/spec
|
|
|
|
|
%{gem_instdir}/Gemfile
|
|
|
|
@ -82,6 +66,9 @@ popd
|
|
|
|
|
%{gem_instdir}/%{gem_name}.gemspec
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Jul 15 2019 Pavel Valena <pvalena@redhat.com> - 1.3.0-1
|
|
|
|
|
- Update to rspec-its 1.3.0.
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|