|
|
02671f |
# Generated from multi_json-1.0.3.gem by gem2rpm -*- rpm-spec -*-
|
|
|
02671f |
%global gem_name multi_json
|
|
|
02671f |
|
|
|
02671f |
Name: rubygem-%{gem_name}
|
|
|
02671f |
Version: 1.15.0
|
|
|
02671f |
Release: 2%{?dist}
|
|
|
02671f |
Summary: A common interface to multiple JSON libraries
|
|
|
02671f |
License: MIT
|
|
|
02671f |
URL: https://github.com/intridea/multi_json
|
|
|
02671f |
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
02671f |
# git clone https://github.com/intridea/multi_json.git && cd multi_json
|
|
|
02671f |
# git archive -v -o multi_json-1.15.0-spec.tar.gz v1.15.0 spec/
|
|
|
02671f |
Source1: %{gem_name}-%{version}-spec.tar.gz
|
|
|
02671f |
BuildRequires: ruby(release)
|
|
|
02671f |
BuildRequires: rubygems-devel >= 1.3.5
|
|
|
02671f |
BuildRequires: ruby
|
|
|
02671f |
BuildRequires: rubygem(rspec)
|
|
|
02671f |
BuildArch: noarch
|
|
|
02671f |
# OkJson is allowed to be bundled:
|
|
|
02671f |
# https://fedorahosted.org/fpc/ticket/113
|
|
|
02671f |
Provides: bundled(okjson) = 45
|
|
|
02671f |
|
|
|
02671f |
%description
|
|
|
02671f |
A common interface to multiple JSON libraries, including Oj, Yajl, the JSON
|
|
|
02671f |
gem (with C-extensions), the pure-Ruby JSON gem, NSJSONSerialization, gson.rb,
|
|
|
02671f |
JrJackson, and OkJson.
|
|
|
02671f |
|
|
|
02671f |
|
|
|
02671f |
%package doc
|
|
|
02671f |
Summary: Documentation for %{name}
|
|
|
02671f |
Requires: %{name} = %{version}-%{release}
|
|
|
02671f |
BuildArch: noarch
|
|
|
02671f |
|
|
|
02671f |
%description doc
|
|
|
02671f |
Documentation for %{name}.
|
|
|
02671f |
|
|
|
02671f |
%prep
|
|
|
02671f |
%setup -q -n %{gem_name}-%{version} -b 1
|
|
|
02671f |
|
|
|
02671f |
%build
|
|
|
02671f |
# Create the gem as gem install only works on a gem file
|
|
|
02671f |
gem build ../%{gem_name}-%{version}.gemspec
|
|
|
02671f |
|
|
|
02671f |
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
|
|
|
02671f |
# by default, so that we can move it into the buildroot in %%install
|
|
|
02671f |
%gem_install
|
|
|
02671f |
|
|
|
02671f |
%install
|
|
|
02671f |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
02671f |
cp -a .%{gem_dir}/* \
|
|
|
02671f |
%{buildroot}%{gem_dir}/
|
|
|
02671f |
|
|
|
02671f |
%check
|
|
|
02671f |
pushd .%{gem_instdir}
|
|
|
02671f |
ln -s %{_builddir}/spec spec
|
|
|
02671f |
|
|
|
02671f |
# json_pures is not available on Fedora.
|
|
|
02671f |
sed -i "/require.*json\/pure/ s/^/#/" spec/multi_json_spec.rb
|
|
|
02671f |
sed -i "s/JsonPure/OkJson/" spec/multi_json_spec.rb
|
|
|
02671f |
sed -i "s/json_pure/ok_json/" spec/multi_json_spec.rb
|
|
|
02671f |
# oj is not available on Fedora.
|
|
|
02671f |
sed -i "/expect(MultiJson.adapter.to_s).to eq('MultiJson::Adapters::Oj')/ s/Oj/JsonGem/" spec/multi_json_spec.rb
|
|
|
02671f |
|
|
|
02671f |
# Execute main test suite.
|
|
|
02671f |
SKIP_ADAPTERS=jr_jackson rspec spec/{multi_json,options_cache}_spec.rb
|
|
|
02671f |
|
|
|
02671f |
# json_pure adapter does not support skipping :/
|
|
|
02671f |
mv spec/json_pure_adapter_spec.rb{,.disable}
|
|
|
02671f |
|
|
|
02671f |
# Adapters have to be tested separately, but disable test of engines
|
|
|
02671f |
# unsupported on Fedora (they may cause test suite to fail).
|
|
|
02671f |
for adapter in spec/*_adapter_spec.rb; do
|
|
|
02671f |
SKIP_ADAPTERS=json_pure,gson,jr_jackson,nsjsonserialization,oj,yajl rspec $adapter
|
|
|
02671f |
done
|
|
|
02671f |
|
|
|
02671f |
popd
|
|
|
02671f |
|
|
|
02671f |
%files
|
|
|
02671f |
%dir %{gem_instdir}
|
|
|
02671f |
%license %{gem_instdir}/LICENSE.md
|
|
|
02671f |
%{gem_libdir}
|
|
|
02671f |
%exclude %{gem_cache}
|
|
|
02671f |
%{gem_spec}
|
|
|
02671f |
|
|
|
02671f |
%files doc
|
|
|
02671f |
%doc %{gem_docdir}
|
|
|
02671f |
%doc %{gem_instdir}/CHANGELOG.md
|
|
|
02671f |
%doc %{gem_instdir}/CONTRIBUTING.md
|
|
|
02671f |
%doc %{gem_instdir}/README.md
|
|
|
02671f |
|
|
|
02671f |
%changelog
|
|
|
02671f |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.0-2
|
|
|
02671f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
02671f |
|
|
|
02671f |
* Fri Nov 06 2020 Vít Ondruch <vondruch@redhat.com> - 1.15.0-1
|
|
|
02671f |
- Update to MultiJSON 1.15.0.
|
|
|
02671f |
Resolves: rhbz#1855521
|
|
|
02671f |
- Drop `BR: rubygem(json_pure)`.
|
|
|
02671f |
|
|
|
02671f |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.1-2
|
|
|
02671f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
02671f |
|
|
|
02671f |
* Wed Apr 15 2020 Vít Ondruch <vondruch@redhat.com> - 1.14.1-1
|
|
|
02671f |
- Update to MultiJSON 1.14.1.
|
|
|
02671f |
|
|
|
02671f |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.1-5
|
|
|
02671f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
02671f |
|
|
|
02671f |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.1-4
|
|
|
02671f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
02671f |
|
|
|
02671f |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.1-3
|
|
|
02671f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
02671f |
|
|
|
02671f |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.1-2
|
|
|
02671f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
02671f |
|
|
|
02671f |
* Fri Mar 23 2018 Vít Ondruch <vondruch@redhat.com> - 1.13.1-1
|
|
|
02671f |
- Update to MultiJSON 1.13.1.
|
|
|
02671f |
|
|
|
02671f |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.1-4
|
|
|
02671f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
02671f |
|
|
|
02671f |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.1-3
|
|
|
02671f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
02671f |
|
|
|
02671f |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.1-2
|
|
|
02671f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
02671f |
|
|
|
02671f |
* Wed Oct 12 2016 Vít Ondruch <vondruch@redhat.com> - 1.12.1-1
|
|
|
02671f |
- Update to MultiJSON 1.12.1.
|
|
|
02671f |
|
|
|
02671f |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.1-3
|
|
|
02671f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
02671f |
|
|
|
02671f |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.1-2
|
|
|
02671f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
02671f |
|
|
|
02671f |
* Mon Mar 02 2015 Vít Ondruch <vondruch@redhat.com> - 1.10.1-1
|
|
|
02671f |
- Update to MultiJSON 1.10.1.
|
|
|
02671f |
|
|
|
02671f |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.4-2
|
|
|
02671f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
02671f |
|
|
|
02671f |
* Wed Feb 12 2014 Vít Ondruch <vondruch@redhat.com> - 1.8.4-1
|
|
|
02671f |
- Update to multi_json 1.8.4.
|
|
|
02671f |
|
|
|
02671f |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.7-2
|
|
|
02671f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
02671f |
|
|
|
02671f |
* Fri Jun 14 2013 Vít Ondruch <vondruch@redhat.com> - 1.7.7-1
|
|
|
02671f |
- Update to multi_json 1.7.7.
|
|
|
02671f |
|
|
|
02671f |
* Wed Mar 20 2013 Vít Ondruch <vondruch@redhat.com> - 1.7.1-1
|
|
|
02671f |
- Update to multi_json 1.7.1.
|
|
|
02671f |
|
|
|
02671f |
* Tue Feb 26 2013 Vít Ondruch <vondruch@redhat.com> - 1.3.6-4
|
|
|
02671f |
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
02671f |
|
|
|
02671f |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.6-3
|
|
|
02671f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
02671f |
|
|
|
02671f |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.6-2
|
|
|
02671f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
02671f |
|
|
|
02671f |
* Mon Jul 16 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.3.6-1
|
|
|
02671f |
- Update to multi_json 1.3.6.
|
|
|
02671f |
- Switch to rubygem(rspec) from rubygem(rspec-core).
|
|
|
02671f |
|
|
|
02671f |
* Tue Jan 24 2012 Vít Ondruch <vondruch@redhat.com> - 1.0.3-5
|
|
|
02671f |
- Rebuilt for Ruby 1.9.3.
|
|
|
02671f |
|
|
|
02671f |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-4
|
|
|
02671f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
02671f |
|
|
|
02671f |
* Fri Nov 11 2011 Vít Ondruch <vondruch@redhat.com> - 1.0.3-3
|
|
|
02671f |
- Removed useless shebang.
|
|
|
02671f |
|
|
|
02671f |
* Fri Nov 11 2011 Vít Ondruch <vondruch@redhat.com> - 1.0.3-2
|
|
|
02671f |
- Review fixes.
|
|
|
02671f |
|
|
|
02671f |
* Fri Jul 08 2011 Vít Ondruch <vondruch@redhat.com> - 1.0.3-1
|
|
|
02671f |
- Initial package
|