[packages/ruby-bson] Up to 5.2.0

arekm arekm at pld-linux.org
Wed Mar 18 14:50:20 CET 2026


commit 48c76ba10e5e30ca5be43f2cc2412415808ee00c
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Mar 18 14:47:05 2026 +0100

    Up to 5.2.0

 ruby-bson.spec | 46 +++++++++++++++++-----------------------------
 1 file changed, 17 insertions(+), 29 deletions(-)
---
diff --git a/ruby-bson.spec b/ruby-bson.spec
index f57c5b1..3f94959 100644
--- a/ruby-bson.spec
+++ b/ruby-bson.spec
@@ -5,21 +5,20 @@
 %define	gem_name bson
 Summary:	Ruby implementation of BSON
 Name:		ruby-%{gem_name}
-Version:	1.6.4
-Release:	2
-License:	Apache v2.0
+Version:	5.2.0
+Release:	1
+License:	Apache-2.0
 Group:		Development/Languages
-Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
-# Source0-md5:	b57dc6b0d7f52424e5854b4442e09ea3
-URL:		http://www.mongodb.org
+Obsoletes:	ruby-bson-doc < %{version}-%{release}
+Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
+# Source0-md5:	48cce5da08593134fef87ef9c857893d
+URL:		https://github.com/mongodb/bson-ruby
 BuildRequires:	rpm-rubyprov
 BuildRequires:	rpmbuild(macros) >= 1.656
-BuildRequires:	sed >= 4.0
 %if %{with tests}
 BuildRequires:	ruby-json
-BuildRequires:	ruby-minitest
+BuildRequires:	ruby-rspec-core
 %endif
-BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -27,32 +26,22 @@ A Ruby BSON implementation for MongoDB. For more information about
 Mongo, see <http://www.mongodb.org>. For more information on BSON, see
 <http://www.bsonspec.org>.
 
-%package doc
-Summary:	Documentation for %{name}
-Group:		Documentation
-Requires:	%{name} = %{version}-%{release}
-
-%description doc
-Documentation for %{name}.
-
 %prep
 %setup -q -n %{gem_name}-%{version}
 
-%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
-
 %build
+cd ext/bson
+%{__ruby} extconf.rb
+%{__make}
+cd ../..
+cp ext/bson/bson_native.so lib/
 %if %{with tests}
-# Run the test suite with minitest.
-# https://jira.mongodb.org/browse/RUBY-465
-sed -i "/gem 'test-unit'/ d" test/bson/test_helper.rb
-
-testrb -Ilib test/**/*_test.rb
+%{__ruby} -rrubygems -S rspec spec/**/*_spec.rb
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir}}
-cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT%{ruby_vendorlibdir}
 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
 
 %clean
@@ -60,8 +49,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc LICENSE.txt
-%attr(755,root,root) %{_bindir}/b2json
-%attr(755,root,root) %{_bindir}/j2bson
+%doc LICENSE NOTICE README.md CONTRIBUTING.md CHANGELOG.md
+%attr(755,root,root) %{ruby_vendorlibdir}/bson_native.so
 %{ruby_vendorlibdir}/bson.rb
 %{ruby_vendorlibdir}/bson
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-bson.git/commitdiff/48c76ba10e5e30ca5be43f2cc2412415808ee00c



More information about the pld-cvs-commit mailing list