diff --git a/hashdiff-0.3.2.gem b/hashdiff-0.3.2.gem new file mode 100644 index 0000000..c9da783 Binary files /dev/null and b/hashdiff-0.3.2.gem differ diff --git a/rubygem-hashdiff.spec b/rubygem-hashdiff.spec new file mode 100644 index 0000000..0b13952 --- /dev/null +++ b/rubygem-hashdiff.spec @@ -0,0 +1,59 @@ +%global gem_name hashdiff +Name: rubygem-%{gem_name} +Version: 0.3.2 +Release: 1 +Summary: HashDiff is a diff lib to compute the smallest difference between two hashes +License: MIT +URL: https://github.com/liufengyun/hashdiff +Source0: https://rubygems.org/gems/hashdiff-%{version}.gem +BuildRequires: ruby(release) rubygems-devel ruby >= 1.8.7 rubygem(rspec) +BuildArch: noarch +%description +HashDiff is a diff lib to compute the smallest difference between two hashes. + +%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}/ + +%check +pushd .%{gem_instdir} +rspec spec +popd + +%files +%dir %{gem_instdir} +%exclude %{gem_instdir}/.* +%license %{gem_instdir}/LICENSE +%exclude %{gem_instdir}/hashdiff.gemspec +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%{gem_instdir}/Gemfile +%doc %{gem_instdir}/README.md +%{gem_instdir}/Rakefile +%doc %{gem_instdir}/changelog.md +%{gem_instdir}/spec + +%changelog +* Mon Aug 10 2020 yanan li - 0.3.2-1 +- Package init diff --git a/rubygem-hashdiff.yaml b/rubygem-hashdiff.yaml new file mode 100644 index 0000000..ac26b30 --- /dev/null +++ b/rubygem-hashdiff.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/liufengyun/hashdiff.git +version_control: github +src_repo: liufengyun/hashdiff +tag_prefix: "^v" +seperator: "."