Blame SPECS/rubygem-concurrent-ruby.spec

cca04c
# Generated from concurrent-ruby-1.0.0.gem by gem2rpm -*- rpm-spec -*-
cca04c
%global gem_name concurrent-ruby
cca04c
cca04c
Name: rubygem-%{gem_name}
cca04c
Version: 1.3.5
cca04c
Release: 1%{?dist}
cca04c
Summary: Modern concurrency tools for Ruby
cca04c
License: MIT
cca04c
URL: http://www.concurrent-ruby.com
cca04c
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
cca04c
# git clone https://github.com/ruby-concurrency/concurrent-ruby.git && cd concurrent-ruby
cca04c
# git archive -v -o concurrent-ruby-1.3.5-specs.tar.gz v1.3.5 spec/
cca04c
Source1: %{gem_name}-%{version}-specs.tar.gz
cca04c
BuildRequires: ruby(release)
cca04c
BuildRequires: rubygems-devel
cca04c
BuildRequires: ruby >= 1.9.3
cca04c
BuildRequires: rubygem(rspec)
cca04c
BuildRequires: rubygem(timecop)
cca04c
BuildArch: noarch
cca04c
cca04c
%description
cca04c
Modern concurrency tools including agents, futures, promises, thread pools,
cca04c
actors, supervisors, and more.
cca04c
cca04c
Inspired by Erlang, Clojure, Go, JavaScript, actors, and classic concurrency
cca04c
patterns.
cca04c
cca04c
cca04c
%package doc
cca04c
Summary: Documentation for %{name}
cca04c
Requires: %{name} = %{version}-%{release}
cca04c
BuildArch: noarch
cca04c
cca04c
%description doc
cca04c
Documentation for %{name}.
cca04c
cca04c
%prep
cca04c
%setup -q -n %{gem_name}-%{version} -b 1
cca04c
cca04c
# Remove bundled .jar
cca04c
%gemspec_remove_file 'lib/concurrent-ruby/concurrent/concurrent_ruby.jar'
cca04c
cca04c
%build
cca04c
# Create the gem as gem install only works on a gem file
cca04c
gem build ../%{gem_name}-%{version}.gemspec
cca04c
cca04c
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
cca04c
# by default, so that we can move it into the buildroot in %%install
cca04c
%gem_install
cca04c
cca04c
%install
cca04c
mkdir -p %{buildroot}%{gem_dir}
cca04c
cp -a .%{gem_dir}/* \
cca04c
        %{buildroot}%{gem_dir}/
cca04c
cca04c
cca04c
%check
cca04c
( cd .%{gem_instdir}
cca04c
ln -s %{_builddir}/spec spec
cca04c
cca04c
# We don't have the C extension and the condition is broken with 1.3.5
cca04c
# https://github.com/ruby-concurrency/concurrent-ruby/issues/1080
cca04c
sed -i 's/allow_c_extensions/c_extensions_loaded/' \
cca04c
  spec/concurrent/atomic/atomic_{fixnum,reference,boolean}_spec.rb
cca04c
cca04c
# Exclude the -edge test cases.
cca04c
#
cca04c
# Require path must be exported due to
cca04c
# spec/concurrent/executor/executor_service_shared.rb spawning new Ruby instance
cca04c
RUBYOPT=-Ilib/concurrent-ruby rspec -rspec_helper \
cca04c
  -fd \
cca04c
  --exclude-pattern 'spec/concurrent/{actor_spec.rb,channel_spec.rb,lazy_register_spec.rb,channel/**/*,edge/**/*,processing_actor_spec.rb,promises_spec.rb,throttle_spec.rb,cancellation_spec.rb,executor/wrapping_executor_spec.rb}' \
cca04c
  spec
cca04c
cca04c
)
cca04c
cca04c
%files
cca04c
%dir %{gem_instdir}
cca04c
%license %{gem_instdir}/LICENSE.txt
cca04c
# Containst just some Java sources. Very likely included by mistake.
cca04c
%exclude %{gem_instdir}/ext
cca04c
%{gem_libdir}
cca04c
%exclude %{gem_cache}
cca04c
%{gem_spec}
cca04c
cca04c
%files doc
cca04c
%doc %{gem_docdir}
cca04c
%doc %{gem_instdir}/CHANGELOG.md
cca04c
%{gem_instdir}/Gemfile
cca04c
%doc %{gem_instdir}/README.md
cca04c
%{gem_instdir}/Rakefile
cca04c
cca04c
%changelog
cca04c
* Mon Jan 20 2025 Vít Ondruch <vondruch@redhat.com> - 1.3.5-1
cca04c
- Update to Concurrent Ruby 1.3.5.
cca04c
  Resolves: rhbz#2066526
cca04c
cca04c
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.9-8
cca04c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
cca04c
cca04c
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.9-7
cca04c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
cca04c
cca04c
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.9-6
cca04c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
cca04c
cca04c
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.9-5
cca04c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
cca04c
cca04c
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.9-4
cca04c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
cca04c
cca04c
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.9-3
cca04c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
cca04c
cca04c
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.9-2
cca04c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
cca04c
cca04c
* Mon Feb 28 2022 Vít Ondruch <vondruch@redhat.com> - 1.1.9-1
cca04c
- Update to Concurrent Ruby 1.1.9.
cca04c
  Resolves: rhbz#1801443
cca04c
cca04c
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-6
cca04c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
cca04c
cca04c
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-5
cca04c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
cca04c
cca04c
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-4
cca04c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
cca04c
cca04c
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-3
cca04c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
cca04c
cca04c
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-2
cca04c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
cca04c
cca04c
* Mon Sep 16 2019 Vít Ondruch <vondruch@redhat.com> - 1.1.5-1
cca04c
- Update to Concurrent Ruby 1.1.5.
cca04c
cca04c
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-6
cca04c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
cca04c
cca04c
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-5
cca04c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
cca04c
cca04c
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-4
cca04c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
cca04c
cca04c
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-3
cca04c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
cca04c
cca04c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-2
cca04c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
cca04c
cca04c
* Tue May 09 2017 Vít Ondruch <vondruch@redhat.com> - 1.0.5-1
cca04c
- Update to Concurrent Ruby 1.0.5.
cca04c
cca04c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-2
cca04c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
cca04c
cca04c
* Tue Jan 03 2017 Vít Ondruch <vondruch@redhat.com> - 1.0.4-1
cca04c
- Update to Concurrent Ruby 1.0.4.
cca04c
cca04c
* Mon Jul 04 2016 Vít Ondruch <vondruch@redhat.com> - 1.0.2-1
cca04c
- Update to Concurrent Ruby 1.0.2.
cca04c
cca04c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
cca04c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
cca04c
cca04c
* Wed Dec 23 2015 Vít Ondruch <vondruch@redhat.com> - 1.0.0-1
cca04c
- Initial package