|
|
|
# Generated from multi_json-1.0.3.gem by gem2rpm -*- rpm-spec -*-
|
|
|
|
%global gem_name multi_json
|
|
|
|
|
|
|
|
%global rubyabi 1.9.1
|
|
|
|
|
|
|
|
Summary: A gem to provide swappable JSON backends
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 1.3.6
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Group: Development/Languages
|
|
|
|
License: MIT
|
|
|
|
URL: http://github.com/intridea/multi_json
|
|
|
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
Requires: ruby(abi) = %{rubyabi}
|
|
|
|
Requires: ruby(rubygems) >= 1.3.6
|
|
|
|
Requires: ruby
|
|
|
|
BuildRequires: ruby(abi) = %{rubyabi}
|
|
|
|
BuildRequires: rubygems-devel >= 1.3.6
|
|
|
|
BuildRequires: ruby
|
|
|
|
BuildRequires: rubygem(rspec)
|
|
|
|
BuildRequires: rubygem(json)
|
|
|
|
BuildRequires: rubygem(json_pure)
|
|
|
|
BuildArch: noarch
|
|
|
|
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
|
# OkJson is allowed to be bundled:
|
|
|
|
# https://fedorahosted.org/fpc/ticket/113
|
|
|
|
Provides: bundled(okjson) = 20110719
|
|
|
|
|
|
|
|
%description
|
|
|
|
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}
|
|
|
|
Group: Documentation
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documentation for %{name}
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c -T
|
|
|
|
mkdir -p .%{gem_dir}
|
|
|
|
gem install --local --install-dir .%{gem_dir} \
|
|
|
|
--force %{SOURCE0}
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
cp -a .%{gem_dir}/* \
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
# Remove useless shebang.
|
|
|
|
sed -i -e '/^#!\/usr\/bin\/env/d' %{buildroot}%{gem_instdir}/Rakefile
|
|
|
|
|
|
|
|
%check
|
|
|
|
pushd ./%{gem_instdir}
|
|
|
|
# simplecov gem is not available in Fedora so remove its usage
|
|
|
|
sed -i '10,+3d' spec/helper.rb
|
|
|
|
|
|
|
|
# 1 test case fails and 22 are pending due to missing oj gem on Fedora.
|
|
|
|
rspec spec/ | \
|
|
|
|
grep "63 examples, 1 failure, 22 pending"
|
|
|
|
popd
|
|
|
|
|
|
|
|
%files
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%exclude %{gem_instdir}/.*
|
|
|
|
%exclude %{gem_instdir}/Gemfile
|
|
|
|
%exclude %{gem_instdir}/%{gem_name}.gemspec
|
|
|
|
%doc %{gem_instdir}/LICENSE.md
|
|
|
|
%{gem_libdir}
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
%{gem_instdir}/spec
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Mon Jul 16 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.3.6-1
|
|
|
|
- Update to multi_json 1.3.6.
|
|
|
|
- Switch to rubygem(rspec) from rubygem(rspec-core).
|
|
|
|
|
|
|
|
* Tue Jan 24 2012 Vít Ondruch <vondruch@redhat.com> - 1.0.3-5
|
|
|
|
- Rebuilt for Ruby 1.9.3.
|
|
|
|
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Nov 11 2011 Vít Ondruch <vondruch@redhat.com> - 1.0.3-3
|
|
|
|
- Removed useless shebang.
|
|
|
|
|
|
|
|
* Fri Nov 11 2011 Vít Ondruch <vondruch@redhat.com> - 1.0.3-2
|
|
|
|
- Review fixes.
|
|
|
|
|
|
|
|
* Fri Jul 08 2011 Vít Ondruch <vondruch@redhat.com> - 1.0.3-1
|
|
|
|
- Initial package
|