diff --git a/multi_json-1.13.1.gem b/multi_json-1.13.1.gem deleted file mode 100644 index 82e9f91..0000000 Binary files a/multi_json-1.13.1.gem and /dev/null differ diff --git a/multi_json-1.13.1-tests.tgz b/multi_json-1.14.1-tests.tgz similarity index 100% rename from multi_json-1.13.1-tests.tgz rename to multi_json-1.14.1-tests.tgz diff --git a/multi_json-1.14.1.gem b/multi_json-1.14.1.gem new file mode 100644 index 0000000..65dea1d Binary files /dev/null and b/multi_json-1.14.1.gem differ diff --git a/multi_json-1.14.1.tar.gz b/multi_json-1.14.1.tar.gz new file mode 100644 index 0000000..ffd37d6 Binary files /dev/null and b/multi_json-1.14.1.tar.gz differ diff --git a/rubygem-multi_json.spec b/rubygem-multi_json.spec index f800524..a8c334f 100644 --- a/rubygem-multi_json.spec +++ b/rubygem-multi_json.spec @@ -1,28 +1,49 @@ +%global pkg_name %{name} %global gem_name multi_json -Name: rubygem-%{gem_name} -Version: 1.13.1 -Release: 1 -Summary: A common interface to multiple JSON libraries -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.13.1 && tar czvf multi_json-1.13.1-tests.tgz ./spec/ -Source1: %{gem_name}-%{version}-tests.tgz -BuildRequires: ruby(release) rubygems-devel >= 1.3.5 ruby rubygem(rspec) rubygem(json_pure) -BuildArch: noarch -Provides: bundled(okjson) = 45 + +Summary: A gem to provide swappable JSON backends +Name: rubygem-%{gem_name} +Version: 1.14.1 +Release: 1 +Group: Development/Languages +License: MIT +URL: https://github.com/intridea/multi_json +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +Source1: %{gem_name}-%{version}-tests.tgz +Source2: https://github.com/intridea/%{gem_name}/archive/refs/tags/%{gem_name}-%{version}.tar.gz + +Requires: ruby(release) +BuildRequires: ruby(release) + +Requires: ruby(rubygems) +Requires: ruby + +BuildRequires: rubygems-devel +BuildRequires: ruby +BuildRequires: rubygem(rspec) +BuildRequires: rubygem(json_pure) +BuildRequires: ruby(rubygems) + +BuildArch: noarch +Provides: rubygem(%{gem_name}) = %{version} + +# OkJson is allowed to be bundled: +Provides: bundled(okjson) = 20110719 + %description -A common interface to multiple JSON libraries, including Oj, Yajl, the JSON -gem (with C-extensions), the pure-Ruby JSON gem, NSJSONSerialization, gson.rb, -JrJackson, and OkJson. +A gem to provide swappable JSON backends utilizing Yajl::Ruby, the JSON gem, +JSON pure, or a vendored version of okjson. + %package doc -Summary: Documentation for %{name} -Requires: %{name} = %{version}-%{release} -BuildArch: noarch +Summary: Documentation for %{pkg_name} +Group: Documentation +Requires: %{pkg_name} = %{version}-%{release} +BuildArch: noarch + %description doc -Documentation for %{name}. +Documentation for %{pkg_name} + %prep %setup -q -c -T @@ -49,7 +70,8 @@ popd %files %dir %{gem_instdir} -%license %{gem_instdir}/LICENSE.md +%exclude %{gem_instdir}/.* +%doc %{gem_instdir}/LICENSE.md %{gem_libdir} %exclude %{gem_cache} %{gem_spec} @@ -58,8 +80,13 @@ popd %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.md %doc %{gem_instdir}/CONTRIBUTING.md +%doc %{gem_instdir}/LICENSE.md %doc %{gem_instdir}/README.md + %changelog +* Mon Jun 07 2021 jiangxinyu - 1.14.1-1 +- Update version to 1.14.1 + * Sat Aug 22 2020 Jeffery.Gao - 1.13.1-1 - Package init