58 lines
1.4 KiB
RPMSpec
58 lines
1.4 KiB
RPMSpec
|
|
%global gem_name open4
|
||
|
|
Summary: Manage child processes and their IO handles easily
|
||
|
|
Name: rubygem-open4
|
||
|
|
Version: 1.3.4
|
||
|
|
Release: 1
|
||
|
|
License: BSD or Ruby
|
||
|
|
URL: http://github.com/ahoward/open4/
|
||
|
|
Source0: https://rubygems.org/gems/open4-%{version}.gem
|
||
|
|
BuildRequires: rubygems-devel rubygem(minitest)
|
||
|
|
BuildArch: noarch
|
||
|
|
%description
|
||
|
|
Open child process with handles on pid, stdin, stdout, and stderr.
|
||
|
|
Manage child processes and their IO handles easily.
|
||
|
|
|
||
|
|
%package doc
|
||
|
|
Summary: Documentation for rubygem-open4
|
||
|
|
Requires: rubygem-open4 = %{version}-%{release}
|
||
|
|
%description doc
|
||
|
|
Documentation for rubygem-open4
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -q -c -T
|
||
|
|
%gem_install -n %{SOURCE0}
|
||
|
|
|
||
|
|
%build
|
||
|
|
|
||
|
|
%install
|
||
|
|
mkdir -p %{buildroot}%{gem_dir}
|
||
|
|
cp -pa .%{gem_dir}/* \
|
||
|
|
%{buildroot}%{gem_dir}/
|
||
|
|
sed -i '/#!.*env ruby/d' %{buildroot}%{gem_instdir}/samples/jesse-caldwell.rb
|
||
|
|
|
||
|
|
%check
|
||
|
|
pushd .%{gem_instdir}
|
||
|
|
ruby -Ilib:test/lib -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
||
|
|
popd
|
||
|
|
|
||
|
|
%files
|
||
|
|
%dir %{gem_instdir}
|
||
|
|
%{gem_libdir}
|
||
|
|
%doc %{gem_instdir}/LICENSE
|
||
|
|
%doc %{gem_instdir}/README
|
||
|
|
%doc %{gem_instdir}/README.erb
|
||
|
|
%exclude %{gem_cache}
|
||
|
|
%{gem_spec}
|
||
|
|
|
||
|
|
%files doc
|
||
|
|
%{gem_instdir}/rakefile
|
||
|
|
%{gem_instdir}/samples
|
||
|
|
%{gem_instdir}/test
|
||
|
|
%{gem_instdir}/white_box
|
||
|
|
%{gem_instdir}/open4.gemspec
|
||
|
|
%doc %{gem_docdir}
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Mon Jul 27 2020 yaokai <yaokai13@huawei.com> - 1.3.4-1
|
||
|
|
- package init
|