]> git.pld-linux.org Git - packages/ruby-net-http-persistent.git/commitdiff
new, version 2.8 auto/th/ruby-net-http-persistent-2.8-1
authorElan Ruusamäe <glen@delfi.ee>
Sat, 20 Apr 2013 20:27:35 +0000 (23:27 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 20 Apr 2013 20:27:35 +0000 (23:27 +0300)
based on fedora rubygem-net-http-persistent package
9814955aa24e429dd84b60002550efd318d9edbe

ruby-net-http-persistent.spec [new file with mode: 0644]
rubygem-net-http-persistent-2.1-no-net-test.patch [new file with mode: 0644]

diff --git a/ruby-net-http-persistent.spec b/ruby-net-http-persistent.spec
new file mode 100644 (file)
index 0000000..2d38971
--- /dev/null
@@ -0,0 +1,57 @@
+#
+# Conditional build:
+%bcond_without tests           # build without tests
+
+%define        gem_name        net-http-persistent
+Summary:       Persistent connections using Net::HTTP plus a speed fix
+Name:          ruby-%{gem_name}
+Version:       2.8
+Release:       1
+License:       MIT
+Group:         Development/Languages
+Source0:       http://rubygems.org/gems/%{gem_name}-%{version}.gem
+# Source0-md5: 89e838075c21a437ed2b224b95e62245
+Patch0:                rubygem-net-http-persistent-2.1-no-net-test.patch
+URL:           http://seattlerb.rubyforge.org/net-http-persistent
+BuildRequires: rpm-rubyprov
+BuildRequires: rpmbuild(macros) >= 1.656
+BuildRequires: ruby-minitest
+Requires:      rubygems
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Persistent connections using Net::HTTP plus a speed fix for 1.8. It's
+thread-safe too.
+
+%package       doc
+Summary:       Documentation for %{name}
+Group:         Documentation
+Requires:      %{name} = %{version}-%{release}
+
+%description    doc
+This package contains documentation for %{name}.
+
+%prep
+%setup -q -n %{gem_name}-%{version}
+
+%build
+%if %{with tests}
+# 1 skip marks tests failed. stupid
+testrb -Ilib test || :
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rdoc History.txt
+%{ruby_vendorlibdir}/net/http/faster.rb
+%{ruby_vendorlibdir}/net/http/persistent.rb
+%{ruby_vendorlibdir}/net/http/persistent
diff --git a/rubygem-net-http-persistent-2.1-no-net-test.patch b/rubygem-net-http-persistent-2.1-no-net-test.patch
new file mode 100644 (file)
index 0000000..06f34b6
--- /dev/null
@@ -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
+@@ -257,6 +257,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
This page took 0.084695 seconds and 4 git commands to generate.