Blame rubygem-thread_safe.spec

Josef Stribny 4548e6b
# Generated from thread_safe-0.1.0.gem by gem2rpm -*- rpm-spec -*-
Josef Stribny 4548e6b
%global gem_name thread_safe
Josef Stribny 4548e6b
Josef Stribny 4548e6b
Name: rubygem-%{gem_name}
ef6089e
Version: 0.3.6
6686a29
Release: 8%{?dist}
Josef Stribny 4548e6b
Summary: Thread-safe collections and utilities for Ruby
Josef Stribny 66eadcf
# jsr166e.LondAdder, jsr166e.Striped64, jsr166e.ConcurrentHashMapV8
Josef Stribny 66eadcf
# and their Ruby ports are Public Domain
Josef Stribny 66eadcf
License: ASL 2.0 and Public Domain
4180aa3
URL: https://github.com/ruby-concurrency/thread_safe
Josef Stribny 4548e6b
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Josef Stribny 4548e6b
BuildRequires: ruby(release)
Josef Stribny 4548e6b
BuildRequires: rubygems-devel
ef6089e
BuildRequires: ruby
Josef Stribny 4548e6b
BuildRequires: rubygem(atomic)
ef6089e
BuildRequires: rubygem(rspec)
Josef Stribny 4548e6b
BuildArch: noarch
Josef Stribny 4548e6b
Josef Stribny 4548e6b
%description
Josef Stribny 4548e6b
A collection of data structures and utilities to make thread-safe
Josef Stribny 4548e6b
programming in Ruby easier.
Josef Stribny 4548e6b
Josef Stribny 4548e6b
Josef Stribny 4548e6b
%package doc
Josef Stribny 4548e6b
Summary: Documentation for %{name}
Josef Stribny 4548e6b
Requires: %{name} = %{version}-%{release}
Josef Stribny 4548e6b
BuildArch: noarch
Josef Stribny 4548e6b
Josef Stribny 4548e6b
%description doc
4180aa3
Documentation for %{name}.
Josef Stribny 4548e6b
Josef Stribny 4548e6b
%prep
Josef Stribny 4548e6b
gem unpack %{SOURCE0}
Josef Stribny 4548e6b
Josef Stribny 4548e6b
%setup -q -D -T -n  %{gem_name}-%{version}
Josef Stribny 4548e6b
Josef Stribny 4548e6b
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
Josef Stribny 4548e6b
Josef Stribny 4548e6b
%build
Josef Stribny 4548e6b
gem build %{gem_name}.gemspec
Josef Stribny 4548e6b
%gem_install
Josef Stribny 4548e6b
Josef Stribny 4548e6b
%install
Josef Stribny 4548e6b
mkdir -p %{buildroot}%{gem_dir}
ef6089e
cp -a .%{gem_dir}/* \
Josef Stribny 4548e6b
        %{buildroot}%{gem_dir}/
Josef Stribny 4548e6b
ef6089e
# Fix for rpmlint
ef6089e
sed -i -e 's|^#!/usr/bin/env ruby|#!/usr/bin/ruby|' \
ef6089e
  %{buildroot}%{gem_instdir}/examples/bench_cache.rb
ef6089e
Josef Stribny 4548e6b
%check
Josef Stribny 4548e6b
pushd ./%{gem_instdir}
ef6089e
sed -i "/^require 'simplecov'/ s/^/#/" spec/spec_helper.rb
ef6089e
sed -i "/^SimpleCov.formatter/,/^end$/ s/^/#/" spec/spec_helper.rb
ef6089e
sed -i "/^require 'coveralls'/ s/^/#/" spec/spec_helper.rb
ef6089e
sed -i "/logger/ s/^/#/" spec/spec_helper.rb
ef6089e
rspec -Ilib spec
Josef Stribny 4548e6b
Josef Stribny 4548e6b
%files
Josef Stribny 4548e6b
%dir %{gem_instdir}
ef6089e
%exclude %{gem_instdir}/.*
4180aa3
%license %{gem_instdir}/LICENSE
Josef Stribny 4548e6b
%exclude %{gem_instdir}/ext
ef6089e
%{gem_libdir}
ef6089e
%exclude %{gem_instdir}/thread_safe.gemspec
ef6089e
%exclude %{gem_cache}
ef6089e
%{gem_spec}
Josef Stribny 4548e6b
Josef Stribny 4548e6b
%files doc
Josef Stribny 4548e6b
%doc %{gem_docdir}
ef6089e
%{gem_instdir}/Gemfile
Josef Stribny 4548e6b
%doc %{gem_instdir}/README.md
Josef Stribny 4548e6b
%{gem_instdir}/Rakefile
ef6089e
%{gem_instdir}/examples
ef6089e
%{gem_instdir}/spec
ef6089e
# Remove .gitignore files for rpmlint
ef6089e
# https://github.com/ruby-concurrency/thread_safe/pull/31
ef6089e
%exclude %{gem_instdir}/spec/.gitignore
ef6089e
%exclude %{gem_instdir}/spec/support/.gitignore
ef6089e
%exclude %{gem_instdir}/spec/thread_safe/.gitignore
4180aa3
%{gem_instdir}/tasks
4180aa3
%{gem_instdir}/yard-template
Josef Stribny 4548e6b
Josef Stribny 4548e6b
Josef Stribny 4548e6b
%changelog
6686a29
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.6-8
6686a29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6686a29
53a367d
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.6-7
53a367d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
53a367d
3ed29d2
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.6-6
3ed29d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3ed29d2
d9592a1
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.6-5
d9592a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d9592a1
0871e56
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.6-4
0871e56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0871e56
19e90f5
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.6-3
19e90f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
19e90f5
503e713
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.6-2
503e713
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
503e713
ef6089e
* Mon Jul 03 2017 rebase-helper <rebase-helper@localhost.local> - 0.3.6-1
ef6089e
- Update to 0.3.6
ef6089e
834b4c2
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-4
834b4c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
834b4c2
bdd6ce7
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-3
bdd6ce7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
bdd6ce7
eaafd11
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-2
eaafd11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
eaafd11
4180aa3
* Tue Mar 24 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.3.5-1
4180aa3
- Update to 0.3.5
4180aa3
- New upstream URL.
4180aa3
- Remove extraneous BR: ruby. This is covered by BR: ruby(release).
4180aa3
- Patch to make simplecov and coveralls optional dependencies.
4180aa3
- Remove optional minitest/reporters dependency.
4180aa3
- Drop Rakefile shebang removal. This is fixed upstream.
4180aa3
- Use %%license macro.
4180aa3
Josef Stribny d823cbd
* Mon Aug 18 2014 Josef Stribny <jstribny@redhat.com> - 0.3.4-1
Josef Stribny d823cbd
- Update to 0.3.4
Josef Stribny d823cbd
00029d3
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-2
00029d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
00029d3
Josef Stribny ec63b1f
* Tue Apr 08 2014 Josef Stribny <jstribny@redhat.com> - 0.3.3-1
Josef Stribny ec63b1f
- Update to 0.3.3
Josef Stribny ec63b1f
Josef Stribny 66eadcf
* Tue Feb 04 2014 Josef Stribny <jstribny@redhat.com> - 0.1.3-3
Josef Stribny 66eadcf
- Add Public Domain to licenses
Josef Stribny 66eadcf
Josef Stribny eab4488
* Mon Jan 27 2014 Josef Stribny <jstribny@redhat.com> - 0.1.3-2
Josef Stribny eab4488
- Fix license
Josef Stribny eab4488
Josef Stribny 6e74494
* Wed Oct 30 2013 Josef Stribny <jstribny@redhat.com> - 0.1.3-1
Josef Stribny 6e74494
- Update to thread_safe 0.1.3
Josef Stribny 6e74494
Josef Stribny 4548e6b
* Tue Jul 30 2013 Josef Stribny <jstribny@redhat.com> - 0.1.2-3
Josef Stribny 4548e6b
- Remove shebang from Rakefile
Josef Stribny 4548e6b
- Add BR: rubygem(atomic)
Josef Stribny 4548e6b
Josef Stribny 4548e6b
* Mon Jul 29 2013 Josef Stribny <jstribny@redhat.com> - 0.1.2-2
Josef Stribny 4548e6b
- Remove JRuby for now
Josef Stribny 4548e6b
Josef Stribny 4548e6b
* Fri Jul 26 2013 Josef Stribny <jstribny@redhat.com> - 0.1.2-1
Josef Stribny 4548e6b
- Update to 0.1.2
Josef Stribny 4548e6b
- Add JRuby support
Josef Stribny 4548e6b
Josef Stribny 4548e6b
* Thu May 09 2013 Josef Stribny <jstribny@redhat.com> - 0.1.0-1
Josef Stribny 4548e6b
- Initial package