]> git.pld-linux.org Git - packages/ruby-net-http-pipeline.git/commitdiff
new, version 1.0.1
authorElan Ruusamäe <glen@delfi.ee>
Mon, 18 Apr 2016 19:05:55 +0000 (22:05 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 18 Apr 2016 19:05:55 +0000 (22:05 +0300)
created with
 gem fetch net-http-pipeline -v 1.0.1
 gem2rpm *.gem -o ruby-net-http-pipeline.spec

ruby-net-http-pipeline.spec [new file with mode: 0644]

diff --git a/ruby-net-http-pipeline.spec b/ruby-net-http-pipeline.spec
new file mode 100644 (file)
index 0000000..9f10055
--- /dev/null
@@ -0,0 +1,52 @@
+#
+# Conditional build:
+%bcond_with    tests           # build without tests
+
+%define        pkgname net-http-pipeline
+Summary:       An HTTP/1.1 pipelining implementation atop Net::HTTP
+Name:          ruby-%{pkgname}
+Version:       1.0.1
+Release:       1
+License:       GPL v2+ or Ruby
+Group:         Development/Languages
+Source0:       http://rubygems.org/downloads/%{pkgname}-%{version}.gem
+# Source0-md5: -
+URL:           http://docs.seattlerb.org/net-http-pipeline
+BuildRequires: rpm-rubyprov
+BuildRequires: rpmbuild(macros) >= 1.656
+%if %{with tests}
+BuildRequires: ruby-hoe < 3
+BuildRequires: ruby-hoe >= 2.16
+BuildRequires: ruby-minitest < 3
+BuildRequires: ruby-minitest >= 2.11
+BuildRequires: ruby-rdoc < 4
+BuildRequires: ruby-rdoc >= 3.10
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+An HTTP/1.1 pipelining implementation atop Net::HTTP. A pipelined
+connection sends multiple requests to the HTTP server without waiting
+for the responses. The server will respond in-order.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+%build
+# write .gemspec
+%__gem_helper spec
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{ruby_vendorlibdir}/net/http/pipeline.rb
+%{ruby_specdir}/%{pkgname}-%{version}.gemspec
This page took 0.105448 seconds and 4 git commands to generate.