diff --git a/rspec-expectations-3.8.4.gem b/rspec-expectations-3.8.4.gem new file mode 100644 index 0000000000000000000000000000000000000000..83161ce1ad3efc49a199036708aafbe955d88588 Binary files /dev/null and b/rspec-expectations-3.8.4.gem differ diff --git a/rubygem-rspec-expectations.spec b/rubygem-rspec-expectations.spec new file mode 100644 index 0000000000000000000000000000000000000000..d46fa58248593b8cec554a49620d5d1efcc77684 --- /dev/null +++ b/rubygem-rspec-expectations.spec @@ -0,0 +1,65 @@ +%global majorver 3.8.4 +%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||') +%global fullver %{majorver}%{?preminorver} +%global gem_name rspec-expectations +%global need_bootstrap_set 0 +%undefine __brp_mangle_shebangs +Summary: RSpec expectations (should and matchers) +Name: rubygem-%{gem_name} +Version: %{majorver} +Release: 1 +License: MIT +URL: http://github.com/rspec/rspec-expectations +Source0: https://rubygems.org/gems/%{gem_name}-%{fullver}.gem +Source1: https://github.com/rspec/%{gem_name}/archive/v%{majorver}.tar.gz +BuildRequires: rubygems-devel +%if 0%{?need_bootstrap_set} < 1 +BuildRequires: rubygem(rspec) rubygem(minitest) >= 5 git +%endif +BuildArch: noarch +%description +rspec-expectations adds `should` and `should_not` to every object and includes +RSpec::Matchers, a library of standard matchers. + +%package doc +Summary: Documentation for %{name} +Requires: %{name} = %{version}-%{release} +%description doc +This package contains documentation for %{name}. + +%prep +%setup -q -T -n %{gem_name}-%{version} -b 1 +ln -s %{gem_name}-%{majorver}/spec spec +gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec + +%build +gem build %{gem_name}.gemspec +%gem_install + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ +rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts} +%if 0%{?need_bootstrap_set} < 1 + +%check +LANG=C.UTF-8 +ruby -rrubygems -Ilib/ -S rspec spec/ +%endif + +%files +%dir %{gem_instdir} +%license %{gem_instdir}/LICENSE.md +%doc %{gem_instdir}/Changelog.md +%doc %{gem_instdir}/README.md +%{gem_instdir}/lib/ +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%{gem_docdir} + +%changelog +* Mon Aug 24 2020 xiezheng - 3.8.4-1 +- package init diff --git a/rubygem-rspec-expectations.yaml b/rubygem-rspec-expectations.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5c8fe9dac3902d65aaef9fe477b52b8be7543edd --- /dev/null +++ b/rubygem-rspec-expectations.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: rspec/rspec-expectations +tag_prefix: "v" +separator: "." diff --git a/v3.8.4.tar.gz b/v3.8.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..fad6c26e2a93bdbcab0b337a23ae86691350adec Binary files /dev/null and b/v3.8.4.tar.gz differ