| |
@@ -2,18 +2,15 @@
|
| |
%global gem_name concurrent-ruby
|
| |
|
| |
Name: rubygem-%{gem_name}
|
| |
- Version: 1.0.5
|
| |
- Release: 6%{?dist}
|
| |
+ Version: 1.1.5
|
| |
+ 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 checkout v1.0.5 && tar czvf concurrent-ruby-1.0.5-specs.tar.gz spec/
|
| |
+ # git archive -v -o concurrent-ruby-1.1.5-specs.tar.gz v1.1.5 spec/
|
| |
Source1: %{gem_name}-%{version}-specs.tar.gz
|
| |
- # Avoid sporadic test failures due to wrong object_id formatting.
|
| |
- # https://github.com/ruby-concurrency/concurrent-ruby/pull/651
|
| |
- Patch1: concurrent-ruby-1.0.5-fix-inspect-output.patch
|
| |
BuildRequires: ruby(release)
|
| |
BuildRequires: rubygems-devel
|
| |
BuildRequires: ruby >= 1.9.3
|
| |
@@ -38,17 +35,11 @@
|
| |
Documentation for %{name}.
|
| |
|
| |
%prep
|
| |
- gem unpack %{SOURCE0}
|
| |
-
|
| |
- %setup -q -D -T -n %{gem_name}-%{version}
|
| |
-
|
| |
- gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
| |
-
|
| |
- %patch1 -p1
|
| |
+ %setup -q -n %{gem_name}-%{version} -b 1
|
| |
|
| |
%build
|
| |
# Create the gem as gem install only works on a gem file
|
| |
- gem build %{gem_name}.gemspec
|
| |
+ gem build ../%{gem_name}-%{version}.gemspec
|
| |
|
| |
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
|
| |
# by default, so that we can move it into the buildroot in %%install
|
| |
@@ -60,10 +51,9 @@
|
| |
%{buildroot}%{gem_dir}/
|
| |
|
| |
|
| |
- # Run the test suite
|
| |
%check
|
| |
pushd .%{gem_instdir}
|
| |
- tar xzf %{SOURCE1}
|
| |
+ ln -s %{_builddir}/spec spec
|
| |
|
| |
# -edge is not part of this gem.
|
| |
sed -i '/require.*concurrent-edge/ s/^/#/' spec/spec_helper.rb
|
| |
@@ -73,15 +63,22 @@
|
| |
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 \
|
| |
- --exclude-pattern 'spec/concurrent/{actor_spec.rb,channel_spec.rb,lazy_register_spec.rb,channel/**/*,atomic/atomic_markable_reference_spec.rb,edge/**/*}' \
|
| |
+ -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}' \
|
| |
spec
|
| |
|
| |
+
|
| |
popd
|
| |
|
| |
%files
|
| |
%dir %{gem_instdir}
|
| |
- %license %{gem_instdir}/LICENSE.txt
|
| |
+ %license %{gem_instdir}/LICENSE.md
|
| |
+ # Containst just some Java sources. Very likely included by mistake.
|
| |
+ %exclude %{gem_instdir}/ext
|
| |
%{gem_libdir}
|
| |
%exclude %{gem_cache}
|
| |
%{gem_spec}
|
| |
@@ -89,9 +86,14 @@
|
| |
%files doc
|
| |
%doc %{gem_docdir}
|
| |
%doc %{gem_instdir}/CHANGELOG.md
|
| |
+ %{gem_instdir}/Gemfile
|
| |
%doc %{gem_instdir}/README.md
|
| |
+ %{gem_instdir}/Rakefile
|
| |
|
| |
%changelog
|
| |
+ * Mon Sep 16 2019 Vít Ondruch <vondruch@redhat.com> - 1.1.5-1
|
| |
+ - Update to Concurrent Ruby 1.1.5.
|
| |
+
|
| |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-6
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
| |
|
| |