diff --git a/open4-1.3.4.gem b/open4-1.3.4.gem new file mode 100644 index 0000000..34dc1fb Binary files /dev/null and b/open4-1.3.4.gem differ diff --git a/rubygem-open4.spec b/rubygem-open4.spec new file mode 100644 index 0000000..cac525b --- /dev/null +++ b/rubygem-open4.spec @@ -0,0 +1,60 @@ +%global gem_name open4 +Summary: Manage child processes and their IO handles easily +Name: rubygem-open4 +Version: 1.3.4 +Release: 2 +License: BSD or Ruby +URL: http://github.com/ahoward/open4/ +Source0: https://rubygems.org/gems/open4-%{version}.gem +BuildRequires: rubygems-devel rubygem(minitest) rubygem(did_you_mean) +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 +* Thu Mar 3 2022 liyanan - 1.3.4-2 +- Add buildrequires rubygem(did_you_mean) + +* Mon Jul 27 2020 yaokai - 1.3.4-1 +- package init diff --git a/rubygem-open4.yaml b/rubygem-open4.yaml new file mode 100644 index 0000000..e97e0a9 --- /dev/null +++ b/rubygem-open4.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/ahoward/open4 +version_control: github +src_repo: ahoward/open4 +tag_prefix: "^" +seperator: "."