commit
7af790bccb
@ -1,22 +1,19 @@
|
||||
%bcond_with bootstrap
|
||||
%global gem_name eventmachine
|
||||
%{!?network: %global network 0}
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 1.2.7
|
||||
Release: 1
|
||||
Summary: Ruby/EventMachine library
|
||||
License: GPLv2 or Ruby
|
||||
URL: http://rubyeventmachine.com
|
||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||
Patch0: rubygem-eventmachine-1.2.7-OpenSSL-1.1.0-test-updates.patch
|
||||
Patch1: rubygem-eventmachine-1.2.7-Update-runtime-files-for-TLS13-no-SSL-OpenSSL-lib-info.patch
|
||||
Patch2: rubygem-eventmachine-1.2.7-Move-console-SSL-Info-code-to-em_test_helper.patch
|
||||
Patch3: rubygem-eventmachine-1.2.7-Openssl-1.1.1-updates.patch
|
||||
BuildRequires: ruby(release)
|
||||
BuildRequires: rubygems-devel
|
||||
BuildRequires: ruby-devel
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: rubygem(test-unit)
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 1.2.7
|
||||
Release: 2
|
||||
Summary: Ruby/EventMachine library
|
||||
License: GPLv2 or Ruby
|
||||
URL: http://rubyeventmachine.com
|
||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||
Patch0: rubygem-eventmachine-1.2.7-OpenSSL-1.1.0-test-updates.patch
|
||||
Patch1: rubygem-eventmachine-1.2.7-Update-runtime-files-for-TLS13-no-SSL-OpenSSL-lib-info.patch
|
||||
Patch2: rubygem-eventmachine-1.2.7-Move-console-SSL-Info-code-to-em_test_helper.patch
|
||||
Patch3: rubygem-eventmachine-1.2.7-Openssl-1.1.1-updates.patch
|
||||
BuildRequires: ruby(release) rubygems-devel ruby-devel gcc-c++ openssl-devel
|
||||
BuildRequires: rubygem(test-unit)
|
||||
%description
|
||||
EventMachine implements a fast, single-threaded engine for arbitrary network
|
||||
communications. It's extremely easy to use in Ruby. EventMachine wraps all
|
||||
@ -30,9 +27,9 @@ of EventMachine is to enable programs to easily interface with other programs
|
||||
using TCP/IP, especially if custom protocols are required.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
Summary: Documentation for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
%description doc
|
||||
Documentation for %{name}.
|
||||
|
||||
@ -56,6 +53,7 @@ mkdir -p %{buildroot}%{gem_extdir_mri}
|
||||
cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/
|
||||
rm -rf %{buildroot}%{gem_instdir}/ext/
|
||||
|
||||
%if %{with bootstrap}
|
||||
%check
|
||||
pushd .%{gem_instdir}
|
||||
ruby -Ilib:$(dirs +1)%{gem_extdir_mri}:tests -e "Dir.glob './tests/**/test_*.rb', &method(:require)" -- \
|
||||
@ -81,6 +79,7 @@ ruby -Ilib:$(dirs +1)%{gem_extdir_mri}:tests -e "Dir.glob './tests/**/test_*.rb'
|
||||
--ignore-name=/^test_nameserver$/ \
|
||||
%endif
|
||||
popd
|
||||
%endif
|
||||
|
||||
%files
|
||||
%dir %{gem_instdir}
|
||||
@ -102,5 +101,8 @@ popd
|
||||
%{gem_instdir}/tests
|
||||
|
||||
%changelog
|
||||
* Sat Sep 5 2020 liyanan <liyanan32@huawei.com> - 1.2.7-2
|
||||
- fix build fail
|
||||
|
||||
* Sat Jul 25 2020 wutao <wutao61@huawei.com> - 1.2.7-1
|
||||
- package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user