rubygem-open4/rubygem-open4.spec

61 lines
1.6 KiB
RPMSpec
Raw Permalink Normal View History

2020-08-19 10:57:57 +08:00
%global gem_name open4
Summary: Manage child processes and their IO handles easily
Name: rubygem-open4
Version: 1.3.4
2020-08-22 09:48:58 +08:00
Release: 2
2020-08-19 10:57:57 +08:00
License: BSD or Ruby
URL: http://github.com/ahoward/open4/
Source0: https://rubygems.org/gems/open4-%{version}.gem
2020-08-22 09:48:58 +08:00
BuildRequires: rubygems-devel rubygem(minitest) rubygem(did_you_mean)
2020-08-19 10:57:57 +08:00
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
2020-08-22 09:48:58 +08:00
* Thu Mar 3 2022 liyanan <liyanan32@huawei.com> - 1.3.4-2
- Add buildrequires rubygem(did_you_mean)
2020-08-19 10:57:57 +08:00
* Mon Jul 27 2020 yaokai <yaokai13@huawei.com> - 1.3.4-1
- package init