package init
This commit is contained in:
parent
68c3ae6261
commit
9615cc3732
BIN
bcrypt-3.1.12.gem
Normal file
BIN
bcrypt-3.1.12.gem
Normal file
Binary file not shown.
65
rubygem-bcrypt.spec
Normal file
65
rubygem-bcrypt.spec
Normal file
@ -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 <liyanan032@huawei.com> - 3.1.12-1
|
||||
- Package init
|
||||
5
rubygem-bcrypt.yaml
Normal file
5
rubygem-bcrypt.yaml
Normal file
@ -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: "."
|
||||
Loading…
x
Reference in New Issue
Block a user