!2 add spec source yaml files of rubygem-multi_xml
From: @zhang-yn Reviewed-by: @davidhan008 Signed-off-by: @davidhan008
This commit is contained in:
commit
eb189eb66a
BIN
multi_xml-0.6.0-specs.tgz
Normal file
BIN
multi_xml-0.6.0-specs.tgz
Normal file
Binary file not shown.
BIN
multi_xml-0.6.0.gem
Normal file
BIN
multi_xml-0.6.0.gem
Normal file
Binary file not shown.
20
multi_xml-ox-white-space.patch
Normal file
20
multi_xml-ox-white-space.patch
Normal file
@ -0,0 +1,20 @@
|
||||
Author: František Dvořák <valtri@civ.zcu.cz>
|
||||
Date: Thu May 18 23:33:03 2017 +0200
|
||||
|
||||
Update for ox > 2.4.11
|
||||
|
||||
There is more pedantic parsing of white-space characters in ox > 2.4.11. Better to set explicitly the expected skip mode.
|
||||
|
||||
diff --git a/lib/multi_xml/parsers/ox.rb b/lib/multi_xml/parsers/ox.rb
|
||||
index 9589cd2..98eef84 100644
|
||||
--- a/lib/multi_xml/parsers/ox.rb
|
||||
+++ b/lib/multi_xml/parsers/ox.rb
|
||||
@@ -29,7 +29,7 @@ module MultiXml
|
||||
|
||||
def parse(io)
|
||||
handler = Handler.new
|
||||
- ::Ox.sax_parse(handler, io, :convert_special => true)
|
||||
+ ::Ox.sax_parse(handler, io, :convert_special => true, :skip => :skip_return)
|
||||
handler.doc
|
||||
end
|
||||
|
||||
161
rubygem-multi_xml.spec
Normal file
161
rubygem-multi_xml.spec
Normal file
@ -0,0 +1,161 @@
|
||||
# Generated from multi_xml-0.4.1.gem by gem2rpm -*- rpm-spec -*-
|
||||
%global gem_name multi_xml
|
||||
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 0.6.0
|
||||
Release: 10%{?dist}
|
||||
Summary: A generic swappable back-end for XML parsing
|
||||
License: MIT
|
||||
URL: https://github.com/sferik/multi_xml
|
||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||
# git clone https://github.com/sferik/multi_xml.git && cd multi_xml/
|
||||
# git checkout v0.6.0 && tar czf multi_xml-0.6.0-specs.tgz spec/
|
||||
Source1: multi_xml-%{version}-specs.tgz
|
||||
# https://github.com/sferik/multi_xml/pull/60
|
||||
Patch0: multi_xml-ox-white-space.patch
|
||||
# ruby package has just soft dependency on rubygem(bigdecimal), while
|
||||
# MultiXML always requires it.
|
||||
Requires: rubygem(bigdecimal)
|
||||
BuildRequires: ruby
|
||||
BuildRequires: ruby(release)
|
||||
BuildRequires: rubygems-devel
|
||||
BuildRequires: rubygem(bigdecimal)
|
||||
BuildRequires: rubygem(rspec)
|
||||
BuildRequires: rubygem(nokogiri)
|
||||
BuildRequires: rubygem(ox)
|
||||
BuildRequires: rubygem-rexml
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Provides swappable XML backends utilizing LibXML, Nokogiri, Ox, or REXML.
|
||||
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
Documentation for %{name}.
|
||||
|
||||
%prep
|
||||
gem unpack %{SOURCE0}
|
||||
|
||||
%setup -q -D -T -n %{gem_name}-%{version} -a1
|
||||
%patch0 -p1
|
||||
|
||||
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
||||
|
||||
|
||||
%build
|
||||
gem build %{gem_name}.gemspec
|
||||
|
||||
%gem_install
|
||||
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{gem_dir}
|
||||
cp -a .%{gem_dir}/* \
|
||||
%{buildroot}%{gem_dir}/
|
||||
|
||||
|
||||
%check
|
||||
pushd .%{gem_instdir}
|
||||
tar xzf %{SOURCE1}
|
||||
|
||||
# We don't care about code coverage.
|
||||
sed -i '/simplecov/,/^end$/ s/^/#/' spec/helper.rb
|
||||
|
||||
rspec spec
|
||||
popd
|
||||
|
||||
|
||||
%files
|
||||
%dir %{gem_instdir}
|
||||
%exclude %{gem_instdir}/.*
|
||||
%license %{gem_instdir}/LICENSE.md
|
||||
%{gem_libdir}
|
||||
%exclude %{gem_cache}
|
||||
%{gem_spec}
|
||||
|
||||
|
||||
%files doc
|
||||
%doc %{gem_docdir}
|
||||
%doc %{gem_instdir}/CHANGELOG.md
|
||||
%doc %{gem_instdir}/CONTRIBUTING.md
|
||||
%doc %{gem_instdir}/README.md
|
||||
%{gem_instdir}/*.gemspec
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Fri May 19 2017 František Dvořák <valtri@civ.zcu.cz> - 0.6.0-3
|
||||
- Patch to support Ox > 2.4.11
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Thu Jan 05 2017 Vít Ondruch <vondruch@redhat.com> - 0.6.0-1
|
||||
- Update to MultiXML 0.6.0.
|
||||
|
||||
* Mon Oct 31 2016 František Dvořák <valtri@civ.zcu.cz> - 0.5.5-5
|
||||
- Enable tests with Ox parser
|
||||
|
||||
* Fri Apr 08 2016 Vít Ondruch <vondruch@redhat.com> - 0.5.5-4
|
||||
- Explicitly set rubygem(bigdecimal) dependency.
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.5-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.5-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Tue Feb 24 2015 Vít Ondruch <vondruch@redhat.com> - 0.5.5-1
|
||||
- Update to MultiXML 0.5.5.
|
||||
|
||||
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Mon Mar 04 2013 Vít Ondruch <vondruch@redhat.com> - 0.5.2-3
|
||||
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
||||
|
||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Mon Jan 14 2013 Vít Ondruch <vondruch@redhat.com> - 0.5.2-1
|
||||
- Update to multi_xml 0.5.2.
|
||||
|
||||
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Fri Mar 02 2012 Vít Ondruch <vondruch@redhat.com> - 0.4.1-3
|
||||
- Update review.
|
||||
|
||||
* Mon Feb 20 2012 Michael Stahnke <stahnma@fedoraproject.org> - 0.4.1-2
|
||||
- Update review
|
||||
|
||||
* Fri Jan 20 2012 Michael Stahnke <mastahnke@gmail.com> - 0.4.1-1
|
||||
- Initial package
|
||||
Loading…
x
Reference in New Issue
Block a user