[packages/ruby-bson] new, version 1.6.4

glen glen at pld-linux.org
Thu Apr 25 20:49:41 CEST 2013


commit fd8395df90683bd845f235d908b7449b8c8b7d33
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Apr 25 21:48:52 2013 +0300

    new, version 1.6.4
    
    based on fedora rubygem-bson package
    9ea3169d8f7baf29270c58be860785081b328f09

 ruby-bson.spec | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)
---
diff --git a/ruby-bson.spec b/ruby-bson.spec
new file mode 100644
index 0000000..99a4db2
--- /dev/null
+++ b/ruby-bson.spec
@@ -0,0 +1,67 @@
+#
+# Conditional build:
+%bcond_without	tests		# build without tests
+
+%define	gem_name bson
+Summary:	Ruby implementation of BSON
+Name:		ruby-%{gem_name}
+Version:	1.6.4
+Release:	1
+License:	Apache v2.0
+Group:		Development/Languages
+Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
+# Source0-md5:	b57dc6b0d7f52424e5854b4442e09ea3
+URL:		http://www.mongodb.org
+BuildRequires:	rpm-rubyprov
+BuildRequires:	rpmbuild(macros) >= 1.656
+BuildRequires:	sed >= 4.0
+%if %{with tests}
+BuildRequires:	ruby-json
+BuildRequires:	ruby-minitest
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+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
+%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
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir}}
+cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+
+%clean
+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
+%{ruby_vendorlibdir}/bson.rb
+%{ruby_vendorlibdir}/bson
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list