You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
2.2 KiB
88 lines
2.2 KiB
14 years ago
|
# Generated from multi_json-1.0.3.gem by gem2rpm -*- rpm-spec -*-
|
||
|
%global gemname multi_json
|
||
|
|
||
|
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
||
|
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
|
||
|
%global rubyabi 1.8
|
||
|
|
||
|
Summary: A gem to provide swappable JSON backends
|
||
|
Name: rubygem-%{gemname}
|
||
|
Version: 1.0.3
|
||
|
Release: 1%{?dist}
|
||
|
Group: Development/Languages
|
||
|
License: MIT
|
||
|
URL: http://github.com/intridea/multi_json
|
||
|
Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
|
||
|
Requires: ruby(abi) = %{rubyabi}
|
||
|
Requires: ruby(rubygems) >= 1.3.6
|
||
|
Requires: ruby
|
||
|
BuildRequires: ruby(abi) = %{rubyabi}
|
||
|
BuildRequires: ruby(rubygems) >= 1.3.6
|
||
|
BuildRequires: ruby
|
||
|
# Use rspec-core until rspec are not migrated to RSpec 2.x
|
||
|
BuildRequires: rubygem(rspec-core)
|
||
|
BuildRequires: rubygem(json)
|
||
|
BuildRequires: rubygem(json_pure)
|
||
|
BuildArch: noarch
|
||
|
Provides: rubygem(%{gemname}) = %{version}
|
||
|
|
||
|
%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 .%{gemdir}
|
||
|
gem install --local --install-dir .%{gemdir} \
|
||
|
--force %{SOURCE0}
|
||
|
|
||
|
%build
|
||
|
|
||
|
%install
|
||
|
mkdir -p %{buildroot}%{gemdir}
|
||
|
cp -a .%{gemdir}/* \
|
||
|
%{buildroot}%{gemdir}/
|
||
|
|
||
|
%check
|
||
|
pushd ./%{geminstdir}
|
||
|
# simplecov gem is Ruby 1.9 only and not available in Fedora,
|
||
|
# so remove its usage
|
||
|
sed -i '8,+1d' spec/helper.rb
|
||
|
|
||
|
# 1 test case fails and 8 are pending due to missing yajl-ruby gem on Fedora.
|
||
|
rspec spec/ | \
|
||
|
grep "36 examples, 1 failure, 8 pending"
|
||
|
popd
|
||
|
|
||
|
%files
|
||
|
%dir %{geminstdir}
|
||
|
%exclude %{geminstdir}/.*
|
||
|
%exclude %{geminstdir}/Gemfile
|
||
|
%exclude %{geminstdir}/%{gemname}.gemspec
|
||
|
%doc %{geminstdir}/LICENSE.md
|
||
|
%{geminstdir}/lib
|
||
|
%{gemdir}/cache/%{gemname}-%{version}.gem
|
||
|
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
|
||
|
|
||
|
%files doc
|
||
|
%doc %{gemdir}/doc/%{gemname}-%{version}
|
||
|
%doc %{geminstdir}/README.md
|
||
|
%doc %{geminstdir}/Rakefile
|
||
|
%{geminstdir}/spec
|
||
|
|
||
|
|
||
|
%changelog
|
||
|
* Fri Jul 08 2011 Vít Ondruch <vondruch@redhat.com> - 1.0.3-1
|
||
|
- Initial package
|