diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cf19e25 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/net-http-persistent-2.8.gem diff --git a/.ror40-rubygem-net-http-persistent.metadata b/.ror40-rubygem-net-http-persistent.metadata new file mode 100644 index 0000000..5c1effd --- /dev/null +++ b/.ror40-rubygem-net-http-persistent.metadata @@ -0,0 +1 @@ +709f2e4c9e21de33e945d8364a068aa568f44350 SOURCES/net-http-persistent-2.8.gem diff --git a/README.md b/README.md deleted file mode 100644 index ce46a88..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -\ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/net-http-persistent-2.8-no-net-tests.patch b/SOURCES/net-http-persistent-2.8-no-net-tests.patch new file mode 100644 index 0000000..9ded5cc --- /dev/null +++ b/SOURCES/net-http-persistent-2.8-no-net-tests.patch @@ -0,0 +1,26 @@ +--- test/test_net_http_persistent.rb.orig 2012-07-27 09:33:42.701435596 +0200 ++++ test/test_net_http_persistent.rb 2012-07-27 09:43:52.965184617 +0200 +@@ -354,6 +354,7 @@ + end + + def test_connection_for_http_class_with_fakeweb ++ skip 'No Internet connection available' + Object.send :const_set, :FakeWeb, nil + c = @http.connection_for @uri + assert_instance_of Net::HTTP, c +@@ -364,6 +365,7 @@ + end + + def test_connection_for_http_class_with_webmock ++ skip 'No Internet connection available' + Object.send :const_set, :WebMock, nil + c = @http.connection_for @uri + assert_instance_of Net::HTTP, c +@@ -385,6 +387,7 @@ + end + + def test_connection_for_no_ssl_reuse ++ skip 'No Internet connection available' + @http.reuse_ssl_sessions = false + @http.open_timeout = 123 + @http.read_timeout = 321 diff --git a/SPECS/rubygem-net-http-persistent.spec b/SPECS/rubygem-net-http-persistent.spec new file mode 100644 index 0000000..4a1b0bf --- /dev/null +++ b/SPECS/rubygem-net-http-persistent.spec @@ -0,0 +1,149 @@ +%{?scl:%scl_package rubygem-%{gem_name}} +%{!?scl:%global pkg_name %{name}} + +%global gem_name net-http-persistent + +Summary: Persistent connections using Net::HTTP plus a speed fix +Name: %{?scl_prefix}rubygem-%{gem_name} +Version: 2.8 +Release: 3%{?dist} +Group: Development/Languages +License: MIT + +URL: http://seattlerb.rubyforge.org/net-http-persistent +Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem +Patch0: %{gem_name}-%{version}-no-net-tests.patch + +BuildRequires: %{?scl_prefix_ruby}ruby(release) +BuildRequires: %{?scl_prefix_ruby}rubygems-devel +BuildRequires: %{?scl_prefix_ruby}rubygem(minitest) + +Requires: %{?scl_prefix_ruby}ruby(release) +Requires: %{?scl_prefix_ruby}rubygems +BuildArch: noarch + +Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} + +%description +Persistent connections using Net::HTTP plus a speed fix for 1.8. It's +thread-safe too. + +%package doc +Summary: Documentation for %{pkg_name} +Group: Documentation +Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} + +%description doc +This package contains documentation for %{pkg_name}. + + +%prep +%setup -n %{pkg_name}-%{version} -q -c -T + +mkdir -p .%{gem_dir} +%{?scl:scl enable %{scl} - << \EOF} +%gem_install -n %{SOURCE0} +%{?scl:EOF} + +pushd .%{gem_instdir} +%patch0 +popd + +chmod 0644 ./%{gem_dir}/cache/%{gem_name}-%{version}.gem + +%build + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}/%{gem_dir}/ +rm -f %{buildroot}%{gem_instdir}/{.autotest,.gemtest} +find %{buildroot}%{gem_instdir} -name '*.orig' -delete + +%check +pushd .%{gem_instdir} +%{?scl:scl enable %{scl} - << \EOF} +testrb -Ilib test +%{?scl:EOF} +popd + +%files +%dir %{gem_instdir} +%doc %{gem_instdir}/[A-Z]* +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%{gem_instdir}/Rakefile +%{gem_instdir}/test/ + +%changelog +* Fri Mar 21 2014 Vít Ondruch - 2.8-3 +- Rebuid against new scl-utils to depend on -runtime package. + Resolves: rhbz#1069109 + +* Thu Nov 28 2013 Josef Stribny - 2.8-2 +- Get rid of patch leftovers + +* Wed Nov 20 2013 Josef Stribny - 2.8-1 +- Update to 2.8 + +* Thu May 30 2013 Josef Stribny - 2.7-3 +- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 + +* Fri Jul 27 2012 Bohuslav Kabrda - 2.7-2 +- Fix the tests patch to skip all tests needing net connection. + +* Fri Jul 27 2012 Bohuslav Kabrda - 2.7-1 +- Initial SCL package. + +* Sat Jul 21 2012 Fedora Release Engineering - 2.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sun Feb 5 2012 Mamoru Tasaka - 2.1-3 +- F-17: rebuild against ruby19 + +* Sat Jan 14 2012 Fedora Release Engineering - 2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Sun Oct 9 2011 Mamoru Tasaka - 2.1-1 +- 2.1 + +* Sun Aug 28 2011 Mamoru Tasaka - 2.0-1 +- 2.0 + +* Sun Aug 14 2011 Mamoru Tasaka - 1.8.1-1 +- 1.8.1 + +* Mon Jul 4 2011 Mamoru Tasaka - 1.8-1 +- 1.8 + +* Sun Apr 24 2011 Mamoru Tasaka - 1.7-1 +- 1.7 + +* Thu Mar 10 2011 Mamoru Tasaka - 1.6.1-1 +- 1.6.1 + +* Thu Mar 3 2011 Mamoru Tasaka - 1.6-1 +- 1.6 + +* Sat Feb 26 2011 Mamoru Tasaka - 1.5.2-1 +- 1.5.2 +- Patch0 merged + +* Sat Feb 12 2011 Mamoru Tasaka - 1.5.1-1 +- 1.5.1 + +* Thu Feb 10 2011 Mamoru Tasaka - 1.5-3 +- Rescue the case where socket is Nil, for mechanize testsuite + +* Wed Feb 09 2011 Fedora Release Engineering - 1.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Jan 27 2011 Mamoru Tasaka - 1.5-1 +- 1.5 + +* Sun Jan 16 2011 Mamoru Tasaka - 1.4.1-1 +- Initial package