diff --git a/bcrypt-3.1.12.gem b/bcrypt-3.1.12.gem new file mode 100644 index 0000000..2bc1695 Binary files /dev/null and b/bcrypt-3.1.12.gem differ diff --git a/rubygem-bcrypt.spec b/rubygem-bcrypt.spec new file mode 100644 index 0000000..7bd2d09 --- /dev/null +++ b/rubygem-bcrypt.spec @@ -0,0 +1,65 @@ +%global gem_name bcrypt +Name: rubygem-%{gem_name} +Version: 3.1.12 +Release: 1 +Summary: Wrapper around bcrypt() password hashing algorithm +License: MIT and Public Domain and ISC +URL: https://github.com/codahale/bcrypt-ruby +Source0: https://rubygems.org/gems/bcrypt-%{version}.gem +BuildRequires: ruby(release) rubygems-devel ruby-devel rubygem(rspec) gcc +Provides: rubygem(brypt-ruby) = %{version} +Provides: rubygem-bcrypt-ruby = %{version}-%{release} +Obsoletes: rubygem-bcrypt-ruby <= 3.1.2-2 +%description +bcrypt() is a sophisticated and secure hash algorithm designed by The +OpenBSD project for hashing passwords. bcrypt-ruby provides a simple, +humane wrapper for safely handling passwords. + +%package doc +Summary: Documentation for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch +%description doc +Documentation for %{name}. + +%prep +%setup -q -c -T +%gem_install -n %{SOURCE0} + +%build + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ +mkdir -p %{buildroot}%{gem_extdir_mri} +cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/ +rm -rf %{buildroot}%{gem_instdir}/ext/ + +%check +pushd .%{gem_instdir} +rspec -I$(dirs +1)%{gem_extdir_mri} spec +popd + +%files +%dir %{gem_instdir} +%{gem_extdir_mri} +%exclude %{gem_instdir}/.* +%exclude %{gem_instdir}/appveyor.yml +%license %{gem_instdir}/COPYING +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/CHANGELOG +%{gem_instdir}/Gemfile* +%doc %{gem_instdir}/README.md +%{gem_instdir}/Rakefile +%{gem_instdir}/%{gem_name}.gemspec +%{gem_instdir}/spec + +%changelog +* Wed Aug 12 2020 yanan li - 3.1.12-1 +- Package init diff --git a/rubygem-bcrypt.yaml b/rubygem-bcrypt.yaml new file mode 100644 index 0000000..45d4481 --- /dev/null +++ b/rubygem-bcrypt.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/codahale/bcrypt-ruby.git +version_control: github +src_repo: codahale/bcrypt-ruby +tag_prefix: "^v" +seperator: "."