commit
4786a6a833
Binary file not shown.
BIN
multi_json-1.14.1.gem
Normal file
BIN
multi_json-1.14.1.gem
Normal file
Binary file not shown.
BIN
multi_json-1.14.1.tar.gz
Normal file
BIN
multi_json-1.14.1.tar.gz
Normal file
Binary file not shown.
@ -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 <jiangxinyu@kylinos.cn> - 1.14.1-1
|
||||
- Update version to 1.14.1
|
||||
|
||||
* Sat Aug 22 2020 Jeffery.Gao <gaojianxing@huawei.com> - 1.13.1-1
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user