commit
2ab7d42232
BIN
0.6.5.tar.gz
Normal file
BIN
0.6.5.tar.gz
Normal file
Binary file not shown.
68
rubygem-websocket-driver.spec
Normal file
68
rubygem-websocket-driver.spec
Normal file
@ -0,0 +1,68 @@
|
||||
%global gem_name websocket-driver
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 0.6.5
|
||||
Release: 1
|
||||
Summary: WebSocket protocol handler with pluggable I/O
|
||||
License: MIT
|
||||
URL: http://github.com/faye/websocket-driver-ruby
|
||||
Source0: https://rubygems.org/gems/websocket-driver-%{version}.gem
|
||||
Source1: https://github.com/faye/websocket-driver-ruby/archive/%{version}.tar.gz
|
||||
BuildRequires: ruby(release) rubygems-devel ruby-devel gcc rubygem(websocket-extensions)
|
||||
BuildRequires: rubygem(rspec)
|
||||
%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}
|
||||
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}
|
||||
cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/
|
||||
rm -rf %{buildroot}%{gem_instdir}/ext/
|
||||
|
||||
%check
|
||||
pushd .%{gem_instdir}
|
||||
tar xf %{SOURCE1}
|
||||
cd %{gem_name}-ruby-%{version}
|
||||
sed -i '/bundler/ s/^/#/' spec/spec_helper.rb
|
||||
rspec -I$(dirs +1)%{gem_extdir_mri} spec
|
||||
popd
|
||||
|
||||
%files
|
||||
%dir %{gem_instdir}
|
||||
%{gem_extdir_mri}
|
||||
%license %{gem_instdir}/LICENSE.md
|
||||
%{gem_libdir}
|
||||
%exclude %{gem_cache}
|
||||
%{gem_spec}
|
||||
|
||||
%files doc
|
||||
%doc %{gem_docdir}
|
||||
%doc %{gem_instdir}/CHANGELOG.md
|
||||
%doc %{gem_instdir}/README.md
|
||||
%{gem_instdir}/examples
|
||||
|
||||
%changelog
|
||||
* Sat Aug 8 2020 yanan li <liyanan032@huawei.com> - 0.6.5-1
|
||||
- Package init
|
||||
5
rubygem-websocket-driver.yaml
Normal file
5
rubygem-websocket-driver.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
git_url: http://github.com/faye/websocket-driver-ruby.git
|
||||
version_control: github
|
||||
src_repo: faye/websocket-driver-ruby
|
||||
tag_prefix: ""
|
||||
seperator: "."
|
||||
BIN
websocket-driver-0.6.5.gem
Normal file
BIN
websocket-driver-0.6.5.gem
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user