[rubygem-websocket-driver] initial commit

Josef Stribny jstribny at fedoraproject.org
Tue Dec 2 12:42:44 UTC 2014


commit fe47e0743be9bcbde6457bdcdf52a4019ff74bb2
Author: Josef Stribny <jstribny at redhat.com>
Date:   Tue Dec 2 13:42:44 2014 +0100

    initial commit

 .gitignore                    |    2 +
 rubygem-websocket-driver.spec |   95 +++++++++++++++++++++++++++++++++++++++++
 sources                       |    2 +
 3 files changed, 99 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..573907b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/websocket-driver-0.3.4.gem
+/websocket-driver-ruby-0.3.4-tests.tgz
diff --git a/rubygem-websocket-driver.spec b/rubygem-websocket-driver.spec
new file mode 100644
index 0000000..6412506
--- /dev/null
+++ b/rubygem-websocket-driver.spec
@@ -0,0 +1,95 @@
+# Generated from websocket-driver-0.3.4.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name websocket-driver
+
+Name: rubygem-%{gem_name}
+Version: 0.3.4
+Release: 1%{?dist}
+Summary: WebSocket protocol handler with pluggable I/O
+Group: Development/Languages
+License: MIT
+URL: http://github.com/faye/websocket-driver-ruby
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+# git clone https://github.com/faye/websocket-driver-ruby.git
+# cd websocket-driver-ruby && git checkout 0.3.4
+# tar czvf websocket-driver-ruby-0.3.4-tests.tgz spec/
+Source1: websocket-driver-ruby-0.3.4-tests.tgz
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
+BuildRequires: ruby-devel
+BuildRequires: rubygem(eventmachine)
+BuildRequires: rubygem(rake-compiler)
+BuildRequires: rubygem(rspec) < 3.0
+
+%if 0%{?fedora} <= 20
+Requires: ruby(release)
+Requires: ruby(rubygems) 
+Provides: rubygem(%{gem_name}) = %{version}
+%endif
+
+%description
+This module provides a complete implementation of the WebSocket protocols that
+can be hooked up to any TCP library. It aims to simplify things by decoupling
+the protocol details from the I/O layer, such that users only need to implement
+code to stream data in and out of it without needing to know anything about how
+the protocol actually works. Think of it as a complete WebSocket system with
+pluggable I/O.
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}.
+
+%prep
+gem unpack %{SOURCE0}
+
+%setup -q -D -T -n  %{gem_name}-%{version}
+
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+
+%build
+gem build %{gem_name}.gemspec
+
+%gem_install
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
+
+mkdir -p %{buildroot}%{gem_extdir_mri}/lib/
+
+mv %{buildroot}%{gem_instdir}/ext/%{gem_name}/websocket_mask.so \
+   %{buildroot}%{gem_extdir_mri}/lib
+
+# Prevent dangling symlink in -debuginfo (rhbz#878863).
+rm -rf %{buildroot}%{gem_instdir}/ext/
+
+%check
+pushd .%{gem_instdir}
+tar xf %{SOURCE1}
+# Bundler
+sed -i -e '2d' examples/tcp_server.rb
+sed -i -e '2d' spec/spec_helper.rb
+rspec -I$(dirs +1)%{gem_extdir_mri} spec
+popd
+
+%files
+%dir %{gem_instdir}
+%{gem_libdir}
+%{gem_extdir_mri}
+%exclude %{gem_cache}
+%doc %{gem_instdir}/README.md
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/CHANGELOG.md
+%{gem_instdir}/examples
+
+%changelog
+* Tue Jul 15 2014 Josef Stribny <jstribny at redhat.com> - 0.3.4-1
+- Initial package
diff --git a/sources b/sources
index e69de29..0969384 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+288fd87efbc1926ded6c39d8737a8c13  websocket-driver-0.3.4.gem
+8360a04275f8f19645169b4ce98a91fb  websocket-driver-ruby-0.3.4-tests.tgz


More information about the scm-commits mailing list