|
|
@ -1,30 +1,28 @@
|
|
|
|
# Generated from multi_json-1.0.3.gem by gem2rpm -*- rpm-spec -*-
|
|
|
|
# Generated from multi_json-1.0.3.gem by gem2rpm -*- rpm-spec -*-
|
|
|
|
%global gemname multi_json
|
|
|
|
%global gem_name multi_json
|
|
|
|
|
|
|
|
|
|
|
|
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
|
|
|
%global rubyabi 1.9.1
|
|
|
|
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
|
|
|
|
|
|
|
|
%global rubyabi 1.8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Summary: A gem to provide swappable JSON backends
|
|
|
|
Summary: A gem to provide swappable JSON backends
|
|
|
|
Name: rubygem-%{gemname}
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 1.0.3
|
|
|
|
Version: 1.0.3
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Group: Development/Languages
|
|
|
|
Group: Development/Languages
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: http://github.com/intridea/multi_json
|
|
|
|
URL: http://github.com/intridea/multi_json
|
|
|
|
Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
|
|
|
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
Requires: ruby(abi) = %{rubyabi}
|
|
|
|
Requires: ruby(abi) = %{rubyabi}
|
|
|
|
Requires: ruby(rubygems) >= 1.3.6
|
|
|
|
Requires: ruby(rubygems) >= 1.3.6
|
|
|
|
Requires: ruby
|
|
|
|
Requires: ruby
|
|
|
|
BuildRequires: ruby(abi) = %{rubyabi}
|
|
|
|
BuildRequires: ruby(abi) = %{rubyabi}
|
|
|
|
BuildRequires: ruby(rubygems) >= 1.3.6
|
|
|
|
BuildRequires: rubygems-devel >= 1.3.6
|
|
|
|
BuildRequires: ruby
|
|
|
|
BuildRequires: ruby
|
|
|
|
# Use rspec-core until rspec are not migrated to RSpec 2.x
|
|
|
|
# Use rspec-core until rspec are not migrated to RSpec 2.x
|
|
|
|
BuildRequires: rubygem(rspec-core)
|
|
|
|
BuildRequires: rubygem(rspec-core)
|
|
|
|
BuildRequires: rubygem(json)
|
|
|
|
BuildRequires: rubygem(json)
|
|
|
|
BuildRequires: rubygem(json_pure)
|
|
|
|
BuildRequires: rubygem(json_pure)
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
Provides: rubygem(%{gemname}) = %{version}
|
|
|
|
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
|
# OkJson is allowed to be bundled:
|
|
|
|
# OkJson is allowed to be bundled:
|
|
|
|
# https://fedorahosted.org/fpc/ticket/113
|
|
|
|
# https://fedorahosted.org/fpc/ticket/113
|
|
|
|
Provides: bundled(okjson) = 20110719
|
|
|
|
Provides: bundled(okjson) = 20110719
|
|
|
@ -46,22 +44,22 @@ Documentation for %{name}
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -c -T
|
|
|
|
%setup -q -c -T
|
|
|
|
mkdir -p .%{gemdir}
|
|
|
|
mkdir -p .%{gem_dir}
|
|
|
|
gem install --local --install-dir .%{gemdir} \
|
|
|
|
gem install --local --install-dir .%{gem_dir} \
|
|
|
|
--force %{SOURCE0}
|
|
|
|
--force %{SOURCE0}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{gemdir}
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
cp -a .%{gemdir}/* \
|
|
|
|
cp -a .%{gem_dir}/* \
|
|
|
|
%{buildroot}%{gemdir}/
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
|
|
|
|
# Remove useless shebang.
|
|
|
|
# Remove useless shebang.
|
|
|
|
sed -i -e '/^#!\/usr\/bin\/env/d' %{buildroot}%{geminstdir}/Rakefile
|
|
|
|
sed -i -e '/^#!\/usr\/bin\/env/d' %{buildroot}%{gem_instdir}/Rakefile
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
pushd ./%{geminstdir}
|
|
|
|
pushd ./%{gem_instdir}
|
|
|
|
# simplecov gem is Ruby 1.9 only and not available in Fedora,
|
|
|
|
# simplecov gem is Ruby 1.9 only and not available in Fedora,
|
|
|
|
# so remove its usage
|
|
|
|
# so remove its usage
|
|
|
|
sed -i '8,+1d' spec/helper.rb
|
|
|
|
sed -i '8,+1d' spec/helper.rb
|
|
|
@ -72,23 +70,26 @@ rspec spec/ | \
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%dir %{geminstdir}
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%exclude %{geminstdir}/.*
|
|
|
|
%exclude %{gem_instdir}/.*
|
|
|
|
%exclude %{geminstdir}/Gemfile
|
|
|
|
%exclude %{gem_instdir}/Gemfile
|
|
|
|
%exclude %{geminstdir}/%{gemname}.gemspec
|
|
|
|
%exclude %{gem_instdir}/%{gem_name}.gemspec
|
|
|
|
%doc %{geminstdir}/LICENSE.md
|
|
|
|
%doc %{gem_instdir}/LICENSE.md
|
|
|
|
%{geminstdir}/lib
|
|
|
|
%{gem_libdir}
|
|
|
|
%exclude %{gemdir}/cache/%{gemname}-%{version}.gem
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%files doc
|
|
|
|
%doc %{gemdir}/doc/%{gemname}-%{version}
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
%doc %{geminstdir}/README.md
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%{geminstdir}/Rakefile
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
%{geminstdir}/spec
|
|
|
|
%{gem_instdir}/spec
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* 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
|
|
|
|
* 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
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|