[rubygem-bson] Update to bson 1.4.0
Vít Ondruch
vondruch at fedoraproject.org
Thu Sep 22 08:11:53 UTC 2011
commit e204a3738779e50f705cb91cd57a8a669a505144
Author: Vít Ondruch <vondruch at redhat.com>
Date: Thu Sep 22 10:11:36 2011 +0200
Update to bson 1.4.0
.gitignore | 1 +
make-bson-test-suite-independent-of-mongo.patch | 64 -----------------------
rubygem-bson.spec | 18 +++----
sources | 3 +-
4 files changed, 10 insertions(+), 76 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 4168851..43eed67 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/bson-tests.tgz
/bson-1.3.1.gem
+/bson-1.4.0.gem
diff --git a/rubygem-bson.spec b/rubygem-bson.spec
index 8806ee2..a39e38d 100644
--- a/rubygem-bson.spec
+++ b/rubygem-bson.spec
@@ -6,16 +6,12 @@
Summary: Ruby implementation of BSON
Name: rubygem-%{gemname}
-Version: 1.3.1
+Version: 1.4.0
Release: 1%{?dist}
Group: Development/Languages
License: ASL 2.0
URL: http://www.mongodb.org
Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
-# Test included in gem are not functional.
-# See https://jira.mongodb.org/browse/RUBY-277 for reference
-Source1: %{gemname}-tests.tgz
-Patch0: make-bson-test-suite-independent-of-mongo.patch
Requires: ruby(abi) = %{rubyabi}
Requires: rubygems
BuildRequires: ruby(abi) = %{rubyabi}
@@ -47,10 +43,6 @@ gem install --local --install-dir .%{gemdir} \
--bindir .%{_bindir} \
--force %{SOURCE0}
-pushd .%{geminstdir}
-%patch0 -p1
-popd
-
%build
%install
@@ -66,7 +58,10 @@ find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x
%check
pushd .%{geminstdir}
-tar xzvf %{SOURCE1}
+# Remove unused mocha dependency.
+# https://jira.mongodb.org/browse/RUBY-336
+sed -i '16,16d' test/bson/test_helper.rb
+
RUBYOPT=rubygems testrb test/**/*_test.rb
popd
@@ -86,5 +81,8 @@ popd
%changelog
+* Thu Sep 22 2011 Vít Ondruch <vondruch at redhat.com> - 1.4.0-1
+- Update to bson 1.4.0
+
* Wed May 25 2011 Vít Ondruch <vondruch at redhat.com> - 1.3.1-1
- Initial package
diff --git a/sources b/sources
index 8a765b7..716e215 100644
--- a/sources
+++ b/sources
@@ -1,2 +1 @@
-de41d40a1f660781f482641190379230 bson-tests.tgz
-4a2ef9e7e979dd821ad35cefa047188d bson-1.3.1.gem
+a4b614debb7b772d50baf2e2e37e42e5 bson-1.4.0.gem
More information about the scm-commits
mailing list