代码拉取完成,页面将自动刷新
%global gem_name concurrent-ruby
Name: rubygem-%{gem_name}
Version: 1.3.5
Release: 1
Summary: Modern concurrency tools for Ruby
License: MIT
URL: http://www.concurrent-ruby.com
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: https://github.com/ruby-concurrency/concurrent-ruby/archive/v%{version}.tar.gz
BuildRequires: ruby(release) rubygems-devel ruby >= 1.9.3 rubygem(rspec) rubygem(timecop)
BuildArch: noarch
%description
Modern concurrency tools including agents, futures, promises, thread pools,
actors, supervisors, and more.
Inspired by Erlang, Clojure, Go, JavaScript, actors, and classic concurrency
patterns.
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version}
%build
gem build ../%{gem_name}-%{version}.gemspec
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%check
pushd .%{gem_instdir}
tar xzf %{SOURCE1}
ln -s %{gem_name}-%{version}/spec spec
# We don't have the C extension and the condition is broken with 1.3.5
# https://github.com/ruby-concurrency/concurrent-ruby/issues/1080
sed -i 's/allow_c_extensions/c_extensions_loaded/' \
spec/concurrent/atomic/atomic_{fixnum,reference,boolean}_spec.rb
# Exclude the -edge test cases.
#
# Require path must be exported due to
# spec/concurrent/executor/executor_service_shared.rb spawning new Ruby instance
RUBYOPT=-Ilib/concurrent-ruby rspec -rspec_helper \
-fd \
--exclude-pattern 'spec/concurrent/{actor_spec.rb,channel_spec.rb,lazy_register_spec.rb,channel/**/*,edge/**/*,processing_actor_spec.rb,promises_spec.rb,throttle_spec.rb,cancellation_spec.rb,executor/wrapping_executor_spec.rb}' \
spec
popd
%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE.txt
%exclude %{gem_instdir}/ext
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md
%{gem_instdir}/Gemfile
%doc %{gem_instdir}/README.md
%{gem_instdir}/Rakefile
%changelog
* Tue Nov 25 2025 wangkai <13474090681@163.com> - 1.3.5-1
- Update to 1.3.5
* Tue Jul 19 2022 liyanan <liyanan32@h-partners.com> - 1.1.9-1
- update to 1.1.9
* Tue Sep 8 2020 yanan li <liyanan032@huawei.com> - 1.0.5-2
- fix build fail
* Tue Aug 18 2020 wanglin <wanglin175@huawei.com> - 1.0.5-1
- package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。