diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9e4068b --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/websocket-driver-0.6.4.gem +SOURCES/websocket-driver-ruby-0.6.4-tests.tgz diff --git a/.rh-ror50-rubygem-websocket-driver.metadata b/.rh-ror50-rubygem-websocket-driver.metadata new file mode 100644 index 0000000..915674f --- /dev/null +++ b/.rh-ror50-rubygem-websocket-driver.metadata @@ -0,0 +1,2 @@ +18d847d0ce9bfc91efff7c78665d68c775e3dfc2 SOURCES/websocket-driver-0.6.4.gem +8177a289d1a79d8fefedc3620d124992fc1abcf5 SOURCES/websocket-driver-ruby-0.6.4-tests.tgz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/rubygem-websocket-driver.spec b/SPECS/rubygem-websocket-driver.spec new file mode 100644 index 0000000..a9f5bd1 --- /dev/null +++ b/SPECS/rubygem-websocket-driver.spec @@ -0,0 +1,126 @@ +%{?scl:%scl_package rubygem-%{gem_name}} +%{!?scl:%global pkg_name %{name}} + +# Generated from websocket-driver-0.3.4.gem by gem2rpm -*- rpm-spec -*- +%global gem_name websocket-driver + +Name: %{?scl_prefix}rubygem-%{gem_name} +Version: 0.6.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.6.4 +# tar czvf websocket-driver-ruby-0.6.4-tests.tgz spec/ +Source1: websocket-driver-ruby-%{version}-tests.tgz + +Requires: %{?scl_prefix_ruby}ruby(release) +Requires: %{?scl_prefix_ruby}ruby(rubygems) +Requires: %{?scl_prefix}rubygem(websocket-extensions) +BuildRequires: %{?scl_prefix_ruby}ruby(release) +BuildRequires: %{?scl_prefix_ruby}ruby(rubygems) +BuildRequires: %{?scl_prefix_ruby}ruby +BuildRequires: %{?scl_prefix_ruby}ruby-devel +BuildRequires: %{?scl_prefix_ruby}rubygems-devel +BuildRequires: %{?scl_prefix}rubygem(websocket-extensions) +BuildRequires: %{?scl_prefix}rubygem(rspec) +Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} + +# Explicitly require runtime subpackage, as long as older scl-utils do not generate it +%{?scl:Requires: %{?scl_prefix}runtime} + +%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 %{pkg_name} +Group: Documentation +Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} +BuildArch: noarch + +%description doc +Documentation for %{pkg_name}. + +%prep +%{?scl:scl enable %{scl} - << \EOF} +set -e +gem unpack %{SOURCE0} + +%setup -q -D -T -n %{gem_name}-%{version} + +gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec +%{?scl:EOF} + +%build +%{?scl:scl enable %{scl} - << \EOF} +set -e +gem build %{gem_name}.gemspec + +%gem_install +%{?scl:EOF} + +%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}/ + +# 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 +export RUBYOPT="-I$(dirs +1)%{gem_extdir_mri}" +%{?scl:scl enable %{scl} - << \EOF} +rspec spec +%{?scl:EOF} +popd + +%files +%dir %{gem_instdir} +%{gem_libdir} +%{gem_extdir_mri} +%exclude %{gem_cache} +# Asking upstream to separate the license text. +# https://github.com/faye/websocket-driver-ruby/issues/44 +%doc %{gem_instdir}/README.md +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/CHANGELOG.md +%{gem_instdir}/examples + +%changelog +* Thu Jul 07 2016 Jun Aruga - 0.6.4-1 +- Update to websocket-driver 0.6.4. + +* Thu Feb 04 2016 Fedora Release Engineering - 0.3.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Jan 11 2016 Pavel Valena - 0.3.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.3 +- Correct attributes for websocket_mask.so + +* Fri Jun 19 2015 Fedora Release Engineering - 0.3.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sun Jan 18 2015 Mamoru TASAKA - 0.3.4-2 +- Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_2.2 + +* Tue Jul 15 2014 Josef Stribny - 0.3.4-1 +- Initial package