[rubygem-mechanize/f16] Allow net-http-persistent 2.x

Mamoru Tasaka mtasaka at fedoraproject.org
Sun Oct 9 15:43:00 UTC 2011


commit e5febd45c5089ae57f802ff8692857803bfb2067
Author: Mamoru Tasaka <tasaka1 at localhost.localdomain>
Date:   Mon Oct 10 00:42:58 2011 +0900

    Allow net-http-persistent 2.x

 rubygem-mechanize.spec |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/rubygem-mechanize.spec b/rubygem-mechanize.spec
index 945584e..453400d 100644
--- a/rubygem-mechanize.spec
+++ b/rubygem-mechanize.spec
@@ -7,7 +7,7 @@
 %global	rpmminorver		.%(echo %preminorver | sed -e 's|^\\.\\.*||')
 %global	fullver		%{majorver}%{?preminorver}
 
-%global	fedorarel		2
+%global	fedorarel		3
 
 %global	gemdir			%(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
 %global	gemname		mechanize
@@ -85,6 +85,13 @@ gem install \
 	--force --rdoc \
 	%{SOURCE0}
 
+# Allow net-http-persistent 2.x
+grep -rl net-http-persistent . | while read f
+do
+	sed -i -e '\@net-http-persistent at s|~>|>=|' $f
+done
+
+
 # Clean up
 find .%{geminstdir} -name \*.html -print0 | \
 	xargs -0 chmod 0644
@@ -200,6 +207,9 @@ popd
 %endif
 
 %changelog
+* Mon Oct 10 2011 Mamoru Tasaka <mtasaka at fedoraproject.org> - 1.0.1-0.3.beta.20110107194205
+- Allow net-http-persistent 2.x
+
 * Thu Feb 10 2011 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 1.0.1-0.2.beta.20110107104205
 - Bump release
 


More information about the scm-commits mailing list