# Generated from POpen4-0.1.4.gem by gem2rpm -*- rpm-spec -*- %global gemname POpen4 %global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %global geminstdir %{gemdir}/gems/%{gemname}-%{version} %global rubyabi 1.8 Summary: Open4 cross-platform Name: rubygem-%{gemname} Version: 0.1.4 Release: 1%{?dist} Group: Development/Languages License: GPLv2 or Ruby URL: http://github.com/pka/popen4 Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem Requires: ruby(abi) = %{rubyabi} Requires: ruby(rubygems) Requires: ruby Requires: rubygem(Platform) >= 0.4.0 Requires: rubygem(open4) BuildRequires: ruby(abi) = %{rubyabi} BuildRequires: ruby(rubygems) BuildRequires: ruby BuildRequires: rubygem(Platform) >= 0.4.0 BuildRequires: rubygem(open4) BuildArch: noarch Provides: rubygem(%{gemname}) = %{version} %description POpen4 provides the Rubyist a single API across platforms for executing a command in a child process with handles on stdout, stderr, stdin streams as well as access to the process ID and exit status. It does very little other than to provide an easy way to use either Ara Howard’s Open4 library or the win32-popen3 library by Park Heesob and Daniel Berger depending on your platform and without having to code around the slight differences in their APIs. %package doc Summary: Documentation for %{name} Group: Documentation Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name} %prep %setup -q -c -T mkdir -p .%{gemdir} gem install --local --install-dir .%{gemdir} \ --force %{SOURCE0} %build %install mkdir -p %{buildroot}%{gemdir} cp -a .%{gemdir}/* \ %{buildroot}%{gemdir}/ %check pushd %{buildroot}%{geminstdir} testrb tests/*_test.rb popd %files %dir %{geminstdir} %doc %{geminstdir}/LICENSE %{geminstdir}/lib %{gemdir}/cache/%{gemname}-%{version}.gem %{gemdir}/specifications/%{gemname}-%{version}.gemspec %files doc %doc %{gemdir}/doc/%{gemname}-%{version} %doc %{geminstdir}/CHANGES %doc %{geminstdir}/Rakefile %doc %{geminstdir}/README.rdoc %doc %{geminstdir}/VERSION %{geminstdir}/tests %changelog * Mon Jun 13 2011 Vít Ondruch - 0.1.4-1 - Initial package