diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e02fec --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/net-http-persistent-2.9.4.gem diff --git a/.rh-ruby22-rubygem-net-http-persistent.metadata b/.rh-ruby22-rubygem-net-http-persistent.metadata new file mode 100644 index 0000000..611cf1b --- /dev/null +++ b/.rh-ruby22-rubygem-net-http-persistent.metadata @@ -0,0 +1 @@ +c5476a2800cf9d99e422b6f465e54ea84fabe6b6 SOURCES/net-http-persistent-2.9.4.gem diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +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/rubygem-net-http-persistent-2.1-no-net-test.patch b/SOURCES/rubygem-net-http-persistent-2.1-no-net-test.patch new file mode 100644 index 0000000..d2ed7ae --- /dev/null +++ b/SOURCES/rubygem-net-http-persistent-2.1-no-net-test.patch @@ -0,0 +1,10 @@ +--- net-http-persistent-2.1/test/test_net_http_persistent.rb.net 2011-10-09 03:15:00.000000000 +0900 ++++ net-http-persistent-2.1/test/test_net_http_persistent.rb 2011-10-09 03:52:17.000000000 +0900 +@@ -480,6 +480,7 @@ + end + + def test_connection_for_no_ssl_reuse ++ skip "No net 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..83bd414 --- /dev/null +++ b/SPECS/rubygem-net-http-persistent.spec @@ -0,0 +1,155 @@ +%{?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.9.4 +Release: 4%{?dist} +Group: Development/Languages +License: MIT + +URL: http://seattlerb.rubyforge.org/net-http-persistent +Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem +Patch0: rubygem-net-http-persistent-2.1-no-net-test.patch + +%{?scl:BuildRequires: scldevel(ruby)} +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 -p1 +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} + +%check +pushd .%{gem_instdir} +%{?scl:scl enable %{scl} - << \EOF} +ruby -Ilib:. -e 'Dir.glob("test/test_*.rb").each{|f| require f}' +%{?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 Jan 30 2015 Vít Ondruch - 2.9.4-4 +- Make patch apply cleanly. + +* Mon Jan 05 2015 Vít Ondruch - 2.9.4-3 +- Update to net-http-persistent 2.9.4. + +* 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