[rubygem-bcrypt-ruby] Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
Vít Ondruch
vondruch at fedoraproject.org
Fri Mar 1 16:18:20 UTC 2013
commit c4d91366d47e254fe4fe1d25eb0de46a43b80a4b
Author: Vít Ondruch <vondruch at redhat.com>
Date: Fri Mar 1 16:59:30 2013 +0100
Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
rubygem-bcrypt-ruby.spec | 28 +++++++++++++---------------
1 files changed, 13 insertions(+), 15 deletions(-)
---
diff --git a/rubygem-bcrypt-ruby.spec b/rubygem-bcrypt-ruby.spec
index c03318a..074e138 100644
--- a/rubygem-bcrypt-ruby.spec
+++ b/rubygem-bcrypt-ruby.spec
@@ -1,12 +1,11 @@
# Generated from bcrypt-ruby-2.1.2.gem by gem2rpm -*- rpm-spec -*-
%global gem_name bcrypt-ruby
-%global rubyabi 1.9.1
Summary: Wrapper around bcrypt() password hashing algorithm
Name: rubygem-%{gem_name}
Version: 3.0.1
-Release: 6%{?dist}
+Release: 7%{?dist}
Group: Development/Languages
# ext/* - Public Domain
# spec/TestBCrypt.java - ISC
@@ -14,11 +13,10 @@ License: MIT and Public Domain and ISC
URL: http://bcrypt-ruby.rubyforge.org
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
Requires: ruby(rubygems)
-Requires: ruby(abi) = %{rubyabi}
+Requires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby-devel
-# Use rspec-core until rspec are not migrated to RSpec 2.x
-BuildRequires: rubygem(rspec-core)
+BuildRequires: rubygem(rspec)
Provides: rubygem(%{gem_name}) = %{version}
%description
@@ -31,20 +29,17 @@ passwords.
%prep
%setup -q -c -T
+%gem_install -n %{SOURCE0}
%build
-mkdir -p ./%{gem_dir}
-export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
-gem install --local --install-dir ./%{gem_dir} \
- --force -V --rdoc %{SOURCE0}
%install
-rm -rf %{buildroot}
-mkdir -p %{buildroot}%{gem_dir} %{buildroot}%{ruby_vendorarchdir}
-mkdir -p %{buildroot}%{gem_extdir}/lib
-cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
+mkdir -p %{buildroot}%{gem_dir}
+cp -pa .%{gem_dir}/* \
+ %{buildroot}%{gem_dir}/
-mv %{buildroot}%{gem_libdir}/bcrypt_ext.so %{buildroot}%{gem_extdir}/lib
+mkdir -p %{buildroot}%{gem_extdir_mri}/lib
+mv %{buildroot}%{gem_libdir}/bcrypt_ext.so %{buildroot}%{gem_extdir_mri}/lib
%check
pushd .%{gem_instdir}
@@ -57,7 +52,7 @@ popd
%{gem_instdir}/Gemfile*
%{gem_instdir}/bcrypt-ruby.gemspec
%{gem_libdir}
-%{gem_extdir}
+%{gem_extdir_mri}
%exclude %doc %{gem_instdir}/ext
%{gem_instdir}/spec
%doc %{gem_docdir}
@@ -70,6 +65,9 @@ popd
%changelog
+* Fri Mar 01 2013 Vít Ondruch <vondruch at redhat.com> - 3.0.1-7
+- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
+
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.0.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the scm-commits
mailing list