[rubygem-excon] Update to version 0.7.6

Bohuslav Kabrda bkabrda at fedoraproject.org
Mon Oct 17 07:07:41 UTC 2011


commit b31b2476a737b22877bb2e70947196a3d6d3e193
Author: bkabrda <bkabrda at dhcp-0-215.brq.redhat.com>
Date:   Mon Oct 17 09:06:49 2011 +0200

    Update to version 0.7.6

 .gitignore         |    1 +
 rubygem-excon.spec |   45 ++++++++++++++++++++++++++++++++++++++++++---
 sources            |    2 +-
 3 files changed, 44 insertions(+), 4 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 9788230..863f4a8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /excon-0.6.3.gem
+/excon-0.7.6.gem
diff --git a/rubygem-excon.spec b/rubygem-excon.spec
index 1808097..2155811 100644
--- a/rubygem-excon.spec
+++ b/rubygem-excon.spec
@@ -5,20 +5,32 @@
 
 Summary: Http(s) EXtended CONnections
 Name: rubygem-%{gemname}
-Version: 0.6.3
+Version: 0.7.6
 Release: 1%{?dist}
 Group: Development/Languages
 License: MIT
 URL: https://github.com/geemus/excon
 Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
 Requires: ruby(rubygems)
+Requires: rubygem(open4)
+Requires: rubygem(sinatra)
 BuildRequires: ruby(rubygems)
+BuildRequires: rubygem(shindo)
+BuildRequires: rubygem(open4)
+BuildRequires: rubygem(sinatra)
 BuildArch: noarch
 Provides: rubygem(%{gemname}) = %{version}
 
 %description
 EXtended http(s) CONnections
 
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+
+%description doc
+Documentation for %{name}
 
 %prep
 %setup -q -c -T
@@ -34,14 +46,41 @@ rm -rf %{buildroot}
 mkdir -p %{buildroot}%{gemdir}
 cp -a .%{gemdir}/* %{buildroot}%{gemdir}/
 
+%check
+pushd .%{geminstdir}
+# we need to remove the dependency on bundler and add the missing requires (workaround for not using the Rakefile)
+# do not require bundler
+sed -i -e "s/'bundler'/'open4'/" -e '/Bundler.require(:default, :development)/d' tests/test_helper.rb
+# tests in header_tests.rb don't run because of 'localhost' instead of '127.0.0.1' => replace it
+# the changelog.txt file claims, that it's been repaired, but it hasn't (in this version)
+sed -i -e "s/localhost/127.0.0.1/" tests/header_tests.rb
+
+# require the other needed libs
+RUBYOPT="-rtime -rlib/excon" shindo
+popd
 
 %files
-%{gemdir}/gems/%{gemname}-%{version}/
-%doc %{gemdir}/doc/%{gemname}-%{version}
+%dir %{geminstdir}
+%{geminstdir}/lib
 %{gemdir}/cache/%{gemname}-%{version}.gem
 %{gemdir}/specifications/%{gemname}-%{version}.gemspec
+%doc %{geminstdir}/README.rdoc
+
+%files doc
+%{geminstdir}/benchmarks
+%{geminstdir}/tests
+%{geminstdir}/excon.gemspec
+%{geminstdir}/Gemfile
+%{geminstdir}/Rakefile
+%doc %{gemdir}/doc/%{gemname}-%{version}
+%doc %{geminstdir}/changelog.txt
 
 
 %changelog
+* Wed Oct 12 2011 bkabrda <bkabrda at redhat.com> - 0.7.6-1
+- Update to version 0.7.6
+- Introduced doc subpackage
+- Introduced check section
+
 * Tue Jul 05 2011 Chris Lalancette <clalance at redhat.com> - 0.6.3-1
 - Initial package
diff --git a/sources b/sources
index 055b2d1..57f5f9f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-a9ebe242daa800382186df63c11134ac  excon-0.6.3.gem
+2ca71fd9f44d9e32cc16e7fe0c0246ec  excon-0.7.6.gem


More information about the scm-commits mailing list