|
|
|
@ -2,18 +2,15 @@
|
|
|
|
|
|
|
|
|
|
Summary: Manage child processes and their IO handles easily
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 1.3.0
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Version: 1.3.4
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
License: BSD or Ruby
|
|
|
|
|
URL: http://github.com/ahoward/open4/tree/master
|
|
|
|
|
Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
Requires: ruby(release)
|
|
|
|
|
Requires: ruby(rubygems)
|
|
|
|
|
URL: http://github.com/ahoward/open4/
|
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
|
BuildRequires: rubygem(minitest)
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Open child process with handles on pid, stdin, stdout, and stderr.
|
|
|
|
@ -28,43 +25,46 @@ Requires:%{name} = %{version}-%{release}
|
|
|
|
|
Documentation for %{name}
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -c -T
|
|
|
|
|
%gem_install -n %{SOURCE0}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
|
%gem_install -n %{SOURCE0} -d %{buildroot}%{gem_dir}
|
|
|
|
|
cp -pa .%{gem_dir}/* \
|
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
|
|
# Fix rpmlint warning.
|
|
|
|
|
sed -i '/#!.*env ruby/d' %{buildroot}%{gem_instdir}/samples/jesse-caldwell.rb
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
pushd %{buildroot}%{gem_instdir}
|
|
|
|
|
testrb -Ilib -Itest/support test/*
|
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
ruby -Ilib:test/lib -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-, root, root, -)
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
|
%{gem_libdir}
|
|
|
|
|
%doc %{gem_instdir}/LICENSE
|
|
|
|
|
%doc %{gem_instdir}/README
|
|
|
|
|
%doc %{gem_instdir}/README.erb
|
|
|
|
|
%{gem_cache}
|
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%defattr(-, root, root, -)
|
|
|
|
|
%{gem_instdir}/rakefile
|
|
|
|
|
%{gem_instdir}/samples
|
|
|
|
|
%{gem_instdir}/test
|
|
|
|
|
%{gem_instdir}/white_box
|
|
|
|
|
%{gem_instdir}/%{gem_name}.gemspec
|
|
|
|
|
%{gem_docdir}
|
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Jul 16 2014 Vít Ondruch <vondruch@redhat.com> - 1.3.4-1
|
|
|
|
|
- Update to popen4 1.3.4.
|
|
|
|
|
|
|
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|