|
|
@ -2,13 +2,13 @@
|
|
|
|
%global gem_name nio4r
|
|
|
|
%global gem_name nio4r
|
|
|
|
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 1.2.1
|
|
|
|
Version: 2.0.0
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: New IO for Ruby
|
|
|
|
Summary: New IO for Ruby
|
|
|
|
Group: Development/Languages
|
|
|
|
Group: Development/Languages
|
|
|
|
# The entire source code is MIT, bundled libev is BSD or GPLv2+
|
|
|
|
# The entire source code is MIT, bundled libev is BSD or GPLv2+
|
|
|
|
License: MIT and (BSD or GPLv2+)
|
|
|
|
License: MIT and (BSD or GPLv2+)
|
|
|
|
URL: https://github.com/celluloid/nio4r
|
|
|
|
URL: https://github.com/socketry/nio4r
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
@ -20,13 +20,14 @@ BuildRequires: rubygem(rspec)
|
|
|
|
# using system libev.
|
|
|
|
# using system libev.
|
|
|
|
# See below commits.
|
|
|
|
# See below commits.
|
|
|
|
# Release the GIL when libev polls
|
|
|
|
# Release the GIL when libev polls
|
|
|
|
# https://github.com/celluloid/nio4r/commit/6801433
|
|
|
|
# https://github.com/socketry/nio4r/commit/6801433
|
|
|
|
# A more productive message re: GVL
|
|
|
|
# A more productive message re: GVL
|
|
|
|
# https://github.com/celluloid/nio4r/commit/fba5c68
|
|
|
|
# https://github.com/socketry/nio4r/commit/fba5c68
|
|
|
|
Provides: bundled(libev) = 4.22
|
|
|
|
Provides: bundled(libev) = 4.23
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
NIO provides a high performance selector API for monitoring IO objects
|
|
|
|
Cross-platform asynchronous I/O primitives for scalable network clients and
|
|
|
|
|
|
|
|
servers. Inspired by the Java NIO API, but simplified for ease-of-use.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
%package doc
|
|
|
@ -59,7 +60,6 @@ gem build %{gem_name}.gemspec
|
|
|
|
%gem_install
|
|
|
|
%gem_install
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
cp -a .%{gem_dir}/* \
|
|
|
|
cp -a .%{gem_dir}/* \
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
@ -70,22 +70,21 @@ cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}
|
|
|
|
# Prevent dangling symlink in -debuginfo (rhbz#878863).
|
|
|
|
# Prevent dangling symlink in -debuginfo (rhbz#878863).
|
|
|
|
rm -rf %{buildroot}%{gem_instdir}/ext/
|
|
|
|
rm -rf %{buildroot}%{gem_instdir}/ext/
|
|
|
|
|
|
|
|
|
|
|
|
# Remove useless shebang.
|
|
|
|
|
|
|
|
# https://github.com/celluloid/nio4r/pull/86
|
|
|
|
|
|
|
|
sed -i 's|^#!/usr/bin/env rake$||' %{buildroot}%{gem_instdir}/Rakefile
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Add executable bits to the file with shebang.
|
|
|
|
|
|
|
|
# https://github.com/celluloid/nio4r/pull/85
|
|
|
|
|
|
|
|
chmod 755 %{buildroot}%{gem_instdir}/examples/echo_server.rb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Run the test suite
|
|
|
|
# Run the test suite
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
# Ignore code coverage and bundler.
|
|
|
|
# Ignore code coverage and bundler.
|
|
|
|
sed -i '/require "coveralls"/ s/^/#/' spec/spec_helper.rb
|
|
|
|
sed -i '/require "coveralls"/ s/^/#/' spec/spec_helper.rb
|
|
|
|
sed -i '/Coveralls.wear!/ s/^/#/' spec/spec_helper.rb
|
|
|
|
sed -i '/Coveralls.wear!/ s/^/#/' spec/spec_helper.rb
|
|
|
|
sed -i '/require "bundler\/setup"/ s/^/#/' spec/spec_helper.rb
|
|
|
|
|
|
|
|
|
|
|
|
# Ignore rspec-retry.
|
|
|
|
|
|
|
|
# https://github.com/socketry/nio4r/commit/e718068
|
|
|
|
|
|
|
|
sed -i '/require "rspec\/retry"/ s/^/#/' spec/spec_helper.rb
|
|
|
|
|
|
|
|
sed -i '/config.verbose_retry/ s/^/#/' spec/spec_helper.rb
|
|
|
|
|
|
|
|
sed -i '/config.display_try_failure_messages/ s/^/#/' spec/spec_helper.rb
|
|
|
|
|
|
|
|
sed -i 's/, retry: [0-9]\+//' spec/nio/selectables/tcp_socket_spec.rb
|
|
|
|
|
|
|
|
sed -i 's/, retry: [0-9]\+//' spec/support/selectable_examples.rb
|
|
|
|
|
|
|
|
|
|
|
|
# Load nio4r_ext.so.
|
|
|
|
# Load nio4r_ext.so.
|
|
|
|
rspec -I$(dirs +1)%{gem_extdir_mri} spec
|
|
|
|
rspec -I$(dirs +1)%{gem_extdir_mri} spec
|
|
|
|
popd
|
|
|
|
popd
|
|
|
@ -106,12 +105,16 @@ popd
|
|
|
|
%doc %{gem_instdir}/CHANGES.md
|
|
|
|
%doc %{gem_instdir}/CHANGES.md
|
|
|
|
%{gem_instdir}/logo.png
|
|
|
|
%{gem_instdir}/logo.png
|
|
|
|
%{gem_instdir}/tasks
|
|
|
|
%{gem_instdir}/tasks
|
|
|
|
|
|
|
|
%{gem_instdir}/Guardfile
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
%{gem_instdir}/examples
|
|
|
|
%{gem_instdir}/examples
|
|
|
|
%{gem_instdir}/nio4r.gemspec
|
|
|
|
%{gem_instdir}/nio4r.gemspec
|
|
|
|
%{gem_instdir}/spec
|
|
|
|
%{gem_instdir}/spec
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed Mar 22 2017 Jun Aruga <jaruga@redhat.com> - 2.0.0-1
|
|
|
|
|
|
|
|
- Update to nio4r 2.0.0.
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Feb 21 2017 Jun Aruga <jaruga@redhat.com> - 1.2.1-5
|
|
|
|
* Tue Feb 21 2017 Jun Aruga <jaruga@redhat.com> - 1.2.1-5
|
|
|
|
- Add flag to avoid warnings from strict-aliasing optimization.
|
|
|
|
- Add flag to avoid warnings from strict-aliasing optimization.
|
|
|
|
|
|
|
|
|
|
|
|