|
|
b70464c |
# Generated from bson-1.3.1.gem by gem2rpm -*- rpm-spec -*-
|
|
|
77dec83 |
%global gem_name bson
|
|
|
b70464c |
|
|
|
b70464c |
Summary: Ruby implementation of BSON
|
|
|
77dec83 |
Name: rubygem-%{gem_name}
|
|
|
3e6ac2b |
Version: 1.10.2
|
|
|
5867c8b |
Release: 3%{?dist}
|
|
|
b70464c |
Group: Development/Languages
|
|
|
b70464c |
License: ASL 2.0
|
|
|
b70464c |
URL: http://www.mongodb.org
|
|
|
77dec83 |
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
3e6ac2b |
# git clone https://github.com/mongodb/mongo-ruby-driver.git && cd mongo-ruby-driver && git checkout 1.10.2
|
|
|
3e6ac2b |
# tar czvf bson-1.10.2-tests.tgz test/bson
|
|
|
00fc168 |
Source1: %{gem_name}-%{version}-tests.tgz
|
|
|
00fc168 |
# Use old test_helper.rb, which does not have unnecessary dependencies.
|
|
|
00fc168 |
Source2: https://raw.github.com/mongodb/mongo-ruby-driver/ffc598c0952a37fe81e35fe52e8aa0ce695cb1dd/test/bson/test_helper.rb
|
|
|
9ea3169 |
BuildRequires: ruby(release)
|
|
|
77dec83 |
BuildRequires: rubygems-devel
|
|
|
00fc168 |
BuildRequires: rubygem(activesupport)
|
|
|
3e6ac2b |
BuildRequires: rubygem(test-unit)
|
|
|
b70464c |
BuildArch: noarch
|
|
|
b70464c |
|
|
|
b70464c |
%description
|
|
|
b70464c |
A Ruby BSON implementation for MongoDB. For more information about Mongo, see
|
|
|
b70464c |
http://www.mongodb.org. For more information on BSON, see
|
|
|
b70464c |
http://www.bsonspec.org.
|
|
|
b70464c |
|
|
|
b70464c |
|
|
|
b70464c |
%package doc
|
|
|
b70464c |
Summary: Documentation for %{name}
|
|
|
b70464c |
Group: Documentation
|
|
|
b70464c |
Requires:%{name} = %{version}-%{release}
|
|
|
b70464c |
|
|
|
b70464c |
%description doc
|
|
|
b70464c |
Documentation for %{name}
|
|
|
b70464c |
|
|
|
b70464c |
|
|
|
b70464c |
%prep
|
|
|
b70464c |
%setup -q -c -T
|
|
|
9ea3169 |
%gem_install -n %{SOURCE0}
|
|
|
b70464c |
|
|
|
b70464c |
%build
|
|
|
b70464c |
|
|
|
b70464c |
%install
|
|
|
77dec83 |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
77dec83 |
cp -a .%{gem_dir}/* \
|
|
|
77dec83 |
%{buildroot}%{gem_dir}/
|
|
|
b70464c |
|
|
|
b70464c |
mkdir -p %{buildroot}%{_bindir}
|
|
|
b70464c |
cp -a .%{_bindir}/* \
|
|
|
b70464c |
%{buildroot}%{_bindir}/
|
|
|
b70464c |
|
|
|
77dec83 |
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
|
|
b70464c |
|
|
|
b70464c |
%check
|
|
|
77dec83 |
pushd .%{gem_instdir}
|
|
|
00fc168 |
# Extract tests.
|
|
|
00fc168 |
tar xzf %{SOURCE1}
|
|
|
e204a37 |
|
|
|
00fc168 |
# Move test_helper.rb into place.
|
|
|
00fc168 |
cp %{SOURCE2} test/bson
|
|
|
00fc168 |
|
|
|
00fc168 |
# String#to_bson_code is implemented in Mongo.
|
|
|
00fc168 |
sed -i -r "s|('this.c.d < this.e')\.to_bson_code|BSON::Code.new\(\1\)|" test/bson/bson_test.rb
|
|
|
00fc168 |
|
|
|
00fc168 |
# StringIO is required by BSONTest#test_read_bson_document, but there is no
|
|
|
00fc168 |
# point to report it upstream, since upstream switched to RSpec meanwhile.
|
|
|
3e6ac2b |
ruby -Ilib:test/bson -e 'gem "test-unit"; Dir.glob "./test/**/*_test.rb", &method(:require)'
|
|
|
b70464c |
popd
|
|
|
b70464c |
|
|
|
b70464c |
%files
|
|
|
77dec83 |
%dir %{gem_instdir}
|
|
|
b70464c |
%{_bindir}/b2json
|
|
|
b70464c |
%{_bindir}/j2bson
|
|
|
00fc168 |
%{gem_instdir}/LICENSE
|
|
|
00fc168 |
%{gem_instdir}/VERSION
|
|
|
77dec83 |
%{gem_instdir}/bin
|
|
|
77dec83 |
%{gem_libdir}
|
|
|
77dec83 |
%exclude %{gem_cache}
|
|
|
77dec83 |
%{gem_spec}
|
|
|
b70464c |
|
|
|
b70464c |
%files doc
|
|
|
77dec83 |
%doc %{gem_docdir}
|
|
|
00fc168 |
%{gem_instdir}/bson.gemspec
|
|
|
b70464c |
|
|
|
b70464c |
|
|
|
b70464c |
%changelog
|
|
|
5867c8b |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.2-3
|
|
|
5867c8b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
5867c8b |
|
|
|
2acdf3f |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.2-2
|
|
|
2acdf3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
2acdf3f |
|
|
|
3e6ac2b |
* Thu Jun 26 2014 Vít Ondruch <vondruch@redhat.com> - 1.10.2-1
|
|
|
3e6ac2b |
- Update to bson 1.10.2.
|
|
|
3e6ac2b |
|
|
|
e4d7619 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.2-2
|
|
|
e4d7619 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
e4d7619 |
|
|
|
00fc168 |
* Tue Nov 19 2013 Vít Ondruch <vondruch@redhat.com> - 1.9.2-1
|
|
|
00fc168 |
- Update to bson 1.9.2.
|
|
|
00fc168 |
|
|
|
33ca180 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.4-4
|
|
|
33ca180 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
33ca180 |
|
|
|
9ea3169 |
* Wed Mar 06 2013 Vít Ondruch <vondruch@redhat.com> - 1.6.4-3
|
|
|
9ea3169 |
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
9ea3169 |
|
|
|
f674a09 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.4-2
|
|
|
f674a09 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
f674a09 |
|
|
|
d3b76ed |
* Wed Aug 08 2012 Vít Ondruch <vondruch@redhat.com> - 1.6.4-1
|
|
|
d3b76ed |
- Update to bson 1.6.4.
|
|
|
d3b76ed |
|
|
|
4a9cab1 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-4
|
|
|
4a9cab1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
4a9cab1 |
|
|
|
77dec83 |
* Thu Feb 02 2012 Vít Ondruch <vondruch@redhat.com> - 1.4.0-3
|
|
|
77dec83 |
- Rebuilt for Ruby 1.9.3.
|
|
|
77dec83 |
|
|
|
76989fd |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-2
|
|
|
76989fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
76989fd |
|
|
|
e204a37 |
* Thu Sep 22 2011 Vít Ondruch <vondruch@redhat.com> - 1.4.0-1
|
|
|
e204a37 |
- Update to bson 1.4.0
|
|
|
e204a37 |
|
|
|
b70464c |
* Wed May 25 2011 Vít Ondruch <vondruch@redhat.com> - 1.3.1-1
|
|
|
b70464c |
- Initial package
|