From f07ada20f2508f19fea733e2cf4c313ceee8745e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Thu, 1 Nov 2012 12:31:04 +0100 Subject: [PATCH] Update to rack-test 0.6.2. --- .gitignore | 1 + rubygem-rack-test.spec | 65 ++++++++++++++++++++++++------------------ sources | 2 +- 3 files changed, 39 insertions(+), 29 deletions(-) diff --git a/.gitignore b/.gitignore index fdf5b0a..16db851 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ rack-test-0.4.0.gem /rack-test-0.5.4.gem /rack-test-0.6.0.gem /rack-test-0.6.1.gem +/rack-test-0.6.2.gem diff --git a/rubygem-rack-test.spec b/rubygem-rack-test.spec index b65541a..f3c6006 100644 --- a/rubygem-rack-test.spec +++ b/rubygem-rack-test.spec @@ -2,20 +2,18 @@ Summary: Simple testing API built on Rack Name: rubygem-%{gem_name} -Version: 0.6.1 +Version: 0.6.2 Release: 1%{?dist} Group: Development/Languages License: MIT URL: http://gitrdoc.com/brynary/rack-test/tree/master Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: ruby(abi) = 1.9.1 Requires: ruby(rubygems) Requires: rubygem(rack) >= 1.0.0 BuildRequires: rubygems-devel BuildRequires: rubygem(rack) >= 1.0.0 -BuildRequires: rubygem(rake) -BuildRequires: rubygem(rspec-core) +BuildRequires: rubygem(rspec) BuildRequires: rubygem(sinatra) BuildArch: noarch Provides: rubygem(%{gem_name}) = %{version} @@ -26,52 +24,63 @@ own or as a reusable starting point for Web frameworks and testing libraries to build on. Most of its initial functionality is an extraction of Merb 1.0's request helpers feature. +%package doc +Summary: Documentation for %{name} +Group: Documentation +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +Documentation for %{name} -%prep +%prep +%setup -q -c -T +mkdir -p .%{gem_dir} +gem install --local --install-dir .%{gem_dir} \ + --force %{SOURCE0} %build %install -rm -rf $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT%{gem_dir} -gem install --local --install-dir $RPM_BUILD_ROOT%{gem_dir} \ - --force --rdoc %{SOURCE0} -sed -i -e "s|~>|>=|" $RPM_BUILD_ROOT%{gem_instdir}/spec/spec_helper.rb -rm $RPM_BUILD_ROOT%{gem_instdir}/.gitignore -rm $RPM_BUILD_ROOT%{gem_instdir}/.document -rm $RPM_BUILD_ROOT%{gem_instdir}/Gemfile* +mkdir -p %{buildroot}%{gem_dir} +cp -pa .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + %check -pushd %{buildroot}%{gem_instdir} -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 -rspec -P "./**/*_spec.rb" -I. spec -mv -f spec/spec_helper.rb.orig spec/spec_helper.rb +pushd .%{gem_instdir} +sed -i '/require "bundler\/setup"/d' spec/spec_helper.rb +rspec spec popd -%clean -rm -rf $RPM_BUILD_ROOT - %files -%defattr(-,root,root,-) %dir %{gem_instdir} +%exclude %{gem_instdir}/.* %{gem_libdir} -%{gem_instdir}/spec -%{gem_instdir}/Rakefile +%doc %{gem_instdir}/MIT-LICENSE.txt +%exclude %{gem_cache} +%{gem_spec} + +%files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.rdoc %doc %{gem_instdir}/MIT-LICENSE.txt %doc %{gem_instdir}/History.txt -%doc %{gem_instdir}/Thorfile -%doc %{gem_instdir}/%{gem_name}.gemspec -%{gem_cache} -%{gem_spec} +%{gem_instdir}/Gemfile* +%{gem_instdir}/Thorfile +%{gem_instdir}/%{gem_name}.gemspec +%{gem_instdir}/spec +%{gem_instdir}/Rakefile + %changelog +* Thu Nov 01 2012 Vít Ondruch - 0.6.2-1 +- Updated to rack-test 0.6.2. + * Wed Jul 18 2012 Bohuslav Kabrda - 0.6.1-1 - Updated to Rack Test 0.6.1. diff --git a/sources b/sources index 9919235..cb37d1b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -8226527d4c84f96107bcf7aa87700d3c rack-test-0.6.1.gem +cfb89a03ea96b80d2c82ce88168a6ae3 rack-test-0.6.2.gem