package init
This commit is contained in:
parent
420ae7c5dc
commit
2c744a001a
71
rubygem-thread_safe.spec
Normal file
71
rubygem-thread_safe.spec
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
%global gem_name thread_safe
|
||||||
|
Name: rubygem-%{gem_name}
|
||||||
|
Version: 0.3.6
|
||||||
|
Release: 1
|
||||||
|
Summary: Thread-safe collections and utilities for Ruby
|
||||||
|
License: ASL 2.0 and Public Domain
|
||||||
|
URL: https://github.com/ruby-concurrency/thread_safe
|
||||||
|
Source0: https://rubygems.org/gems/thread_safe-%{version}.gem
|
||||||
|
BuildRequires: ruby(release) rubygems-devel ruby rubygem(atomic) rubygem(rspec)
|
||||||
|
BuildArch: noarch
|
||||||
|
%description
|
||||||
|
A collection of data structures and utilities to make thread-safe
|
||||||
|
programming in Ruby easier.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation for %{name}
|
||||||
|
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
|
||||||
|
|
||||||
|
%build
|
||||||
|
gem build %{gem_name}.gemspec
|
||||||
|
%gem_install
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
|
cp -a .%{gem_dir}/* \
|
||||||
|
%{buildroot}%{gem_dir}/
|
||||||
|
sed -i -e 's|^#!/usr/bin/env ruby|#!/usr/bin/ruby|' \
|
||||||
|
%{buildroot}%{gem_instdir}/examples/bench_cache.rb
|
||||||
|
|
||||||
|
%check
|
||||||
|
pushd ./%{gem_instdir}
|
||||||
|
sed -i "/^require 'simplecov'/ s/^/#/" spec/spec_helper.rb
|
||||||
|
sed -i "/^SimpleCov.formatter/,/^end$/ s/^/#/" spec/spec_helper.rb
|
||||||
|
sed -i "/^require 'coveralls'/ s/^/#/" spec/spec_helper.rb
|
||||||
|
sed -i "/logger/ s/^/#/" spec/spec_helper.rb
|
||||||
|
rspec -Ilib spec
|
||||||
|
|
||||||
|
%files
|
||||||
|
%dir %{gem_instdir}
|
||||||
|
%exclude %{gem_instdir}/.*
|
||||||
|
%license %{gem_instdir}/LICENSE
|
||||||
|
%exclude %{gem_instdir}/ext
|
||||||
|
%{gem_libdir}
|
||||||
|
%exclude %{gem_instdir}/thread_safe.gemspec
|
||||||
|
%exclude %{gem_cache}
|
||||||
|
%{gem_spec}
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%doc %{gem_docdir}
|
||||||
|
%{gem_instdir}/Gemfile
|
||||||
|
%doc %{gem_instdir}/README.md
|
||||||
|
%{gem_instdir}/Rakefile
|
||||||
|
%{gem_instdir}/examples
|
||||||
|
%{gem_instdir}/spec
|
||||||
|
%exclude %{gem_instdir}/spec/.gitignore
|
||||||
|
%exclude %{gem_instdir}/spec/support/.gitignore
|
||||||
|
%exclude %{gem_instdir}/spec/thread_safe/.gitignore
|
||||||
|
%{gem_instdir}/tasks
|
||||||
|
%{gem_instdir}/yard-template
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Aug 10 2020 yanan li <liyanan032@huawei.com> - 0.3.6-1
|
||||||
|
- Package init
|
||||||
5
rubygem-thread_safe.yaml
Normal file
5
rubygem-thread_safe.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
git_url: https://github.com/ruby-concurrency/thread_safe.git
|
||||||
|
version_control: github
|
||||||
|
src_repo: ruby-concurrency/thread_safe
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
BIN
thread_safe-0.3.6.gem
Normal file
BIN
thread_safe-0.3.6.gem
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user