Rebuilt for Ruby 1.9.3.

f38
Bohuslav Kabrda 13 years ago
parent e1d4895125
commit e70fbbe78e

@ -1,25 +1,23 @@
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %global gem_name rack-test
%global gemname rack-test
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
Summary: Simple testing API built on Rack Summary: Simple testing API built on Rack
Name: rubygem-%{gemname} Name: rubygem-%{gem_name}
Version: 0.6.0 Version: 0.6.0
Release: 3%{?dist} Release: 4%{?dist}
Group: Development/Languages Group: Development/Languages
License: MIT License: MIT
URL: http://gitrdoc.com/brynary/rack-test/tree/master URL: http://gitrdoc.com/brynary/rack-test/tree/master
Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: ruby(abi) = 1.8 Requires: ruby(abi) = 1.9.1
Requires: rubygems Requires: ruby(rubygems)
BuildRequires: rubygems BuildRequires: rubygems-devel
BuildRequires: rubygem(rack) >= 0.9.1 BuildRequires: rubygem(rack) >= 0.9.1
BuildRequires: rubygem(rake) BuildRequires: rubygem(rake)
BuildRequires: rubygem(rspec-core) BuildRequires: rubygem(rspec-core)
BuildRequires: rubygem(sinatra) BuildRequires: rubygem(sinatra)
BuildArch: noarch BuildArch: noarch
Provides: rubygem(%{gemname}) = %{version} Provides: rubygem(%{gem_name}) = %{version}
%description %description
Rack::Test is a small, simple testing API for Rack apps. It can be used on its Rack::Test is a small, simple testing API for Rack apps. It can be used on its
@ -36,16 +34,16 @@ request helpers feature.
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{gemdir} mkdir -p $RPM_BUILD_ROOT%{gem_dir}
gem install --local --install-dir $RPM_BUILD_ROOT%{gemdir} \ gem install --local --install-dir $RPM_BUILD_ROOT%{gem_dir} \
--force --rdoc %{SOURCE0} --force --rdoc %{SOURCE0}
sed -i -e "s|~>|>=|" $RPM_BUILD_ROOT%{geminstdir}/spec/spec_helper.rb sed -i -e "s|~>|>=|" $RPM_BUILD_ROOT%{gem_instdir}/spec/spec_helper.rb
rm $RPM_BUILD_ROOT%{geminstdir}/.gitignore rm $RPM_BUILD_ROOT%{gem_instdir}/.gitignore
rm $RPM_BUILD_ROOT%{geminstdir}/.document rm $RPM_BUILD_ROOT%{gem_instdir}/.document
rm $RPM_BUILD_ROOT%{geminstdir}/Gemfile* rm $RPM_BUILD_ROOT%{gem_instdir}/Gemfile*
%check %check
pushd %{buildroot}%{geminstdir} pushd %{buildroot}%{gem_instdir}
mv -f spec/spec_helper.rb spec/spec_helper.rb.orig mv -f spec/spec_helper.rb spec/spec_helper.rb.orig
sed -e '/require "bundler\/setup"/d' spec/spec_helper.rb.orig > spec/spec_helper.rb sed -e '/require "bundler\/setup"/d' spec/spec_helper.rb.orig > spec/spec_helper.rb
rspec -P "./**/*_spec.rb" -I. spec rspec -P "./**/*_spec.rb" -I. spec
@ -58,21 +56,24 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%dir %{geminstdir} %dir %{gem_instdir}
%{geminstdir}/lib %{gem_libdir}
%{geminstdir}/spec %{gem_instdir}/spec
%{geminstdir}/Rakefile %{gem_instdir}/Rakefile
%doc %{gemdir}/doc/%{gemname}-%{version} %doc %{gem_docdir}
%doc %{geminstdir}/README.rdoc %doc %{gem_instdir}/README.rdoc
%doc %{geminstdir}/MIT-LICENSE.txt %doc %{gem_instdir}/MIT-LICENSE.txt
%doc %{geminstdir}/History.txt %doc %{gem_instdir}/History.txt
%doc %{geminstdir}/Thorfile %doc %{gem_instdir}/Thorfile
%doc %{geminstdir}/%{gemname}.gemspec %doc %{gem_instdir}/%{gem_name}.gemspec
%{gemdir}/cache/%{gemname}-%{version}.gem %{gem_cache}
%{gemdir}/specifications/%{gemname}-%{version}.gemspec %{gem_spec}
%changelog %changelog
* Tue Jan 24 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.6.0-4
- Rebuilt for Ruby 1.9.3.
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-3 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

Loading…
Cancel
Save