Update to nio4r 2.4.0.

f38
Vít Ondruch 6 years ago
parent 6bd5d024b0
commit 0bef6804a0

@ -1,11 +1,11 @@
# Generated from nio4r-1.2.1.gem by gem2rpm -*- rpm-spec -*-
%global gem_name nio4r
%global libev_version 4.24
%global libev_version 4.25
Name: rubygem-%{gem_name}
Version: 2.3.1
Release: 4%{?dist}
Version: 2.4.0
Release: 1%{?dist}
Summary: New IO for Ruby
# The entire source code is MIT, bundled libev is BSD or GPLv2+
License: MIT and (BSD or GPLv2+)
@ -69,6 +69,7 @@ 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}
# Check libev version correctness.
@ -80,24 +81,6 @@ EV_VERSION_MINOR=$(grep EV_VERSION_MINOR ext/libev/ev.h | cut -d ' ' -f3)
sed -i '/require "coveralls"/ s/^/#/' spec/spec_helper.rb
sed -i '/Coveralls.wear!/ 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
# NIO::Selector is slow at i686 environment.
sed -i '/TIMEOUT_PRECISION/ s/0.1/0.5/' spec/nio/selector_spec.rb
sed -i '/^ it "wakes up if signaled to from another thread" do$/,/^ end$/ s/0.1/0.5/' \
spec/nio/selector_spec.rb
# Failing due to OpenSSL 1.1.1.
# https://github.com/socketry/nio4r/issues/194
sed -i '/"selects readable when the other end closes"/a\
skip' spec/support/selectable_examples.rb
# Load nio4r_ext.so.
rspec -I$(dirs +1)%{gem_extdir_mri} spec
popd
@ -118,7 +101,7 @@ popd
%doc %{gem_instdir}/README.md
%doc %{gem_instdir}/CHANGES.md
%{gem_instdir}/logo.png
%{gem_instdir}/tasks
%{gem_instdir}/rakelib
%{gem_instdir}/Guardfile
%{gem_instdir}/Rakefile
%{gem_instdir}/examples
@ -126,6 +109,9 @@ popd
%{gem_instdir}/spec
%changelog
* Tue Jul 09 2019 Vít Ondruch <vondruch@redhat.com> - 2.4.0-1
- Update to nio4r 2.4.0.
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

Loading…
Cancel
Save