!1 Package init

Merge pull request !1 from lyn/master
This commit is contained in:
openeuler-ci-bot 2020-08-21 16:09:33 +08:00 committed by Gitee
commit 2ab7d42232
4 changed files with 73 additions and 0 deletions

BIN
0.6.5.tar.gz Normal file

Binary file not shown.

View 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

View 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

Binary file not shown.