[rubygem-bcrypt-ruby/f14/master] initial rubygem-bcrypt-ruby commit
Mohammed Morsi
mmorsi at fedoraproject.org
Tue Aug 31 02:26:51 UTC 2010
commit 476e459351700b4807aa6511b2706c71538b728d
Author: Mohammed Morsi <mmorsi at redhat.com>
Date: Mon Aug 30 22:32:55 2010 -0400
initial rubygem-bcrypt-ruby commit
.gitignore | 1 +
rubygem-bcrypt-ruby.spec | 79 ++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 81 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8acd3d7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/bcrypt-ruby-2.1.2.gem
diff --git a/rubygem-bcrypt-ruby.spec b/rubygem-bcrypt-ruby.spec
new file mode 100644
index 0000000..dee546f
--- /dev/null
+++ b/rubygem-bcrypt-ruby.spec
@@ -0,0 +1,79 @@
+# Generated from bcrypt-ruby-2.1.2.gem by gem2rpm -*- rpm-spec -*-
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global gemname bcrypt-ruby
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')}
+
+%global rubyabi 1.8
+
+Summary: Wrapper around bcrypt() password hashing algorithm
+Name: rubygem-%{gemname}
+Version: 2.1.2
+Release: 2%{?dist}
+Group: Development/Languages
+License: BSD with advertising and MIT
+URL: http://bcrypt-ruby.rubyforge.org
+Source0: http://rubygems.org/downloads/%{gemname}-%{version}.gem
+Requires: rubygems
+Requires: ruby(abi) = %{rubyabi}
+BuildRequires: rubygems
+BuildRequires: ruby-devel
+BuildRequires(check): rubygem(rspec)
+BuildRequires(check): rubygem(rake)
+BuildRequires(check): rubygem(diff-lcs)
+Provides: rubygem(%{gemname}) = %{version}
+
+%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.
+
+
+%prep
+%setup -q -c -T
+
+%build
+mkdir -p ./%{gemdir}
+export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
+gem install --local --install-dir ./%{gemdir} \
+ --force -V --rdoc %{SOURCE0}
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{gemdir} %{buildroot}%{ruby_sitearch}
+cp -a .%{gemdir}/* %{buildroot}%{gemdir}/
+
+mv %{buildroot}%{geminstdir}/ext/mri/bcrypt_ext.so %{buildroot}%{ruby_sitearch}
+rm -rf %{buildroot}%{geminstdir}/ext %{buildroot}%{geminstdir}/lib/bcrypt_ext.so
+
+%clean
+rm -rf %{buildroot}
+
+%check
+pushd .%{geminstdir}
+rake spec
+
+%files
+%defattr(-, root, root, -)
+%dir %{geminstdir}
+%{geminstdir}/lib
+%doc %{geminstdir}/spec
+%doc %{gemdir}/doc/%{gemname}-%{version}
+%doc %{geminstdir}/Rakefile
+%doc %{geminstdir}/README
+%doc %{geminstdir}/COPYING
+%doc %{geminstdir}/CHANGELOG
+%{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+%{ruby_sitearch}/bcrypt_ext.so
+
+
+%changelog
+* Tue Aug 24 2010 Mohammed Morsi <mmorsi at redhat.com> - 2.1.2-2
+- Updates / fixes based on review feedback
+- Fixed bcrypt_ext.so install location
+
+* Tue Aug 10 2010 Mohammed Morsi <mmorsi at redhat.com> - 2.1.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..0d2ec54 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7ec49ef9efb417be4443f92092adca99 bcrypt-ruby-2.1.2.gem
More information about the scm-commits
mailing list