Blame SPECS/rubygem-multi_json.spec

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