This repository has been archived by the owner on Jan 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rubygem-thread_safe.spec
134 lines (107 loc) · 3.62 KB
/
rubygem-thread_safe.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# Generated from thread_safe-0.1.0.gem by gem2rpm -*- rpm-spec -*-
%global gem_name thread_safe
Name: rubygem-%{gem_name}
Version: 0.3.6
Release: 1%{?dist}
Summary: Thread-safe collections and utilities for Ruby
Group: Development/Languages
# jsr166e.LondAdder, jsr166e.Striped64, jsr166e.ConcurrentHashMapV8
# and their Ruby ports are Public Domain
License: ASL 2.0 and Public Domain
URL: https://github.com/ruby-concurrency/thread_safe
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Requires: ruby(release)
Requires: ruby(rubygems)
BuildRequires: ruby(release)
BuildRequires: ruby
BuildRequires: rubygems-devel
BuildRequires: rubygem(atomic)
BuildRequires: rubygem(simplecov)
BuildRequires: rubygem(coveralls)
BuildRequires: rubygem(rspec) >= 3.2
BuildRequires: rubygem(rspec) < 4
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
%description
A collection of data structures and utilities to make thread-safe
programming in Ruby easier.
%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}
%prep
gem unpack %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
# Remove shebang from non-executable Rakefile
sed -i '1d' Rakefile
%build
gem build %{gem_name}.gemspec
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -pa .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%check
pushd ./%{gem_instdir}
# Skip test_cache_loops.rb for MRI
# Apparantly still an issue on Ruby 2.0.0p247 (2013-06-27 revision 41674)
# http://bugs.ruby-lang.org/issues/8305
#
# Skip test_hash.rb for MRI
# MRI issue/behaviour since thread_safe doesn't really modify MRI's Hash
# https://github.com/headius/thread_safe/issues/10
# ruby -Ilib -e \
# 'Dir.glob "./test/test_{array,cache,helper,synchronized_delegator}.rb", &method(:require)'
rspec --exclude-pattern spec/**/hash*.spec --color --backtrace \
--tag ~unfinished --seed 1 --format documentation ./spec
%files
%dir %{gem_instdir}
%{gem_instdir}/.rspec
%{gem_libdir}
%{gem_spec}
%license %{gem_instdir}/LICENSE
%exclude %{gem_cache}
%exclude %{gem_instdir}/ext
%exclude %{gem_instdir}/.travis.yml
%exclude %{gem_instdir}/.yardopts
%exclude %{gem_instdir}/tasks
%exclude %{gem_instdir}/yard-template
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/README.md
%{gem_instdir}/examples
%{gem_instdir}/Rakefile
%{gem_instdir}/Gemfile
%{gem_instdir}/%{gem_name}.gemspec
%{gem_instdir}/spec
%changelog
* Thu Jun 29 2017 Rich Megginson <[email protected]> - 0.3.6-1
- Update to 0.3.6
* Fri Sep 16 2016 Rich Megginson <[email protected]> - 0.3.5-1
- Update to 0.3.5
* Mon Aug 18 2014 Josef Stribny <[email protected]> - 0.3.4-1
- Update to 0.3.4
* Sun Jun 08 2014 Fedora Release Engineering <[email protected]> - 0.3.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Tue Apr 08 2014 Josef Stribny <[email protected]> - 0.3.3-1
- Update to 0.3.3
* Tue Feb 04 2014 Josef Stribny <[email protected]> - 0.1.3-3
- Add Public Domain to licenses
* Mon Jan 27 2014 Josef Stribny <[email protected]> - 0.1.3-2
- Fix license
* Wed Oct 30 2013 Josef Stribny <[email protected]> - 0.1.3-1
- Update to thread_safe 0.1.3
* Tue Jul 30 2013 Josef Stribny <[email protected]> - 0.1.2-3
- Remove shebang from Rakefile
- Add BR: rubygem(atomic)
* Mon Jul 29 2013 Josef Stribny <[email protected]> - 0.1.2-2
- Remove JRuby for now
* Fri Jul 26 2013 Josef Stribny <[email protected]> - 0.1.2-1
- Update to 0.1.2
- Add JRuby support
* Thu May 09 2013 Josef Stribny <[email protected]> - 0.1.0-1
- Initial package