|
|
@ -2,23 +2,25 @@
|
|
|
|
%global gem_name multi_json
|
|
|
|
%global gem_name multi_json
|
|
|
|
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 1.10.1
|
|
|
|
Version: 1.12.1
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: A common interface to multiple JSON libraries
|
|
|
|
Summary: A common interface to multiple JSON libraries
|
|
|
|
Group: Development/Languages
|
|
|
|
Group: Development/Languages
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: http://github.com/intridea/multi_json
|
|
|
|
URL: http://github.com/intridea/multi_json
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
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/
|
|
|
|
|
|
|
|
Source1: %{gem_name}-%{version}-tests.tgz
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
BuildRequires: rubygems-devel >= 1.3.6
|
|
|
|
BuildRequires: rubygems-devel >= 1.3.5
|
|
|
|
BuildRequires: ruby
|
|
|
|
BuildRequires: ruby
|
|
|
|
BuildRequires: rubygem(rspec)
|
|
|
|
BuildRequires: rubygem(rspec)
|
|
|
|
#BuildRequires: rubygem(json)
|
|
|
|
|
|
|
|
BuildRequires: rubygem(json_pure)
|
|
|
|
BuildRequires: rubygem(json_pure)
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
# OkJson is allowed to be bundled:
|
|
|
|
# OkJson is allowed to be bundled:
|
|
|
|
# https://fedorahosted.org/fpc/ticket/113
|
|
|
|
# https://fedorahosted.org/fpc/ticket/113
|
|
|
|
Provides: bundled(okjson) = 43
|
|
|
|
Provides: bundled(okjson) = 45
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
A common interface to multiple JSON libraries, including Oj, Yajl, the JSON
|
|
|
|
A common interface to multiple JSON libraries, including Oj, Yajl, the JSON
|
|
|
@ -44,21 +46,23 @@ Documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
cp -pa .%{gem_dir}/* \
|
|
|
|
cp -a .%{gem_dir}/* \
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
|
|
|
tar xf %{SOURCE1}
|
|
|
|
|
|
|
|
|
|
|
|
# oj is not available on Fedora.
|
|
|
|
# oj is not available on Fedora.
|
|
|
|
sed -i '139,164 s/^/#/' spec/multi_json_spec.rb
|
|
|
|
sed -i '139,164 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
|
|
|
|
sed -i "/expect(MultiJson.adapter.to_s).to eq('MultiJson::Adapters::Oj')/ s/Oj/JsonGem/" spec/multi_json_spec.rb
|
|
|
|
|
|
|
|
|
|
|
|
# Execute main test suite.
|
|
|
|
# Execute main test suite.
|
|
|
|
rspec spec/multi_json_spec.rb
|
|
|
|
rspec spec/{multi_json,options_cache}_spec.rb
|
|
|
|
|
|
|
|
|
|
|
|
# Disable test of engines unsupported on Fedora (they may cause test suite to
|
|
|
|
# Disable test of engines unsupported on Fedora (they may cause test suite to
|
|
|
|
# exit).
|
|
|
|
# exit).
|
|
|
|
rm spec/{gson,jr_jackson,nsjsonserialization,oj,yajl}_adapter_spec.rb
|
|
|
|
rm spec/{oj,yajl}_adapter_spec.rb
|
|
|
|
|
|
|
|
|
|
|
|
# Adapters have to be tested separately.
|
|
|
|
# Adapters have to be tested separately.
|
|
|
|
for adapter in spec/*_adapter_spec.rb; do
|
|
|
|
for adapter in spec/*_adapter_spec.rb; do
|
|
|
@ -69,10 +73,7 @@ popd
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%exclude %{gem_instdir}/.*
|
|
|
|
%license %{gem_instdir}/LICENSE.md
|
|
|
|
%exclude %{gem_instdir}/Gemfile
|
|
|
|
|
|
|
|
%exclude %{gem_instdir}/%{gem_name}.gemspec
|
|
|
|
|
|
|
|
%doc %{gem_instdir}/LICENSE.md
|
|
|
|
|
|
|
|
%{gem_libdir}
|
|
|
|
%{gem_libdir}
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
%{gem_spec}
|
|
|
|
%{gem_spec}
|
|
|
@ -82,11 +83,12 @@ popd
|
|
|
|
%doc %{gem_instdir}/CHANGELOG.md
|
|
|
|
%doc %{gem_instdir}/CHANGELOG.md
|
|
|
|
%doc %{gem_instdir}/CONTRIBUTING.md
|
|
|
|
%doc %{gem_instdir}/CONTRIBUTING.md
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
%{gem_instdir}/multi_json.gemspec
|
|
|
|
%{gem_instdir}/spec
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed Oct 12 2016 Vít Ondruch <vondruch@redhat.com> - 1.12.1-1
|
|
|
|
|
|
|
|
- Update to MultiJSON 1.12.1.
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.1-3
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|