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}
60be4c
Version: 1.0.2
60be4c
Release: 1%{?dist}
235411
Summary: Modern concurrency tools for Ruby
235411
Group: Development/Languages
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
60be4c
# git checkout v1.0.2 && tar czvf concurrent-ruby-1.0.2-specs.tar.gz spec/
235411
Source1: %{gem_name}-%{version}-specs.tar.gz
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
Group: Documentation
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
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 \
235411
  --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
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