|
|
@ -15,7 +15,6 @@ BuildRequires: ruby(release)
|
|
|
|
BuildRequires: rubygems-devel >= 1.3.5
|
|
|
|
BuildRequires: rubygems-devel >= 1.3.5
|
|
|
|
BuildRequires: ruby
|
|
|
|
BuildRequires: ruby
|
|
|
|
BuildRequires: rubygem(rspec)
|
|
|
|
BuildRequires: rubygem(rspec)
|
|
|
|
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
|
|
|
@ -55,18 +54,23 @@ cp -a .%{gem_dir}/* \
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
ln -s %{_builddir}/spec spec
|
|
|
|
ln -s %{_builddir}/spec spec
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# json_pures is not available on Fedora.
|
|
|
|
|
|
|
|
sed -i "/require.*json\/pure/ s/^/#/" spec/multi_json_spec.rb
|
|
|
|
|
|
|
|
sed -i "s/JsonPure/OkJson/" spec/multi_json_spec.rb
|
|
|
|
|
|
|
|
sed -i "s/json_pure/ok_json/" spec/multi_json_spec.rb
|
|
|
|
# oj is not available on Fedora.
|
|
|
|
# oj is not available on Fedora.
|
|
|
|
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.
|
|
|
|
SKIP_ADAPTERS=jr_jackson rspec spec/{multi_json,options_cache}_spec.rb
|
|
|
|
SKIP_ADAPTERS=jr_jackson rspec spec/{multi_json,options_cache}_spec.rb
|
|
|
|
|
|
|
|
|
|
|
|
#rm spec/{oj,yajl}_adapter_spec.rb
|
|
|
|
# json_pure adapter does not support skipping :/
|
|
|
|
|
|
|
|
mv spec/json_pure_adapter_spec.rb{,.disable}
|
|
|
|
|
|
|
|
|
|
|
|
# Adapters have to be tested separately, but disable test of engines
|
|
|
|
# Adapters have to be tested separately, but disable test of engines
|
|
|
|
# unsupported on Fedora (they may cause test suite to fail).
|
|
|
|
# unsupported on Fedora (they may cause test suite to fail).
|
|
|
|
for adapter in spec/*_adapter_spec.rb; do
|
|
|
|
for adapter in spec/*_adapter_spec.rb; do
|
|
|
|
SKIP_ADAPTERS=gson,jr_jackson,nsjsonserialization,oj,yajl rspec $adapter
|
|
|
|
SKIP_ADAPTERS=json_pure,gson,jr_jackson,nsjsonserialization,oj,yajl rspec $adapter
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
popd
|
|
|
|
popd
|
|
|
@ -88,6 +92,7 @@ popd
|
|
|
|
* Fri Nov 06 2020 Vít Ondruch <vondruch@redhat.com> - 1.15.0-1
|
|
|
|
* Fri Nov 06 2020 Vít Ondruch <vondruch@redhat.com> - 1.15.0-1
|
|
|
|
- Update to MultiJSON 1.15.0.
|
|
|
|
- Update to MultiJSON 1.15.0.
|
|
|
|
Resolves: rhbz#1855521
|
|
|
|
Resolves: rhbz#1855521
|
|
|
|
|
|
|
|
- Drop `BR: rubygem(json_pure)`.
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.1-2
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|