diff --git a/0.6.5.tar.gz b/0.6.5.tar.gz new file mode 100644 index 0000000..f532ad3 Binary files /dev/null and b/0.6.5.tar.gz differ diff --git a/rubygem-websocket-driver.spec b/rubygem-websocket-driver.spec new file mode 100644 index 0000000..9c19ad0 --- /dev/null +++ b/rubygem-websocket-driver.spec @@ -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 - 0.6.5-1 +- Package init diff --git a/rubygem-websocket-driver.yaml b/rubygem-websocket-driver.yaml new file mode 100644 index 0000000..2e76811 --- /dev/null +++ b/rubygem-websocket-driver.yaml @@ -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: "." diff --git a/websocket-driver-0.6.5.gem b/websocket-driver-0.6.5.gem new file mode 100644 index 0000000..e3a0776 Binary files /dev/null and b/websocket-driver-0.6.5.gem differ