Blame rubygem-concurrent-ruby.spec

235411e
# Generated from concurrent-ruby-1.0.0.gem by gem2rpm -*- rpm-spec -*-
235411e
%global gem_name concurrent-ruby
235411e
2601e63
%bcond_with tests
2601e63
235411e
Name: rubygem-%{gem_name}
96edfa4
Version: 1.1.5
2601e63
Release: 2%{?dist}
235411e
Summary: Modern concurrency tools for Ruby
235411e
License: MIT
235411e
URL: http://www.concurrent-ruby.com
235411e
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
80db40f
# git clone https://github.com/ruby-concurrency/concurrent-ruby.git && cd concurrent-ruby
96edfa4
# git archive -v -o concurrent-ruby-1.1.5-specs.tar.gz v1.1.5 spec/
235411e
Source1: %{gem_name}-%{version}-specs.tar.gz
235411e
BuildRequires: ruby(release)
235411e
BuildRequires: rubygems-devel
235411e
BuildRequires: ruby >= 1.9.3
2601e63
%if %{with tests}
235411e
BuildRequires: rubygem(rspec)
235411e
BuildRequires: rubygem(timecop)
2601e63
%endif
235411e
BuildArch: noarch
235411e
2601e63
235411e
%description
235411e
Modern concurrency tools including agents, futures, promises, thread pools,
235411e
actors, supervisors, and more.
235411e
235411e
Inspired by Erlang, Clojure, Go, JavaScript, actors, and classic concurrency
235411e
patterns.
235411e
235411e
235411e
%package doc
235411e
Summary: Documentation for %{name}
235411e
Requires: %{name} = %{version}-%{release}
235411e
BuildArch: noarch
235411e
235411e
%description doc
235411e
Documentation for %{name}.
235411e
235411e
%prep
96edfa4
%setup -q -n %{gem_name}-%{version} -b 1
7383c78
235411e
%build
235411e
# Create the gem as gem install only works on a gem file
96edfa4
gem build ../%{gem_name}-%{version}.gemspec
235411e
235411e
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
235411e
# by default, so that we can move it into the buildroot in %%install
235411e
%gem_install
235411e
235411e
%install
235411e
mkdir -p %{buildroot}%{gem_dir}
235411e
cp -a .%{gem_dir}/* \
235411e
        %{buildroot}%{gem_dir}/
235411e
2601e63
%if %{with tests}
235411e
%check
235411e
pushd .%{gem_instdir}
96edfa4
ln -s %{_builddir}/spec spec
235411e
235411e
# -edge is not part of this gem.
235411e
sed -i '/require.*concurrent-edge/ s/^/#/' spec/spec_helper.rb
235411e
60be4c2
# We don't have the C extension. It would need to come from concurrent-ruby-ext
60be4c2
# and that would lead to cicrular dependency.
235411e
sed -i '/allow_c_extensions?/,/^      end/ s/^/#/' spec/concurrent/atomic/atomic_reference_spec.rb
235411e
235411e
# Exclude the -edge test cases.
96edfa4
# Also exclude `scheduled_task_spec` and `timer_task_spec`,
96edfa4
# because these are pretty unstable:
96edfa4
# https://github.com/ruby-concurrency/concurrent-ruby/issues/824
235411e
rspec -rspec_helper \
96edfa4
  -fd \
96edfa4
  --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}' \
235411e
  spec
235411e
96edfa4
235411e
popd
2601e63
%endif
235411e
%files
235411e
%dir %{gem_instdir}
96edfa4
%license %{gem_instdir}/LICENSE.md
96edfa4
# Containst just some Java sources. Very likely included by mistake.
96edfa4
%exclude %{gem_instdir}/ext
235411e
%{gem_libdir}
235411e
%exclude %{gem_cache}
235411e
%{gem_spec}
235411e
235411e
%files doc
235411e
%doc %{gem_docdir}
235411e
%doc %{gem_instdir}/CHANGELOG.md
96edfa4
%{gem_instdir}/Gemfile
235411e
%doc %{gem_instdir}/README.md
96edfa4
%{gem_instdir}/Rakefile
235411e
235411e
%changelog
2601e63
* Mon Sep 16 2019 Vít Ondruch <vondruch@redhat.com> - 1.1.5-2
2601e63
- Made the tests optional.
2601e63
96edfa4
* Mon Sep 16 2019 Vít Ondruch <vondruch@redhat.com> - 1.1.5-1
96edfa4
- Update to Concurrent Ruby 1.1.5.
96edfa4
881a06f
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-6
881a06f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
881a06f
cd9d5a8
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-5
cd9d5a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
cd9d5a8
704073f
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-4
704073f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
704073f
b7421dc
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-3
b7421dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b7421dc
22851fa
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-2
22851fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
22851fa
7383c78
* Tue May 09 2017 Vít Ondruch <vondruch@redhat.com> - 1.0.5-1
7383c78
- Update to Concurrent Ruby 1.0.5.
7383c78
b2ced8e
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-2
b2ced8e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b2ced8e
ca93902
* Tue Jan 03 2017 Vít Ondruch <vondruch@redhat.com> - 1.0.4-1
ca93902
- Update to Concurrent Ruby 1.0.4.
ca93902
60be4c2
* Mon Jul 04 2016 Vít Ondruch <vondruch@redhat.com> - 1.0.2-1
60be4c2
- Update to Concurrent Ruby 1.0.2.
60be4c2
573a838
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
573a838
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
573a838
235411e
* Wed Dec 23 2015 Vít Ondruch <vondruch@redhat.com> - 1.0.0-1
235411e
- Initial package