[rubygem-bson_ext] Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
Vít Ondruch
vondruch at fedoraproject.org
Wed Mar 6 08:58:02 UTC 2013
commit c66dea5e98466a73ed74da6334b48387925b4398
Author: Vít Ondruch <vondruch at redhat.com>
Date: Wed Mar 6 09:09:29 2013 +0100
Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
rubygem-bson_ext.spec | 21 ++++++++++-----------
1 files changed, 10 insertions(+), 11 deletions(-)
---
diff --git a/rubygem-bson_ext.spec b/rubygem-bson_ext.spec
index 77daec0..403e684 100644
--- a/rubygem-bson_ext.spec
+++ b/rubygem-bson_ext.spec
@@ -1,12 +1,11 @@
# Generated from bson_ext-1.3.1.gem by gem2rpm -*- rpm-spec -*-
%global gem_name bson_ext
-%global rubyabi 1.9.1
Summary: C extensions for Ruby BSON
Name: rubygem-%{gem_name}
Version: 1.6.4
-Release: 2%{?dist}
+Release: 3%{?dist}
Group: Development/Languages
License: ASL 2.0
URL: http://www.mongodb.org/display/DOCS/BSON
@@ -18,11 +17,11 @@ Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: %{gem_name}-%{version}-tests.tgz
Requires: rubygem(bson) >= 1.4.0
-Requires: ruby(abi) = %{rubyabi}
+Requires: ruby(release)
Requires: ruby(rubygems)
Requires: ruby
BuildRequires: ruby-devel
-BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby
# for tests:
@@ -50,10 +49,7 @@ Documentation for %{name}
%prep
%setup -q -c -T
-mkdir -p .%{gem_dir}
-export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
-gem install --local --install-dir .%{gem_dir} \
- -V --force %{SOURCE0}
+%gem_install -n %{SOURCE0}
%build
@@ -61,11 +57,11 @@ gem install --local --install-dir .%{gem_dir} \
%install
mkdir -p %{buildroot}%{gem_dir}
-mkdir -p %{buildroot}%{gem_extdir}/ext/%{gem_name}
+mkdir -p %{buildroot}%{gem_extdir_mri}/ext/%{gem_name}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
-mv %{buildroot}%{gem_instdir}/ext/%{gem_name}/cbson.so %{buildroot}%{gem_extdir}/ext/%{gem_name}/
+mv %{buildroot}%{gem_instdir}/ext/%{gem_name}/cbson.so %{buildroot}%{gem_extdir_mri}/ext/%{gem_name}/
# Remove the binary extension sources and build leftovers.
rm -rf %{buildroot}%{gem_instdir}/ext
@@ -91,7 +87,7 @@ popd
%dir %{gem_instdir}
%exclude %{gem_cache}
%{gem_spec}
-%{gem_extdir}
+%{gem_extdir_mri}
%files doc
%doc %{gem_docdir}
@@ -99,6 +95,9 @@ popd
%{gem_instdir}/bson_ext.gemspec
%changelog
+* Wed Mar 06 2013 Vít Ondruch <vondruch at redhat.com> - 1.6.4-3
+- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
+
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.6.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the scm-commits
mailing list