commit 9b30276879901c6e13170ee1ebd3ca8905157ae6b4ba2ca0ee91bc68b6653ecb Author: Adrian Schröter Date: Thu Feb 6 18:12:01 2025 +0100 Sync from SUSE:SLFO:Main rubygem-nio4r revision d02209b471bc59b59a283db834602aae diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/gem2rpm.yml b/gem2rpm.yml new file mode 100644 index 0000000..4875e86 --- /dev/null +++ b/gem2rpm.yml @@ -0,0 +1,79 @@ +# --- +# ## used by gem2rpm +# :summary: this is a custom summary +# ## used by gem2rpm +# :description: |- +# this is a custom description +# +# it can be multiline +# ## used by gem2rpm +# :license: MIT or Ruby +# ## used by gem2rpm and gem_packages +# :version_suffix: -x_y +# ## used by gem2rpm and gem_packages +# :disable_docs: true +# ## used by gem2rpm +# :disable_automatic_rdoc_dep: true +# ## used by gem2rpm +# :preamble: |- +# BuildRequires: foobar +# Requires: foobar +# ## used by gem2rpm +# :patches: +# foo.patch: -p1 +# bar.patch: +# ## used by gem2rpm +# :sources: +# - foo.desktop +# - bar.desktop +# :gem_install_args: '....' +# ## used by gem2rpm +# :pre_install: |- +# %if 0%{?use_system_libev} +# export USE_VENDORED_LIBEV="no" +# %endif +# ## used by gem2rpm +# :post_install: |- +# # delete custom files here or do other fancy stuff +# install -D -m 0644 %{S:1} %{buildroot}%{_bindir}/gem2rpm-opensuse +# ## used by gem2rpm +# :testsuite_command: |- +# (pushd %{buildroot}%{gem_base}/gems/%{mod_full_name} && rake test) +# ## used by gem2rpm +# :filelist: |- +# /usr/bin/gem2rpm-opensuse +# ## used by gem2rpm +# :scripts: +# :post: |- +# /bin/echo foo +# ## used by gem_packages +# :main: +# :preamble: |- +# Requires: util-linux +# Recommends: pwgen +# :filelist: |- +# /usr/bin/gem2rpm-opensuse +# ## used by gem_packages +# :custom: +# apache: +# :preamble: |- +# Requires: ..... +# :filelist: |- +# /etc/apache2/conf.d/passenger.conf +# :summary: Custom summary is optional +# :description: |- +# Custom description is optional +# +# bar +# :post: |- +# /bin/echo foo +# +--- +:sources: + - rubygem-nio4r-rpmlintrc + +:preamble: |- + %if 0%{?suse_version} && 0%{?suse_version} < 1330 + %define rb_build_versions ruby23 ruby24 ruby25 + %define rb_build_ruby_abi ruby:2.3.0 ruby:2.4.0 ruby:2.5.0 + %endif diff --git a/nio4r-2.7.4.gem b/nio4r-2.7.4.gem new file mode 100644 index 0000000..9b1a209 --- /dev/null +++ b/nio4r-2.7.4.gem @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d95dee68e0bb251b8ff90ac3423a511e3b784124e5db7ff5f4813a220ae73ca9 +size 116736 diff --git a/rubygem-nio4r-rpmlintrc b/rubygem-nio4r-rpmlintrc new file mode 100644 index 0000000..67d25fd --- /dev/null +++ b/rubygem-nio4r-rpmlintrc @@ -0,0 +1 @@ +addFilter("devel-file-in-non-devel-package") diff --git a/rubygem-nio4r.changes b/rubygem-nio4r.changes new file mode 100644 index 0000000..9e58ce5 --- /dev/null +++ b/rubygem-nio4r.changes @@ -0,0 +1,305 @@ +------------------------------------------------------------------- +Mon Nov 4 17:08:13 UTC 2024 - Dan Čermák + +- New upstream release 2.7.4, see bundled changes.md + +------------------------------------------------------------------- +Fri Jun 21 10:19:11 UTC 2024 - Dan Čermák + +- 2.7.1: + +## What's Changed +* Update changes.md by @ioquatix in https://github.com/socketry/nio4r/pull/311 +* fix jruby warnings by @ahorek in https://github.com/socketry/nio4r/pull/313 +* Convert license to array of identifiers by @voxik in https://github.com/socketry/nio4r/pull/312 + + +**Full Changelog**: https://github.com/socketry/nio4r/compare/v2.7.0...v2.7.1 + + + +------------------------------------------------------------------- +Mon Jan 29 14:16:46 UTC 2024 - Dan Čermák + +- ## 2.6.2 + +* Convert NIO objects to TypedData API. + +## 2.6.1 + +* Don't update `io` which is subsequently stored. Retain the original. + +## 2.6.0 + +* Fix conversion loses int precision. +* Avoid direct access to IO internals. +* Resolve issue loading both nio and nio4r gems. + + +------------------------------------------------------------------- +Tue Nov 28 08:13:33 UTC 2023 - Dan Čermák + +- New upstream release 2.6.1, see bundled changes.md + +------------------------------------------------------------------- +Fri Nov 3 07:48:16 UTC 2023 - Dan Čermák + +- ## 2.5.8 (2021-08-03) + +* [#276](https://github.com/socketry/nio4r/pull/276) + Fix missing return statement in function returning non-void (issue [#275](https://github.com/socketry/nio4r/pull/275)) + ([@ioquatix]) +* Remove `guard-rspec` from development dependencies ([@ioquatix]) + +## 2.5.7 (2021-03-04) + +* [#267](https://github.com/socketry/nio4r/pull/267) + Don't try to link universal extension + ([@ioquatix]) + +## 2.5.6 (2021-03-04) + +* [#268](https://github.com/socketry/nio4r/pull/268) + Prefer kqueue when on OSX >= v10.12.2 + ([@jcmfernandes]) + + +------------------------------------------------------------------- +Wed Aug 25 05:18:15 UTC 2021 - Manuel Schnitzer + +- updated to version 2.5.8 + + * no changelog found for this version in CHANGES.md + +------------------------------------------------------------------- +Mon Mar 15 04:32:47 UTC 2021 - Manuel Schnitzer + +- updated to version 2.5.7 + + * no changelog found for this version in CHANGES.md + +------------------------------------------------------------------- +Sat Feb 6 11:33:25 UTC 2021 - Manuel Schnitzer + +- updated to version 2.5.5 + + * no changelog found for this version in CHANGES.md + +------------------------------------------------------------------- +Fri Sep 25 14:26:27 UTC 2020 - Stephan Kulow + +updated to version 2.5.4 + see installed CHANGES.md + + ## 2.5.4 (2020-09-16) + + * [#251](https://github.com/socketry/nio4r/issues/251) + Intermittent SEGV during GC. + ([@boazsegev]) + + +------------------------------------------------------------------- +Sat Sep 12 12:28:10 UTC 2020 - Manuel Schnitzer + +- updated to version 2.5.3 + + * [#241](https://github.com/socketry/nio4r/issues/241) + Possible bug with Ruby >= 2.7.0 and `GC.compact`. + ([@boazsegev]) + +------------------------------------------------------------------- +Tue Nov 12 15:21:16 UTC 2019 - Manuel Schnitzer + +- updated to version 2.5.2 + + * [#220](https://github.com/socketry/nio4r/issues/220) + Update to libev-4.27 & fix assorted warnings. + ([@ioquatix]) + + * [#225](https://github.com/socketry/nio4r/issues/225) + Avoid need for linux headers. + ([@ioquatix]) + +------------------------------------------------------------------- +Mon Jul 8 06:53:10 UTC 2019 - Manuel Schnitzer + +- updated to version 2.4.0 + + * [#211](https://github.com/socketry/nio4r/pull/211) + Enable KQUEUE on macOS 10.14+. + ([@ioquatix]) + + * Bump minimum supported Ruby to 2.3. + ([@ioquatix]) + + * Assorted fixes for TruffleRuby & JRuby. + ([@eregon], [@olleolleolle]) + + * Update libev to v4.25. + ([@ioquatix]) + + * Bind to ephemeral (port 0) for more reliable specs. + ([@ioquatix]) + + * Improve handling of SSL sockets and related specs. + ([@MSP-Greg]) + +------------------------------------------------------------------- +Thu May 3 00:11:59 UTC 2018 - factory-auto@kulow.org + +- updated to version 2.3.1 + see installed CHANGES.md + + ## 2.3.1 (2018-05-03) + + * [#188](https://github.com/socketry/nio4r/pull/188) + Fix remove interests + ([@ioquatix]) + +------------------------------------------------------------------- +Mon Apr 16 16:36:55 UTC 2018 - mschnitzer@suse.com + +- Only build against ruby versions 2.3.x, 2.4.x, and 2.5.x + +------------------------------------------------------------------- +Tue Mar 20 10:12:05 UTC 2018 - factory-auto@kulow.org + +- updated to version 2.3.0 + see installed CHANGES.md + + ## 2.3.0 (2018-03-15) + + * [#183](https://github.com/socketry/nio4r/pull/183) + Allow `Monitor#interests` to be nil + ([@ioquatix]) + +------------------------------------------------------------------- +Tue Jan 9 07:37:26 UTC 2018 - coolo@suse.com + +- updated to version 2.2.0 + see installed CHANGES.md + + ## 2.2.0 (2017-12-27) + + * [#151](https://github.com/socketry/nio4r/pull/151) + `NIO::Selector`: Support for enumerating and configuring backend + ([@tarcieri]) + + * [#153](https://github.com/socketry/nio4r/pull/153) + Fix builds on Windows + ([@unak]) + + * [#157](https://github.com/socketry/nio4r/pull/157) + Windows / MinGW test failure - fix spec_helper.rb + ([@MSP-Greg]) + + * [#162](https://github.com/socketry/nio4r/pull/162) + Don't build the C extension on Windows + ([@larskanis]) + + * [#164](https://github.com/socketry/nio4r/pull/164) + Fix NIO::ByteBuffer leak + ([@HoneyryderChuck]) + + * [#170](https://github.com/socketry/nio4r/pull/170) + Avoid CancelledKeyExceptions on JRuby + ([@HoneyryderChuck]) + + * [#177](https://github.com/socketry/nio4r/pull/177) + Fix `NIO::ByteBuffer` string conversions on JRuby + ([@tarcieri]) + + * [#179](https://github.com/socketry/nio4r/pull/179) + Fix argument error when running on ruby 2.5.0 + ([@tompng]) + + * [#180](https://github.com/socketry/nio4r/pull/180) + ext/nio4r/extconf.rb: check for port_event_t in port.h (fixes #178) + ([@tarcieri]) + +------------------------------------------------------------------- +Tue May 30 05:17:06 UTC 2017 - coolo@suse.com + +- updated to version 2.1.0 + see installed CHANGES.md + + ## 2.1.0 (2017-05-28) + + * [#130](https://github.com/socketry/nio4r/pull/130) + Add -fno-strict-aliasing flag when compiling C ext. + ([@junaruga]) + + * [#146](https://github.com/socketry/nio4r/pull/146) + Use non-blocking select when a timeout of 0 is given. + ([@tarcieri]) + + * [#147](https://github.com/socketry/nio4r/pull/147) + Update to libev 4.24. + ([@tarcieri]) + + * [#148](https://github.com/socketry/nio4r/pull/148) + Switch to the libev 4 API internally. + ([@tarcieri]) + +------------------------------------------------------------------- +Thu Dec 29 05:34:57 UTC 2016 - coolo@suse.com + +- updated to version 2.0.0 + see installed CHANGES.md + +------------------------------------------------------------------- +Mon Feb 1 05:32:56 UTC 2016 - coolo@suse.com + +- updated to version 1.2.1 + see installed CHANGES.md + + 1.2.1 (2016-01-31) + ------------------ + * Fix bug in the JRuby backend which cases indefinite blocking when small + timeout values are passed to the selector + +------------------------------------------------------------------- +Thu Jan 21 05:41:25 UTC 2016 - coolo@suse.com + +- updated to version 1.2.0 + see installed CHANGES.md + + 1.2.0 (2015-12-22) + ------------------ + * Add NIO::Monitor#interests= API for changing interests. Contributed by + @UpeksheJay as a Google Summer of Code project. + * Update to libev 4.22 + +------------------------------------------------------------------- +Sat Jul 18 04:29:56 UTC 2015 - coolo@suse.com + +- updated to version 1.1.1 + see installed CHANGES.md + + 1.1.1 (2015-07-17) + ------------------ + * Update to libev 4.20 + * Fall back to io.h if unistd.h is not found + * RSpec updates + * RuboCop + +------------------------------------------------------------------- +Tue Feb 10 18:08:29 UTC 2015 - coolo@suse.com + +- updated to version 1.1.0 + +------------------------------------------------------------------- +Thu Jan 29 09:57:10 UTC 2015 - tboerger@suse.com + +- Ignore devel files as we are doing it everywhere + +------------------------------------------------------------------- +Mon Oct 13 14:26:23 UTC 2014 - coolo@suse.com + +- adapt to new rubygem packaging + +------------------------------------------------------------------- +Thu Mar 20 13:12:17 UTC 2014 - tboerger@novell.com + +- Intial package of 1.0.0 + diff --git a/rubygem-nio4r.spec b/rubygem-nio4r.spec new file mode 100644 index 0000000..8a93121 --- /dev/null +++ b/rubygem-nio4r.spec @@ -0,0 +1,62 @@ +# +# spec file for package rubygem-nio4r +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +# +# This file was generated with a gem2rpm.yml and not just plain gem2rpm. +# All sections marked as MANUAL, license headers, summaries and descriptions +# can be maintained in that file. Please consult this file before editing any +# of those fields +# + +Name: rubygem-nio4r +Version: 2.7.4 +Release: 0 +%define mod_name nio4r +%define mod_full_name %{mod_name}-%{version} +# MANUAL +%if 0%{?suse_version} && 0%{?suse_version} < 1330 +%define rb_build_versions ruby23 ruby24 ruby25 +%define rb_build_ruby_abi ruby:2.3.0 ruby:2.4.0 ruby:2.5.0 +%endif +# /MANUAL +BuildRequires: ruby-macros >= 5 +BuildRequires: %{rubydevel >= 2.6} +BuildRequires: %{rubygem gem2rpm} +URL: https://github.com/socketry/nio4r +Source: https://rubygems.org/gems/%{mod_full_name}.gem +Source1: rubygem-nio4r-rpmlintrc +Source2: gem2rpm.yml +Summary: New IO for Ruby +License: BSD-2-Clause AND MIT + +%description +New IO for Ruby. + +%prep + +%build + +%install +%gem_install \ + --doc-files="changes.md license.md readme.md" \ + -f +%gem_cleanup + +%gem_packages + +%changelog