|
|
|
@ -2,14 +2,14 @@
|
|
|
|
|
%global gem_name concurrent-ruby
|
|
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 1.1.5
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Version: 1.1.9
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Modern concurrency tools for Ruby
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://www.concurrent-ruby.com
|
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
# git clone https://github.com/ruby-concurrency/concurrent-ruby.git && cd concurrent-ruby
|
|
|
|
|
# git archive -v -o concurrent-ruby-1.1.5-specs.tar.gz v1.1.5 spec/
|
|
|
|
|
# git archive -v -o concurrent-ruby-1.1.9-specs.tar.gz v1.1.9 spec/
|
|
|
|
|
Source1: %{gem_name}-%{version}-specs.tar.gz
|
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
@ -63,20 +63,23 @@ sed -i '/require.*concurrent-edge/ s/^/#/' spec/spec_helper.rb
|
|
|
|
|
sed -i '/allow_c_extensions?/,/^ end/ s/^/#/' spec/concurrent/atomic/atomic_reference_spec.rb
|
|
|
|
|
|
|
|
|
|
# Exclude the -edge test cases.
|
|
|
|
|
#
|
|
|
|
|
# Also exclude `scheduled_task_spec` and `timer_task_spec`,
|
|
|
|
|
# because these are pretty unstable:
|
|
|
|
|
# https://github.com/ruby-concurrency/concurrent-ruby/issues/824
|
|
|
|
|
rspec -rspec_helper \
|
|
|
|
|
#
|
|
|
|
|
# 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/**/*,promises_spec.rb,throttle_spec.rb,cancellation_spec.rb,scheduled_task_spec.rb,timer_task_spec.rb}' \
|
|
|
|
|
--exclude-pattern 'spec/concurrent/{actor_spec.rb,channel_spec.rb,lazy_register_spec.rb,channel/**/*,edge/**/*,promises_spec.rb,throttle_spec.rb,cancellation_spec.rb,scheduled_task_spec.rb,timer_task_spec.rb,executor/wrapping_executor_spec.rb}' \
|
|
|
|
|
spec
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
|
%license %{gem_instdir}/LICENSE.md
|
|
|
|
|
%license %{gem_instdir}/LICENSE.txt
|
|
|
|
|
# Containst just some Java sources. Very likely included by mistake.
|
|
|
|
|
%exclude %{gem_instdir}/ext
|
|
|
|
|
%{gem_libdir}
|
|
|
|
@ -91,6 +94,10 @@ popd
|
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Feb 28 2022 Vít Ondruch <vondruch@redhat.com> - 1.1.9-1
|
|
|
|
|
- Update to Concurrent Ruby 1.1.9.
|
|
|
|
|
Resolves: rhbz#1801443
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|