[rubygem-multi_xml/f17] Initial import (#785639).

Vít Ondruch vondruch at fedoraproject.org
Tue Mar 6 14:55:00 UTC 2012


commit 0acb0c5e59fc2de0acb59dc73be309704e73c34a
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Tue Mar 6 15:53:46 2012 +0100

    Initial import (#785639).

 .gitignore                             |    1 +
 multi_xml-0.4.1-fix-failing-spec.patch |   12 ++++
 rubygem-multi_xml.spec                 |  105 ++++++++++++++++++++++++++++++++
 sources                                |    1 +
 4 files changed, 119 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5a3060f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/multi_xml-0.4.1.gem
diff --git a/multi_xml-0.4.1-fix-failing-spec.patch b/multi_xml-0.4.1-fix-failing-spec.patch
new file mode 100644
index 0000000..6855565
--- /dev/null
+++ b/multi_xml-0.4.1-fix-failing-spec.patch
@@ -0,0 +1,12 @@
+--- a/spec/parser_shared_example.rb
++++ b/spec/parser_shared_example.rb
+@@ -302,7 +302,7 @@ shared_examples_for "a parser" do |parser|
+         end
+ 
+         it "should return the correct number" do
+-          MultiXml.parse(@xml)['tag'].should == 3.14159265358979323846264338327950288419716939937510
++          MultiXml.parse(@xml)['tag'].should == BigDecimal.new('3.14159265358979323846264338327950288419716939937510')
+         end
+       end
+ 
+-- 
diff --git a/rubygem-multi_xml.spec b/rubygem-multi_xml.spec
new file mode 100644
index 0000000..4e27a08
--- /dev/null
+++ b/rubygem-multi_xml.spec
@@ -0,0 +1,105 @@
+# Generated from multi_xml-0.4.1.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name multi_xml
+
+%{!?gem_dir: %global gem_dir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)}
+%{!?gem_instdir: %global gem_instdir %{gem_dir}/gems/%{gem_name}-%{version}}
+
+%if 0%{?fedora} >= 17
+%global rubyabi 1.9.1
+%else
+%global rubyabi 1.8
+%endif
+
+Summary: A generic swappable back-end for XML parsing
+Name: rubygem-%{gem_name}
+Version: 0.4.1
+Release: 3%{?dist}
+Group: Development/Languages
+License: MIT
+URL: https://github.com/sferik/multi_xml
+Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
+# https://github.com/sferik/multi_xml/issues/18
+Patch0: multi_xml-0.4.1-fix-failing-spec.patch
+Requires: ruby(rubygems)
+Requires: ruby
+BuildRequires: rubygems-devel
+BuildRequires: rubygem(rspec-core)
+BuildRequires: rubygem(nokogiri)
+BuildRequires: ruby
+
+%if 0%{?fedora} >= 17
+BuildRequires: rubygem(bigdecimal)
+Requires: rubygem(bigdecimal)
+%endif
+
+Requires: ruby(abi) = %{rubyabi}
+BuildArch: noarch
+Provides: rubygem(%{gem_name}) = %{version}
+
+%description
+A gem to provide swappable XML backends utilizing LibXML, Nokogiri, Ox, or
+REXML.
+
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}
+
+
+%prep
+%setup -q -c -T
+mkdir -p .%{gem_dir}
+gem install --local --install-dir .%{gem_dir} \
+            --force %{SOURCE0}
+
+%build
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
+
+
+
+%check
+pushd .%{gem_instdir}
+# Remove the simplecov dependency.
+sed -i -e "1,2d" spec/helper.rb
+
+cat %{PATCH0} | patch -p1
+
+rspec spec
+popd
+
+%files
+%dir %{gem_instdir}
+%{gem_libdir}
+%exclude %{gem_instdir}/.*
+%{gem_cache}
+%{gem_spec}
+%doc %{gem_instdir}/README.md
+%doc %{gem_instdir}/LICENSE.md
+
+
+%files doc
+%doc %{gem_docdir}
+%{gem_instdir}/spec
+%{gem_instdir}/Rakefile
+%{gem_instdir}/*.gemspec
+%{gem_instdir}/Gemfile
+
+
+%changelog
+* Fri Mar 02 2012 Vít Ondruch <vondruch at redhat.com> - 0.4.1-3
+- Update review.
+
+* Mon Feb 20 2012 Michael Stahnke <stahnma at fedoraproject.org> - 0.4.1-2
+- Update review
+
+* Fri Jan 20 2012 Michael Stahnke <mastahnke at gmail.com> - 0.4.1-1
+- Initial package
diff --git a/sources b/sources
index e69de29..4bf6156 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1cfd7ac6b36e3ff1b17cec7da8d5f2b0  multi_xml-0.4.1.gem


More information about the scm-commits mailing list