diff --git a/ruby-rc4-0.1.5.gem b/ruby-rc4-0.1.5.gem new file mode 100644 index 0000000..50b825d Binary files /dev/null and b/ruby-rc4-0.1.5.gem differ diff --git a/rubygem-ruby-rc4.spec b/rubygem-ruby-rc4.spec new file mode 100644 index 0000000..8d99727 --- /dev/null +++ b/rubygem-ruby-rc4.spec @@ -0,0 +1,55 @@ +%global gem_name ruby-rc4 +Name: rubygem-%{gem_name} +Version: 0.1.5 +Release: 1 +Summary: Pure Ruby implementation of the RC4 algorithm +License: MIT +URL: https://github.com/caiges/Ruby-RC4 +Source0: https://rubygems.org/gems/ruby-rc4-%{version}.gem +BuildRequires: ruby(release) rubygems-devel ruby rubygem(rspec) +BuildArch: noarch +%description +RubyRC4 is a pure Ruby implementation of the RC4 algorithm. + +%package doc +Summary: Documentation for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch +%description doc +Documentation for %{name}. + +%prep +%setup -q -n %{gem_name}-%{version} + +%build +gem build ../%{gem_name}-%{version}.gemspec +%gem_install + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ +sed -i 's|#!/usr/bin/env ruby|#!/usr/bin/ruby|' %{buildroot}%{gem_instdir}/spec/rc4_spec.rb +rm %{buildroot}%{gem_instdir}/{README.md,LICENSE} + +%check +pushd .%{gem_instdir} +rspec spec +popd + +%files +%dir %{gem_instdir} +%license LICENSE +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc README.md +%{gem_instdir}/Rakefile +%{gem_instdir}/spec + +%changelog +* Wed Aug 5 2020 wangchong - 0.1.5-1 +- package init diff --git a/rubygem-ruby-rc4.yaml b/rubygem-ruby-rc4.yaml new file mode 100644 index 0000000..116fc22 --- /dev/null +++ b/rubygem-ruby-rc4.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: caiges/Ruby-RC4 +tag_prefix: "^" +seperator: "."