Ai
3 Star 0 Fork 5

src-openEuler/rubygem-concurrent-ruby
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
rubygem-concurrent-ruby.spec 2.50 KB
一键复制 编辑 原始数据 按行查看 历史
wk333 提交于 2025-11-25 21:20 +08:00 . Update to 1.3.5
%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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/rubygem-concurrent-ruby.git
git@gitee.com:src-openeuler/rubygem-concurrent-ruby.git
src-openeuler
rubygem-concurrent-ruby
rubygem-concurrent-ruby
master

搜索帮助