diff --git a/contracts-0.16.0.gem b/contracts-0.16.0.gem new file mode 100644 index 0000000000000000000000000000000000000000..8a633f113bd120223d91c3ff447e0800fe9977f8 Binary files /dev/null and b/contracts-0.16.0.gem differ diff --git a/rubygem-contracts.spec b/rubygem-contracts.spec new file mode 100644 index 0000000000000000000000000000000000000000..402203e8476817dd6117b5160d6846b90be1a25f --- /dev/null +++ b/rubygem-contracts.spec @@ -0,0 +1,70 @@ +%global gem_name contracts +Name: rubygem-%{gem_name} +Version: 0.16.0 +Release: 1 +Summary: Contracts for Ruby +License: BSD +URL: http://egonschiele.github.io/contracts.ruby/ +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +BuildRequires: ruby(release) rubygems-devel ruby rubygem(rspec) >= 3 +BuildArch: noarch +%description +This library provides contracts for Ruby. Contracts let you clearly express +how your code behaves, and free you from writing tons of boilerplate, +defensive code. + +%package doc +Summary: Documentation for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch +%description doc +Documentation for %{name}. + +%prep +gem unpack %{SOURCE0} +%setup -q -D -T -n %{gem_name}-%{version} +gem spec %{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_cache} +pushd %{buildroot}%{gem_instdir} +rm -rf \ + .[^.]* \ + Gemfile \ + Rakefile \ + *gemspec \ + *yml \ + features/ \ + script/ \ + spec/ \ + %{nil} + +%check +pushd .%{gem_instdir} +rspec spec/ +popd + +%files +%dir %{gem_instdir} +%license %{gem_instdir}/LICENSE +%doc %{gem_instdir}/CHANGELOG.markdown +%doc %{gem_instdir}/README.md +%doc %{gem_instdir}/TODO.markdown +%doc %{gem_instdir}/TUTORIAL.md +%{gem_libdir} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%{gem_instdir}/benchmarks/ + +%changelog +* Tue Aug 18 2020 wanglin - 0.16.0-1 +- package init diff --git a/rubygem-contracts.yaml b/rubygem-contracts.yaml new file mode 100644 index 0000000000000000000000000000000000000000..45583e0e1e46dd5213d3036df0a528bda4444f9e --- /dev/null +++ b/rubygem-contracts.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: egonSchiele/contracts.ruby +tag_prefix: "^v" +separator: "."