diff --git a/rspec-mocks-3.8.1.gem b/rspec-mocks-3.8.1.gem new file mode 100644 index 0000000..d41547b Binary files /dev/null and b/rspec-mocks-3.8.1.gem differ diff --git a/rubygem-rspec-mocks.spec b/rubygem-rspec-mocks.spec new file mode 100644 index 0000000..c9c53de --- /dev/null +++ b/rubygem-rspec-mocks.spec @@ -0,0 +1,66 @@ +%global majorver 3.8.1 +%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||') +%global fullver %{majorver}%{?preminorver} +%global gem_name rspec-mocks +%global need_bootstrap_set 0 +%undefine __brp_mangle_shebangs +Summary: RSpec's 'test double' framework (mocks and stubs) +Name: rubygem-%{gem_name} +Version: %{majorver} +Release: 1 +License: MIT +URL: http://github.com/rspec/rspec-mocks +Source0: https://rubygems.org/gems/%{gem_name}-%{fullver}.gem +Source1: https://github.com/rspec/%{gem_name}/archive/v%{version}.tar.gz +BuildRequires: rubygems-devel +%if 0%{?need_bootstrap_set} < 1 +BuildRequires: rubygem(rspec) rubygem(thread_order) git +%endif +BuildArch: noarch +%description +rspec-mocks provides a test-double framework for rspec including support +for method stubs, fakes, and message expectations. + +%package doc +Summary: Documentation for %{name} +Requires: %{name} = %{version}-%{release} +%description doc +This package contains documentation for %{name}. + +%prep +gem unpack %{SOURCE0} +%setup -q -D -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.1-1 +- package init diff --git a/rubygem-rspec-mocks.yaml b/rubygem-rspec-mocks.yaml new file mode 100644 index 0000000..e2a57ab --- /dev/null +++ b/rubygem-rspec-mocks.yaml @@ -0,0 +1,4 @@ +on_control: github +src_repo: rspec/rspec-mocks +tag_prefix: "v" +separator: "." diff --git a/v3.8.1.tar.gz b/v3.8.1.tar.gz new file mode 100644 index 0000000..b1d9ea2 Binary files /dev/null and b/v3.8.1.tar.gz differ