1 Star 0 Fork 8

xu_ping/rubygem-nio4r

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
rubygem-nio4r.spec 2.44 KB
一键复制 编辑 原始数据 按行查看 历史
xu_ping 提交于 2024-05-13 14:21 . Upgrade version to 2.7.1
%global gem_name nio4r
%global libev_version 4.33
Name: rubygem-%{gem_name}
Version: 2.7.1
Release: 1
Summary: New IO for Ruby
License: MIT and (BSD or GPLv2+)
URL: https://github.com/socketry/nio4r
Source0: https://rubygems.org/gems/nio4r-%{version}.gem
BuildRequires: ruby(release) rubygems-devel ruby-devel rubygem(rspec) gcc
Provides: bundled(libev) = %{libev_version}
%description
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 help
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
Provides: %{name}-doc = %{version}-%{release}
Obsoletes: %{name}-doc < %{version}-%{release}
%description help
Documentation for %{name}.
%prep
%autosetup -n %{gem_name}-%{version} -p1
%build
gem build ../%{gem_name}-%{version}.gemspec
%global optflags %{?optflags} -fno-strict-aliasing
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
mkdir -p %{buildroot}%{gem_extdir_mri}
cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/
rm -rf %{buildroot}%{gem_instdir}/ext/
%check
pushd .%{gem_instdir}
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}' ]
sed -i '/require "coveralls"/ s/^/#/' spec/spec_helper.rb
sed -i '/Coveralls.wear!/ s/^/#/' spec/spec_helper.rb
rspec -I$(dirs +1)%{gem_extdir_mri} spec
popd
%files
%dir %{gem_instdir}
%{gem_extdir_mri}
%exclude %{gem_instdir}/.*
%doc %{gem_instdir}/readme.md
%license %{gem_instdir}/license.md
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
%files help
%doc %{gem_docdir}
%{gem_instdir}/Gemfile
%doc %{gem_instdir}/changes.md
%{gem_instdir}/logo.png
%{gem_instdir}/rakelib
%{gem_instdir}/Rakefile
%{gem_instdir}/examples
%{gem_instdir}/nio4r.gemspec
%{gem_instdir}/spec
%changelog
* Mon May 13 2024 xu_ping <[email protected]> - 2.7.1-1
- Update to 2.7.1
* Wed Nov 15 2023 wangkai <[email protected]> - 2.5.9-1
- Update to 2.5.9
* Tue Aug 23 2022 wangkai <[email protected]> - 2.5.2-1
- Update to 2.5.2
* Mon Aug 24 2020 liyanan <[email protected]> - 2.3.1-1
- package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cherry530/rubygem-nio4r.git
[email protected]:cherry530/rubygem-nio4r.git
cherry530
rubygem-nio4r
rubygem-nio4r
master

搜索帮助