Blame SPECS/rubygem-concurrent-ruby.spec

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