Blame SPECS/rubygem-thread_safe.spec

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