[rubygem-mongo] Initial import (#760696)

tdawson tdawson at fedoraproject.org
Sun Aug 12 13:36:55 UTC 2012


commit f55cc898a29e7c4a631f95c11cfd52d77d59ced1
Author: Troy Dawson <tdawson at redhat.com>
Date:   Sun Aug 12 08:36:35 2012 -0500

    Initial import (#760696)

 .gitignore         |    1 +
 rubygem-mongo.spec |  133 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 135 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3a839a6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mongo-1.6.4.gem
diff --git a/rubygem-mongo.spec b/rubygem-mongo.spec
new file mode 100644
index 0000000..ffa881a
--- /dev/null
+++ b/rubygem-mongo.spec
@@ -0,0 +1,133 @@
+%global gem_name mongo
+%global rubyabi 1.9.1
+
+Summary:       Ruby driver for the MongoDB
+Name:          rubygem-%{gem_name}
+Version:       1.6.4
+Release:       2%{?dist}
+Group:         Development/Languages
+License:       ASL 2.0
+URL:           http://www.mongodb.org
+Source0:       http://rubygems.org/gems/%{gem_name}-%{version}.gem
+Requires:      ruby(abi) = %{rubyabi}
+Requires:      rubygems
+Requires:      rubygem(bson) = %{version}
+BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: rubygems
+BuildRequires: rubygems-devel
+# For running the tests
+BuildRequires: rubygem(bson)
+BuildRequires: rubygem(shoulda)
+BuildRequires: rubygem(mocha)
+#BuildRequires: rubygem(minitest)
+BuildRequires: rubygem(test-unit)
+BuildArch:     noarch
+Provides:      rubygem(%{gem_name}) = %{version}
+
+
+%description
+A Ruby driver for MongoDB. For more information about Mongo, see
+http://www.mongodb.org.
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires:%{name} = %{version}-%{release}
+
+%description doc
+Documentation for %{name}
+
+
+%prep
+gem unpack %{SOURCE0}
+%setup -q -D -T -n  %{gem_name}-%{version}
+
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+
+%build
+mkdir -p .%{gem_dir}
+
+# Create the gem as gem install only works on a gem file
+gem build %{gem_name}.gemspec
+
+export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
+# gem install compiles any C extensions and installs into a directory
+# We set that to be a local directory so that we can move it into the
+# buildroot in %%install
+gem install -V \
+        --local \
+        --install-dir .%{gem_dir} \
+        --bindir .%{_bindir} \
+        --force \
+        --rdoc \
+        %{gem_name}-%{version}.gem
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
+
+mkdir -p %{buildroot}%{_bindir}
+cp -a .%{_bindir}/* %{buildroot}%{_bindir}
+
+chmod 755 %{buildroot}%{gem_instdir}/test/tools/repl_set_manager.rb
+
+%check
+pushd .%{gem_instdir}
+# Most tests require a mongo server to be running
+# We are only running tests that do not require the server
+RUBYOPT="-rdate" testrb test/conversions_test.rb \
+                        test/support_test.rb \
+                        test/uri_test.rb \
+                        test/unit/*_test.rb
+popd
+
+%files
+%doc %{gem_instdir}/LICENSE.txt
+%dir %{gem_instdir}
+%{_bindir}/mongo_console
+%{gem_instdir}/bin
+%{gem_libdir}
+%{gem_spec}
+%exclude %{gem_cache}
+
+%files doc
+%doc %{gem_instdir}/README.md
+%doc %{gem_docdir}
+%doc %{gem_instdir}/docs
+%{gem_instdir}/test
+%{gem_instdir}/mongo.gemspec
+%{gem_instdir}/Rakefile
+
+%changelog
+* Fri Aug 10 2012 Troy Dawson <tdawson at redhat.com> - 1.6.4-2
+- Fixed doc
+- removed more BuildRequires that are not required
+
+* Thu Aug 09 2012 Troy Dawson <tdawson at redhat.com> - 1.6.4-1
+- Updated to latest version
+- Removed BuildRequires that are not needed
+
+* Thu Aug 09 2012 Troy Dawson <tdawson at redhat.com> - 1.4.0-7
+- Fixed checks.  
+  Only run checks that do not require a running mongodb server
+
+* Tue Aug 07 2012 Troy Dawson <tdawson at redhat.com> - 1.4.0-6
+- Changed .gemspec and Rakefile to not be doc
+- Added checks
+
+* Thu Aug 02 2012 Troy Dawson <tdawson at redhat.com> - 1.4.0-5
+- Fixed rubygem(bson) requires
+
+* Mon Jul 23 2012 Troy Dawson <tdawson at redhat.com> - 1.4.0-4
+- Updated to meet new fedora rubygem guidelines
+
+* Thu Nov 17 2011 Troy Dawson <tdawson at redhat.com> - 1.4.0-3
+- Changed group to Development/Languages
+- Changed the global variables
+- Seperated the doc and test into the doc rpm
+
+* Thu Nov 17 2011 Troy Dawson <tdawson at redhat.com> - 1.4.0-2
+- Added %{?dist} to version
+
+* Tue Nov 15 2011  <tdawson at redhat.com> - 1.4.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..cef960b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c483d7ae303c5ea4d41ea7556b4a1917  mongo-1.6.4.gem


More information about the scm-commits mailing list