|
|
|
@ -2,15 +2,14 @@
|
|
|
|
|
%global gem_name multi_json
|
|
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 1.12.1
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Version: 1.13.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: A common interface to multiple JSON libraries
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://github.com/intridea/multi_json
|
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
# git clone https://github.com/intridea/multi_json.git && cd multi_json
|
|
|
|
|
# git checkout v1.12.1 && tar czvf multi_json-1.12.1-tests.tgz ./spec/
|
|
|
|
|
# git checkout v1.13.1 && tar czvf multi_json-1.13.1-tests.tgz ./spec/
|
|
|
|
|
Source1: %{gem_name}-%{version}-tests.tgz
|
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
|
BuildRequires: rubygems-devel >= 1.3.5
|
|
|
|
@ -30,7 +29,6 @@ JrJackson, and OkJson.
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
Group: Documentation
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
@ -54,7 +52,7 @@ pushd .%{gem_instdir}
|
|
|
|
|
tar xf %{SOURCE1}
|
|
|
|
|
|
|
|
|
|
# oj is not available on Fedora.
|
|
|
|
|
sed -i '139,164 s/^/#/' spec/multi_json_spec.rb
|
|
|
|
|
sed -i '138,165 s/^/#/' spec/multi_json_spec.rb
|
|
|
|
|
sed -i "/expect(MultiJson.adapter.to_s).to eq('MultiJson::Adapters::Oj')/ s/Oj/JsonGem/" spec/multi_json_spec.rb
|
|
|
|
|
|
|
|
|
|
# Execute main test suite.
|
|
|
|
@ -83,9 +81,11 @@ popd
|
|
|
|
|
%doc %{gem_instdir}/CHANGELOG.md
|
|
|
|
|
%doc %{gem_instdir}/CONTRIBUTING.md
|
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
|
%{gem_instdir}/multi_json.gemspec
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Mar 23 2018 Vít Ondruch <vondruch@redhat.com> - 1.13.1-1
|
|
|
|
|
- Update to MultiJSON 1.13.1.
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.1-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|