2 Summary: Open4 cross-platform
6 License: GPL v2+ or Ruby
7 Group: Development/Languages
8 Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
9 # Source0-md5: b09ff3770ac69ae7a218b82be1e038cb
10 URL: http://github.com/shairontoledo/popen4
11 BuildRequires: rpm-rubyprov
12 BuildRequires: rpmbuild(macros) >= 1.656
13 Requires: ruby-open4 >= 0.4.0
14 Requires: ruby-platform < 1.0.0
15 Requires: ruby-platform >= 0.4.0
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 POpen4 provides the Rubyist a single API across platforms for
21 executing a command in a child process with handles on stdout, stderr,
22 stdin streams as well as access to the process ID and exit status.
25 %setup -q -n %{pkgname}-%{version}
28 rm -rf $RPM_BUILD_ROOT
29 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir}}
30 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
33 rm -rf $RPM_BUILD_ROOT
36 %defattr(644,root,root,755)
37 %doc README.rdoc CHANGES LICENSE
38 %{ruby_vendorlibdir}/%{pkgname}.rb