From 9c708ea6b30b60d08105a54230e785c6ea80fb44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Fri, 23 Sep 2022 15:35:36 +0200 Subject: [PATCH] Update to nio4r 2.5.8. Resolves: rhbz#1876406 --- rubygem-nio4r.spec | 28 +++++++++++++++------------- sources | 2 +- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/rubygem-nio4r.spec b/rubygem-nio4r.spec index 8e55668..3f92aab 100644 --- a/rubygem-nio4r.spec +++ b/rubygem-nio4r.spec @@ -1,11 +1,11 @@ # Generated from nio4r-1.2.1.gem by gem2rpm -*- rpm-spec -*- %global gem_name nio4r -%global libev_version 4.27 +%global libev_version 4.33 Name: rubygem-%{gem_name} -Version: 2.5.2 -Release: 9%{?dist} +Version: 2.5.8 +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+) @@ -49,11 +49,6 @@ Documentation for %{name}. # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec -# Update %%optflags used in %%gem_install to avoid strict-aliasing warnings. -# https://github.com/socketry/nio4r/pull/130 -# http://pkgs.fedoraproject.org/cgit/rpms/rubygems.git/tree/macros.rubygems -%global optflags %{?optflags} -fno-strict-aliasing - # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install @@ -77,12 +72,17 @@ 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. sed -i '/require "coveralls"/ s/^/#/' spec/spec_helper.rb sed -i '/Coveralls.wear!/ s/^/#/' spec/spec_helper.rb # Load nio4r_ext.so. -rspec -I$(dirs +1)%{gem_extdir_mri} spec +# Explicitly require openssl, until this gets fixed. +# https://github.com/socketry/nio4r/issues/283 +rspec -I$(dirs +1)%{gem_extdir_mri} -ropenssl spec + +# Test also pure Ruby implementation. +NIO4R_PURE=true rspec -I$(dirs +1)%{gem_extdir_mri} -ropenssl spec popd %files @@ -92,24 +92,26 @@ popd # License file was removed in favor of README.md # https://github.com/socketry/nio4r/issues/228 %license %{gem_instdir}/README.md -%exclude %{gem_instdir}/appveyor.yml %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} -%{gem_instdir}/Gemfile %doc %{gem_instdir}/CHANGES.md +%{gem_instdir}/Gemfile %{gem_instdir}/logo.png %{gem_instdir}/rakelib -%{gem_instdir}/Guardfile %{gem_instdir}/Rakefile %{gem_instdir}/examples %{gem_instdir}/nio4r.gemspec %{gem_instdir}/spec %changelog +* Fri Sep 23 2022 Vít Ondruch - 2.5.8-1 +- Update to nio4r 2.5.8. + Resolves: rhbz#1876406 + * Sat Jul 23 2022 Fedora Release Engineering - 2.5.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild diff --git a/sources b/sources index 9c4b450..ac1915a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (nio4r-2.5.2.gem) = 3db567c9994e9186749e37c3ebc07f744e7a82c1163d44222475cf491f945745c6c070f4a0a8c77e331921147cc1f5f7bfffd86cb3455d5864280c4e4945b295 +SHA512 (nio4r-2.5.8.gem) = 3942403147882380b86f42c54a6d4e92c4e85dd3c0b5b9f473a05fcf98c041853e21d11d0481d1973342b5a4bfb59e02cfd523a44e9e45c3740627a45f7f99c7