[packages/ruby-nio4r] Up to 2.7.5

arekm arekm at pld-linux.org
Sat Mar 21 11:34:25 CET 2026


commit c5db505355454d313dce118b7699ae6474e90c2a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Mar 21 11:34:14 2026 +0100

    Up to 2.7.5

 ruby-nio4r.spec | 91 +++++++++++++++++++++++++++++++++++++--------------------
 1 file changed, 59 insertions(+), 32 deletions(-)
---
diff --git a/ruby-nio4r.spec b/ruby-nio4r.spec
index 023ea12..78aab34 100644
--- a/ruby-nio4r.spec
+++ b/ruby-nio4r.spec
@@ -1,27 +1,16 @@
-# TODO
-# - use system libev (0.5.0 bundles libev 4.15)
-#
-# Conditional build:
-%bcond_with	tests		# build without tests
-
-%define	pkgname	nio4r
+%define pkgname nio4r
 Summary:	NIO provides a high performance selector API for monitoring IO objects
 Name:		ruby-%{pkgname}
-Version:	2.1.0
-Release:	3
+Version:	2.7.5
+Release:	1
 License:	MIT
 Group:		Development/Languages
 Source0:	http://rubygems.org/downloads/%{pkgname}-%{version}.gem
-# Source0-md5:	13617a7f769d3fe977b7b9d67f8c61a3
-URL:		https://github.com/celluloid/nio4r
+# Source0-md5:	91cd221d3e0148e92c95b04d9b9da66b
+URL:		https://github.com/socketry/nio4r
 BuildRequires:	rpm-rubyprov
 BuildRequires:	rpmbuild(macros) >= 1.665
 BuildRequires:	ruby-devel
-%if %{with tests}
-BuildRequires:	ruby-rake
-BuildRequires:	ruby-rake-compiler
-BuildRequires:	ruby-rspec
-%endif
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -30,46 +19,84 @@ whole lot of options. The most powerful API Ruby itself gives you is
 Kernel.select, and select is hurting when it comes to performance and
 in terms of having a nice API.
 
-Once upon a time Java was a similar mess. They got out of it by adding
-the Java NIO API. Java NIO provides a high performance selector API
-for monitoring large numbers of file descriptors.
+NIO provides a high performance selector API for monitoring IO objects.
+It's based on the New I/O (NIO) API found in Java, but aims to be
+easier to use. It's also inspired by the EventMachine Reactor API, but
+aims to be more lightweight and focused.
+
+%package rdoc
+Summary:	HTML documentation for %{name}
+Summary(pl.UTF-8):	Dokumentacja w formacie HTML dla %{name}
+Group:		Documentation
+Requires:	%{name} = %{version}-%{release}
+BuildArch:	noarch
+
+%description rdoc
+HTML documentation for %{name}.
+
+%description rdoc -l pl.UTF-8
+Dokumentacja w formacie HTML dla %{name}.
 
-This library aims to incorporate the ideas of Java NIO in Ruby. These
-are:
-- Expose high level interfaces for doing high performance IO, but keep
-  the codebase small to encourage multiple implementations on different
-  platforms
-- Be as portable as possible, in this case across several Ruby VMs
-- Provide inherently thread-safe facilities for working with IO
-  objects
+%package ri
+Summary:	ri documentation for %{name}
+Summary(pl.UTF-8):	Dokumentacja w formacie ri dla %{name}
+Group:		Documentation
+Requires:	%{name} = %{version}-%{release}
+BuildArch:	noarch
+
+%description ri
+ri documentation for %{name}.
+
+%description ri -l pl.UTF-8
+Dokumentacji w formacie ri dla %{name}.
 
 %prep
 %setup -q -n %{pkgname}-%{version}
 
 %build
-# write .gemspec
 %__gem_helper spec
-cd ext/%{pkgname}
+
+cd ext/nio4r
 %{__ruby} extconf.rb
 %{__make} \
 	CC="%{__cc}" \
 	LDFLAGS="%{rpmldflags}" \
 	CFLAGS="%{rpmcflags} -fPIC"
+cd ../..
+
+rdoc --ri --op ri lib
+rdoc --op rdoc lib
+rm -rf ri/Object
+rm ri/created.rid
+rm ri/cache.ri
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_vendorarchdir},%{ruby_specdir}}
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_vendorarchdir},%{ruby_specdir},%{ruby_ridir},%{ruby_rdocdir}}
+
 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
-install -p ext/%{pkgname}/nio4r_ext.so $RPM_BUILD_ROOT%{ruby_vendorarchdir}
+install -p ext/nio4r/nio4r_ext.so $RPM_BUILD_ROOT%{ruby_vendorarchdir}
 cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
 
+cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
+cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README.md CHANGES.md LICENSE.txt
+%doc readme.md license.md releases.md
 %{ruby_vendorlibdir}/nio.rb
+%{ruby_vendorlibdir}/nio4r.rb
 %{ruby_vendorlibdir}/nio
 %attr(755,root,root) %{ruby_vendorarchdir}/nio4r_ext.so
 %{ruby_specdir}/%{pkgname}-%{version}.gemspec
+
+%files rdoc
+%defattr(644,root,root,755)
+%{ruby_rdocdir}/%{name}-%{version}
+
+%files ri
+%defattr(644,root,root,755)
+%{ruby_ridir}/NIO
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-nio4r.git/commitdiff/c5db505355454d313dce118b7699ae6474e90c2a



More information about the pld-cvs-commit mailing list