|
|
ffdb14 |
%{?scl:%scl_package rubygem-%{gem_name}}
|
|
|
ffdb14 |
%{!?scl:%global pkg_name %{name}}
|
|
|
ffdb14 |
|
|
|
ffdb14 |
# Generated from thread_safe-0.1.0.gem by gem2rpm -*- rpm-spec -*-
|
|
|
ffdb14 |
%global gem_name thread_safe
|
|
|
ffdb14 |
|
|
|
ffdb14 |
# Perl auto-provides would generate a provide for 'package thread_safe;'
|
|
|
ffdb14 |
%if 0%{?rhel} > 6
|
|
|
ffdb14 |
%global __provides_filter_from /perl(thread_safe)/
|
|
|
ffdb14 |
%else
|
|
|
ffdb14 |
%{?filter_setup:
|
|
|
ffdb14 |
%filter_from_provides /perl(thread_safe)/d
|
|
|
ffdb14 |
%filter_setup
|
|
|
ffdb14 |
}
|
|
|
ffdb14 |
%endif
|
|
|
ffdb14 |
|
|
|
ffdb14 |
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|
|
ffdb14 |
Version: 0.3.5
|
|
|
ffdb14 |
Release: 6%{?dist}
|
|
|
ffdb14 |
Summary: Thread-safe collections and utilities for Ruby
|
|
|
ffdb14 |
Group: Development/Languages
|
|
|
ffdb14 |
# jsr166e.LondAdder, jsr166e.Striped64, jsr166e.ConcurrentHashMapV8
|
|
|
ffdb14 |
# and their Ruby ports are Public Domain
|
|
|
ffdb14 |
License: ASL 2.0 and Public Domain
|
|
|
ffdb14 |
URL: https://github.com/ruby-concurrency/thread_safe
|
|
|
ffdb14 |
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
ffdb14 |
# Patch0 sent upstream at
|
|
|
ffdb14 |
# https://github.com/ruby-concurrency/thread_safe/pull/13
|
|
|
ffdb14 |
Patch0: rubygem-thread_safe-0.3.5-optional-deps.patch
|
|
|
ffdb14 |
# Suppress deprecated Fixnum warnings on Ruby 2.4.0.
|
|
|
ffdb14 |
# https://github.com/ruby-concurrency/thread_safe/commit/8c929dc
|
|
|
ffdb14 |
Patch1: rubygem-thread_safe-0.3.5-suppress-Fixnum-warning-ruby2.4.patch
|
|
|
ffdb14 |
|
|
|
ffdb14 |
Requires: %{?scl_prefix_ruby}ruby(release)
|
|
|
ffdb14 |
Requires: %{?scl_prefix_ruby}ruby(rubygems)
|
|
|
ffdb14 |
BuildRequires: %{?scl_prefix_ruby}ruby(release)
|
|
|
ffdb14 |
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
|
|
|
ffdb14 |
BuildRequires: %{?scl_prefix_ruby}rubygem(minitest)
|
|
|
ffdb14 |
BuildRequires: %{?scl_prefix}rubygem(atomic)
|
|
|
ffdb14 |
BuildArch: noarch
|
|
|
ffdb14 |
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|
|
ffdb14 |
|
|
|
ffdb14 |
# Explicitly require runtime subpackage, as long as older scl-utils do not generate it
|
|
|
ffdb14 |
%{?scl:Requires: %{?scl_prefix}runtime}
|
|
|
ffdb14 |
|
|
|
ffdb14 |
%description
|
|
|
ffdb14 |
A collection of data structures and utilities to make thread-safe
|
|
|
ffdb14 |
programming in Ruby easier.
|
|
|
ffdb14 |
|
|
|
ffdb14 |
%package doc
|
|
|
ffdb14 |
Summary: Documentation for %{pkg_name}
|
|
|
ffdb14 |
Group: Documentation
|
|
|
ffdb14 |
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
|
|
|
ffdb14 |
BuildArch: noarch
|
|
|
ffdb14 |
|
|
|
ffdb14 |
%description doc
|
|
|
ffdb14 |
Documentation for %{pkg_name}.
|
|
|
ffdb14 |
|
|
|
ffdb14 |
%prep
|
|
|
ffdb14 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
ffdb14 |
gem unpack %{SOURCE0}
|
|
|
ffdb14 |
%{?scl:EOF}
|
|
|
ffdb14 |
|
|
|
ffdb14 |
%setup -q -D -T -n %{gem_name}-%{version}
|
|
|
ffdb14 |
|
|
|
ffdb14 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
ffdb14 |
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
|
ffdb14 |
%{?scl:EOF}
|
|
|
ffdb14 |
|
|
|
ffdb14 |
# Remove dependency on simplecov and coveralls:
|
|
|
ffdb14 |
%patch0 -p1
|
|
|
ffdb14 |
%patch1 -p1
|
|
|
ffdb14 |
|
|
|
ffdb14 |
# Remove dependency on minitest-reporters:
|
|
|
ffdb14 |
sed -i -e "/minitest\/reporters/d" test/test_helper.rb
|
|
|
ffdb14 |
sed -i -e "/Minitest::Reporters/d" test/test_helper.rb
|
|
|
ffdb14 |
|
|
|
ffdb14 |
%build
|
|
|
ffdb14 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
ffdb14 |
set -e
|
|
|
ffdb14 |
gem build %{gem_name}.gemspec
|
|
|
ffdb14 |
%gem_install
|
|
|
ffdb14 |
%{?scl:EOF}
|
|
|
ffdb14 |
|
|
|
ffdb14 |
|
|
|
ffdb14 |
%install
|
|
|
ffdb14 |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
ffdb14 |
cp -pa .%{gem_dir}/* \
|
|
|
ffdb14 |
%{buildroot}%{gem_dir}/
|
|
|
ffdb14 |
|
|
|
ffdb14 |
%check
|
|
|
ffdb14 |
pushd ./%{gem_instdir}
|
|
|
ffdb14 |
# Skip test_cache_loops.rb for MRI
|
|
|
ffdb14 |
# Apparantly still an issue on Ruby 2.0.0p247 (2013-06-27 revision 41674)
|
|
|
ffdb14 |
# http://bugs.ruby-lang.org/issues/8305
|
|
|
ffdb14 |
#
|
|
|
ffdb14 |
# Skip test_hash.rb for MRI
|
|
|
ffdb14 |
# MRI issue/behaviour since thread_safe doesn't really modify MRI's Hash
|
|
|
ffdb14 |
# https://github.com/headius/thread_safe/issues/10
|
|
|
ffdb14 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
ffdb14 |
ruby -Ilib -e \
|
|
|
ffdb14 |
'Dir.glob "./test/test_{array,cache,helper,synchronized_delegator}.rb", &method(:require)'
|
|
|
ffdb14 |
%{?scl:EOF}
|
|
|
ffdb14 |
popd
|
|
|
ffdb14 |
|
|
|
ffdb14 |
|
|
|
ffdb14 |
%files
|
|
|
ffdb14 |
%{!?_licensedir:%global license %%doc}
|
|
|
ffdb14 |
%dir %{gem_instdir}
|
|
|
ffdb14 |
%{gem_libdir}
|
|
|
ffdb14 |
%{gem_spec}
|
|
|
ffdb14 |
%{gem_instdir}/LICENSE
|
|
|
ffdb14 |
%exclude %{gem_cache}
|
|
|
ffdb14 |
%exclude %{gem_instdir}/ext
|
|
|
ffdb14 |
%exclude %{gem_instdir}/.travis.yml
|
|
|
ffdb14 |
|
|
|
ffdb14 |
%files doc
|
|
|
ffdb14 |
%doc %{gem_docdir}
|
|
|
ffdb14 |
%doc %{gem_instdir}/README.md
|
|
|
ffdb14 |
%{gem_instdir}/examples
|
|
|
ffdb14 |
%{gem_instdir}/Rakefile
|
|
|
ffdb14 |
%{gem_instdir}/Gemfile
|
|
|
ffdb14 |
%{gem_instdir}/%{gem_name}.gemspec
|
|
|
ffdb14 |
%{gem_instdir}/tasks
|
|
|
ffdb14 |
%{gem_instdir}/test
|
|
|
ffdb14 |
%{gem_instdir}/yard-template
|
|
|
ffdb14 |
%exclude %{gem_instdir}/.yardopts
|
|
|
ffdb14 |
|
|
|
ffdb14 |
%changelog
|
|
|
ffdb14 |
* Mon Feb 13 2017 Jun Aruga <jaruga@redhat.com> - 0.3.5-6
|
|
|
ffdb14 |
- Suppress deprecated Fixnum warnings on Ruby 2.4.0.
|
|
|
ffdb14 |
|
|
|
ffdb14 |
* Fri Apr 08 2016 Pavel Valena <pvalena@redhat.com> - 0.3.5-5
|
|
|
ffdb14 |
- Add missing 'popd' to %%check section
|
|
|
ffdb14 |
|
|
|
ffdb14 |
* Mon Feb 22 2016 Pavel Valena <pvalena@redhat.com> - 0.3.5-4
|
|
|
ffdb14 |
- Update to 0.3.5
|
|
|
ffdb14 |
|
|
|
ffdb14 |
* Fri Mar 20 2015 Josef Stribny <jstribny@redhat.com> - 0.3.4-3
|
|
|
ffdb14 |
- Fix provides filtering on RHEL7
|
|
|
ffdb14 |
- Related: rhbz#1203138
|
|
|
ffdb14 |
|
|
|
ffdb14 |
* Wed Mar 18 2015 Josef Stribny <jstribny@redhat.com> - 0.3.4-2
|
|
|
ffdb14 |
- Fix: filter perl(thread_safe) provide out
|
|
|
ffdb14 |
- Resolves: rhbz#1203138
|
|
|
ffdb14 |
|
|
|
ffdb14 |
* Fri Jan 16 2015 Josef Stribny <jstribny@redhat.com> - 0.3.4-1
|
|
|
ffdb14 |
- Update to 0.3.4
|
|
|
ffdb14 |
|
|
|
ffdb14 |
* Tue Feb 04 2014 Josef Stribny <jstribny@redhat.com> - 0.1.3-3
|
|
|
ffdb14 |
- Add Public Domain to licenses
|
|
|
ffdb14 |
|
|
|
ffdb14 |
* Mon Jan 27 2014 Josef Stribny <jstribny@redhat.com> - 0.1.3-2
|
|
|
ffdb14 |
- Fix license to ASL 2.0
|
|
|
ffdb14 |
- Resolves rhbz#1058281
|
|
|
ffdb14 |
|
|
|
ffdb14 |
* Wed Oct 30 2013 Josef Stribny <jstribny@redhat.com> - 0.1.3-1
|
|
|
ffdb14 |
- Update to thread_safe 0.1.3
|
|
|
ffdb14 |
|
|
|
ffdb14 |
* Thu Oct 03 2013 Josef Stribny <jstribny@redhat.com> - 0.1.2-5
|
|
|
ffdb14 |
- Fix macros for -doc sub-package
|
|
|
ffdb14 |
|
|
|
ffdb14 |
* Thu Oct 03 2013 Josef Stribny <jstribny@redhat.com> - 0.1.2-4
|
|
|
ffdb14 |
- Rebuild for scl
|
|
|
ffdb14 |
|
|
|
ffdb14 |
* Tue Jul 30 2013 Josef Stribny <jstribny@redhat.com> - 0.1.2-3
|
|
|
ffdb14 |
- Remove shebang from Rakefile
|
|
|
ffdb14 |
- Add BR: rubygem(atomic)
|
|
|
ffdb14 |
|
|
|
ffdb14 |
* Mon Jul 29 2013 Josef Stribny <jstribny@redhat.com> - 0.1.2-2
|
|
|
ffdb14 |
- Remove JRuby for now
|
|
|
ffdb14 |
|
|
|
ffdb14 |
* Fri Jul 26 2013 Josef Stribny <jstribny@redhat.com> - 0.1.2-1
|
|
|
ffdb14 |
- Update to 0.1.2
|
|
|
ffdb14 |
- Add JRuby support
|
|
|
ffdb14 |
|
|
|
ffdb14 |
* Thu May 09 2013 Josef Stribny <jstribny@redhat.com> - 0.1.0-1
|
|
|
ffdb14 |
- Initial package
|