Blame rubygem-concurrent-ruby.spec

235411
# Generated from concurrent-ruby-1.0.0.gem by gem2rpm -*- rpm-spec -*-
235411
%global gem_name concurrent-ruby
235411
235411
Name: rubygem-%{gem_name}
7383c7
Version: 1.0.5
881a06
Release: 6%{?dist}
235411
Summary: Modern concurrency tools for Ruby
235411
License: MIT
235411
URL: http://www.concurrent-ruby.com
235411
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
80db40
# git clone https://github.com/ruby-concurrency/concurrent-ruby.git && cd concurrent-ruby
7383c7
# git checkout v1.0.5 && tar czvf concurrent-ruby-1.0.5-specs.tar.gz spec/
235411
Source1: %{gem_name}-%{version}-specs.tar.gz
7383c7
# Avoid sporadic test failures due to wrong object_id formatting.
7383c7
# https://github.com/ruby-concurrency/concurrent-ruby/pull/651
7383c7
Patch1: concurrent-ruby-1.0.5-fix-inspect-output.patch
235411
BuildRequires: ruby(release)
235411
BuildRequires: rubygems-devel
235411
BuildRequires: ruby >= 1.9.3
235411
BuildRequires: rubygem(rspec)
235411
BuildRequires: rubygem(timecop)
235411
BuildArch: noarch
235411
235411
%description
235411
Modern concurrency tools including agents, futures, promises, thread pools,
235411
actors, supervisors, and more.
235411
235411
Inspired by Erlang, Clojure, Go, JavaScript, actors, and classic concurrency
235411
patterns.
235411
235411
235411
%package doc
235411
Summary: Documentation for %{name}
235411
Requires: %{name} = %{version}-%{release}
235411
BuildArch: noarch
235411
235411
%description doc
235411
Documentation for %{name}.
235411
235411
%prep
235411
gem unpack %{SOURCE0}
235411
235411
%setup -q -D -T -n  %{gem_name}-%{version}
235411
235411
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
235411
7383c7
%patch1 -p1
7383c7
235411
%build
235411
# Create the gem as gem install only works on a gem file
235411
gem build %{gem_name}.gemspec
235411
235411
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
235411
# by default, so that we can move it into the buildroot in %%install
235411
%gem_install
235411
235411
%install
235411
mkdir -p %{buildroot}%{gem_dir}
235411
cp -a .%{gem_dir}/* \
235411
        %{buildroot}%{gem_dir}/
235411
235411
235411
# Run the test suite
235411
%check
235411
pushd .%{gem_instdir}
235411
tar xzf %{SOURCE1}
235411
235411
# -edge is not part of this gem.
235411
sed -i '/require.*concurrent-edge/ s/^/#/' spec/spec_helper.rb
235411
60be4c
# We don't have the C extension. It would need to come from concurrent-ruby-ext
60be4c
# and that would lead to cicrular dependency.
235411
sed -i '/allow_c_extensions?/,/^      end/ s/^/#/' spec/concurrent/atomic/atomic_reference_spec.rb
235411
235411
# Exclude the -edge test cases.
235411
rspec -rspec_helper \
ca9390
  --exclude-pattern 'spec/concurrent/{actor_spec.rb,channel_spec.rb,lazy_register_spec.rb,channel/**/*,atomic/atomic_markable_reference_spec.rb,edge/**/*}' \
235411
  spec
235411
235411
popd
235411
235411
%files
235411
%dir %{gem_instdir}
235411
%license %{gem_instdir}/LICENSE.txt
235411
%{gem_libdir}
235411
%exclude %{gem_cache}
235411
%{gem_spec}
235411
235411
%files doc
235411
%doc %{gem_docdir}
235411
%doc %{gem_instdir}/CHANGELOG.md
235411
%doc %{gem_instdir}/README.md
235411
235411
%changelog
881a06
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-6
881a06
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
881a06
cd9d5a
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-5
cd9d5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
cd9d5a
704073
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-4
704073
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
704073
b7421d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-3
b7421d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b7421d
22851f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-2
22851f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
22851f
7383c7
* Tue May 09 2017 Vít Ondruch <vondruch@redhat.com> - 1.0.5-1
7383c7
- Update to Concurrent Ruby 1.0.5.
7383c7
b2ced8
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-2
b2ced8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b2ced8
ca9390
* Tue Jan 03 2017 Vít Ondruch <vondruch@redhat.com> - 1.0.4-1
ca9390
- Update to Concurrent Ruby 1.0.4.
ca9390
60be4c
* Mon Jul 04 2016 Vít Ondruch <vondruch@redhat.com> - 1.0.2-1
60be4c
- Update to Concurrent Ruby 1.0.2.
60be4c
573a83
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
573a83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
573a83
235411
* Wed Dec 23 2015 Vít Ondruch <vondruch@redhat.com> - 1.0.0-1
235411
- Initial package