|
|
@ -1,9 +1,11 @@
|
|
|
|
# Generated from nio4r-1.2.1.gem by gem2rpm -*- rpm-spec -*-
|
|
|
|
# Generated from nio4r-1.2.1.gem by gem2rpm -*- rpm-spec -*-
|
|
|
|
%global gem_name nio4r
|
|
|
|
%global gem_name nio4r
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global libev_version 4.24
|
|
|
|
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 2.1.0
|
|
|
|
Version: 2.1.0
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 2%{?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+
|
|
|
@ -23,7 +25,7 @@ BuildRequires: rubygem(rspec)
|
|
|
|
# https://github.com/socketry/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/socketry/nio4r/commit/fba5c68
|
|
|
|
# https://github.com/socketry/nio4r/commit/fba5c68
|
|
|
|
Provides: bundled(libev) = 4.24
|
|
|
|
Provides: bundled(libev) = %{libev_version}
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
Cross-platform asynchronous I/O primitives for scalable network clients and
|
|
|
|
Cross-platform asynchronous I/O primitives for scalable network clients and
|
|
|
@ -73,6 +75,11 @@ rm -rf %{buildroot}%{gem_instdir}/ext/
|
|
|
|
# Run the test suite
|
|
|
|
# Run the test suite
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
|
|
|
# Check libev version correctness.
|
|
|
|
|
|
|
|
EV_VERSION_MAJOR=$(grep EV_VERSION_MAJOR ext/libev/ev.h | cut -d ' ' -f3)
|
|
|
|
|
|
|
|
EV_VERSION_MINOR=$(grep EV_VERSION_MINOR ext/libev/ev.h | cut -d ' ' -f3)
|
|
|
|
|
|
|
|
[ "${EV_VERSION_MAJOR}.${EV_VERSION_MINOR}" = '%{libev_version}' ]
|
|
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
@ -117,6 +124,9 @@ popd
|
|
|
|
%{gem_instdir}/spec
|
|
|
|
%{gem_instdir}/spec
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed May 31 2017 Jun Aruga <jaruga@redhat.com> - 2.1.0-2
|
|
|
|
|
|
|
|
- Add check of libev version correctness.
|
|
|
|
|
|
|
|
|
|
|
|
* Mon May 29 2017 Jun Aruga <jaruga@redhat.com> - 2.1.0-1
|
|
|
|
* Mon May 29 2017 Jun Aruga <jaruga@redhat.com> - 2.1.0-1
|
|
|
|
- Update to nio4r 2.1.0.
|
|
|
|
- Update to nio4r 2.1.0.
|
|
|
|
|
|
|
|
|
|
|
|