[rubygem-bcrypt-ruby] Update to bcrypt-ruby 3.0.1.

Vít Ondruch vondruch at fedoraproject.org
Wed Dec 14 15:38:50 UTC 2011


commit ef27676c548ecdedac34da520307f5c94d2e5694
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Wed Dec 14 16:38:46 2011 +0100

    Update to bcrypt-ruby 3.0.1.

 .gitignore               |    1 +
 rubygem-bcrypt-ruby.spec |   37 +++++++++++++++++++++----------------
 sources                  |    2 +-
 3 files changed, 23 insertions(+), 17 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 8acd3d7..8578fe1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /bcrypt-ruby-2.1.2.gem
+/bcrypt-ruby-3.0.1.gem
diff --git a/rubygem-bcrypt-ruby.spec b/rubygem-bcrypt-ruby.spec
index 1797302..701799a 100644
--- a/rubygem-bcrypt-ruby.spec
+++ b/rubygem-bcrypt-ruby.spec
@@ -1,6 +1,7 @@
 # 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 gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
 %global geminstdir %{gemdir}/gems/%{gemname}-%{version}
 %{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')}
 
@@ -8,19 +9,20 @@
 
 Summary: Wrapper around bcrypt() password hashing algorithm
 Name: rubygem-%{gemname}
-Version: 2.1.2
-Release: 4%{?dist}
+Version: 3.0.1
+Release: 1%{?dist}
 Group: Development/Languages
-License: BSD with advertising and MIT
+# ext/* - Public Domain
+# spec/TestBCrypt.java - ISC
+License: MIT and Public Domain and ISC
 URL: http://bcrypt-ruby.rubyforge.org
 Source0: http://rubygems.org/downloads/%{gemname}-%{version}.gem
-Requires: rubygems
+Requires: ruby(rubygems)
 Requires: ruby(abi) = %{rubyabi}
-BuildRequires: rubygems
+BuildRequires: ruby(rubygems)
 BuildRequires: ruby-devel
-BuildRequires: rubygem(rspec)
-BuildRequires: rubygem(rake)
-BuildRequires: rubygem(diff-lcs)
+# Use rspec-core until rspec are not migrated to RSpec 2.x
+BuildRequires: rubygem(rspec-core)
 Provides: rubygem(%{gemname}) = %{version}
 
 %description
@@ -48,29 +50,32 @@ 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
+rspec spec
+popd
 
 %files
-%defattr(-, root, root, -)
 %dir %{geminstdir}
+%exclude %{geminstdir}/.*
+%{geminstdir}/Gemfile*
+%{geminstdir}/bcrypt-ruby.gemspec
 %{geminstdir}/lib
 %doc %{geminstdir}/spec
 %doc %{gemdir}/doc/%{gemname}-%{version}
 %doc %{geminstdir}/Rakefile
-%doc %{geminstdir}/README
+%doc %{geminstdir}/README.md
 %doc %{geminstdir}/COPYING
 %doc %{geminstdir}/CHANGELOG
-%{gemdir}/cache/%{gemname}-%{version}.gem
+%exclude %{gemdir}/cache/%{gemname}-%{version}.gem
 %{gemdir}/specifications/%{gemname}-%{version}.gemspec
 %{ruby_sitearch}/bcrypt_ext.so
 
 
 %changelog
+* Wed Dec 14 2011 Vít Ondruch <vondruch at redhat.com> - 3.0.1-1
+- Update to bcrypt-ruby 3.0.1.
+
 * Mon Aug 08 2011 Mo Morsi <mmorsi at redhat.com> - 2.1.2-4
 - Replace BR(check) with BR
 
diff --git a/sources b/sources
index 0d2ec54..a501b1f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-7ec49ef9efb417be4443f92092adca99  bcrypt-ruby-2.1.2.gem
+16386bccd452caa2d9f61f998c42fbbc  bcrypt-ruby-3.0.1.gem


More information about the scm-commits mailing list