3 %bcond_with tests # build without tests
5 %define pkgname net-http-pipeline
6 Summary: An HTTP/1.1 pipelining implementation atop Net::HTTP
10 License: GPL v2+ or Ruby
11 Group: Development/Languages
12 Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
13 # Source0-md5: 50f3b868dab4ef1359d0777cdacda2e1
14 URL: http://docs.seattlerb.org/net-http-pipeline
15 BuildRequires: rpm-rubyprov
16 BuildRequires: rpmbuild(macros) >= 1.656
18 BuildRequires: ruby-hoe < 3
19 BuildRequires: ruby-hoe >= 2.16
20 BuildRequires: ruby-minitest < 3
21 BuildRequires: ruby-minitest >= 2.11
22 BuildRequires: ruby-rdoc < 4
23 BuildRequires: ruby-rdoc >= 3.10
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 An HTTP/1.1 pipelining implementation atop Net::HTTP. A pipelined
30 connection sends multiple requests to the HTTP server without waiting
31 for the responses. The server will respond in-order.
34 %setup -q -n %{pkgname}-%{version}
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
43 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
44 cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
51 %{ruby_vendorlibdir}/net/http/pipeline.rb
52 %{ruby_specdir}/%{pkgname}-%{version}.gemspec