| |
@@ -1,24 +1,25 @@
|
| |
# Generated from concurrent-ruby-1.0.0.gem by gem2rpm -*- rpm-spec -*-
|
| |
%global gem_name concurrent-ruby
|
| |
|
| |
+ %bcond_without tests
|
| |
+
|
| |
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 checkout v1.1.5 && tar czvf concurrent-ruby-1.1.5-specs.tar.gz 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
|
| |
+ %if ! %{without tests}
|
| |
BuildRequires: rubygem(rspec)
|
| |
BuildRequires: rubygem(timecop)
|
| |
+ %endif
|
| |
BuildArch: noarch
|
| |
|
| |
%description
|
| |
@@ -38,17 +39,15 @@
|
| |
Documentation for %{name}.
|
| |
|
| |
%prep
|
| |
- gem unpack %{SOURCE0}
|
| |
-
|
| |
- %setup -q -D -T -n %{gem_name}-%{version}
|
| |
-
|
| |
- gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
| |
+ %setup -q -n %{gem_name}-%{version} -b1
|
| |
|
| |
- %patch1 -p1
|
| |
+ # We do not ship the .java extension
|
| |
+ %gemspec_remove_file Dir.glob('ext/**/*.*') + ['lib/concurrent/concurrent_ruby.jar']
|
| |
+ rm -rf ext lib/concurrent/concurrent_ruby.jar
|
| |
|
| |
%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 +59,11 @@
|
| |
%{buildroot}%{gem_dir}/
|
| |
|
| |
|
| |
+ %if ! %{without tests}
|
| |
# Run the test suite
|
| |
%check
|
| |
pushd .%{gem_instdir}
|
| |
- tar xzf %{SOURCE1}
|
| |
+ ln -s %{_builddir}/spec .
|
| |
|
| |
# -edge is not part of this gem.
|
| |
sed -i '/require.*concurrent-edge/ s/^/#/' spec/spec_helper.rb
|
| |
@@ -74,14 +74,15 @@
|
| |
|
| |
# Exclude the -edge test cases.
|
| |
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/**/*}' \
|
| |
+ --exclude-pattern 'spec/concurrent/{{scheduled_task,cancellation,timer_task,promises,throttle,actor,channel,lazy_register}_spec.rb,channel/**/*,atomic/atomic_markable_reference_spec.rb,edge/**/*}' \
|
| |
spec
|
| |
|
| |
popd
|
| |
+ %endif
|
| |
|
| |
%files
|
| |
%dir %{gem_instdir}
|
| |
- %license %{gem_instdir}/LICENSE.txt
|
| |
+ %license %{gem_instdir}/LICENSE.md
|
| |
%{gem_libdir}
|
| |
%exclude %{gem_cache}
|
| |
%{gem_spec}
|
| |
@@ -90,8 +91,14 @@
|
| |
%doc %{gem_docdir}
|
| |
%doc %{gem_instdir}/CHANGELOG.md
|
| |
%doc %{gem_instdir}/README.md
|
| |
+ %{gem_instdir}/Gemfile
|
| |
+ %{gem_instdir}/Rakefile
|
| |
+
|
| |
|
| |
%changelog
|
| |
+ * Sun Aug 04 2019 Pavel Valena <pvalena@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
|
| |
|
| |
Scratch-build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=36714047
Copr build:
https://copr.fedorainfracloud.org/coprs/build/990373
Checks:
< 2
)