Update to nio4r 2.0.0.

f38
Jun Aruga 8 years ago
parent c89770fc42
commit 64e8a0fdac

1
.gitignore vendored

@ -1 +1,2 @@
/nio4r-1.2.1.gem
/nio4r-2.0.0.gem

@ -2,13 +2,13 @@
%global gem_name nio4r
Name: rubygem-%{gem_name}
Version: 1.2.1
Release: 5%{?dist}
Version: 2.0.0
Release: 1%{?dist}
Summary: New IO for Ruby
Group: Development/Languages
# The entire source code is MIT, bundled libev is 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
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
@ -20,13 +20,14 @@ BuildRequires: rubygem(rspec)
# using system libev.
# See below commits.
# 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
# https://github.com/celluloid/nio4r/commit/fba5c68
Provides: bundled(libev) = 4.22
# https://github.com/socketry/nio4r/commit/fba5c68
Provides: bundled(libev) = 4.23
%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
@ -59,7 +60,6 @@ gem build %{gem_name}.gemspec
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{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).
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
%check
pushd .%{gem_instdir}
# Ignore code coverage and bundler.
sed -i '/require "coveralls"/ 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.
rspec -I$(dirs +1)%{gem_extdir_mri} spec
popd
@ -106,12 +105,16 @@ popd
%doc %{gem_instdir}/CHANGES.md
%{gem_instdir}/logo.png
%{gem_instdir}/tasks
%{gem_instdir}/Guardfile
%{gem_instdir}/Rakefile
%{gem_instdir}/examples
%{gem_instdir}/nio4r.gemspec
%{gem_instdir}/spec
%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
- Add flag to avoid warnings from strict-aliasing optimization.

@ -1 +1 @@
SHA512 (nio4r-1.2.1.gem) = 3136863955bd6f4d489955bae9baf2fb527447c0e71dade1a05402f3e7c8570bf1dd9b8335d70d7303ec4df0a236b13e4ede74ce9154be00a108afcd7c6b7f40
SHA512 (nio4r-2.0.0.gem) = 347afee015e673c8c878799b50affe155ad880608309162de2b4437c051a60feb902b44bc9f5ca5af6fb9e2f84a067410596eac68b1a39374a167205dadc1444

Loading…
Cancel
Save