%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %global gemname open4 %global geminstdir %{gemdir}/gems/%{gemname}-%{version} %global rubyabi 1.8 Summary: Manage child processes and their IO handles easily Name: rubygem-%{gemname} Version: 1.0.1 Release: 2%{?dist} Group: Development/Languages License: GPLv2+ or Ruby URL: http://github.com/ahoward/open4/tree/master Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem Requires: ruby(abi) = %{rubyabi} Requires: rubygems BuildRequires: rubygems BuildArch: noarch Provides: rubygem(%{gemname}) = %{version} %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 %{name} Group: Documentation Requires:%{name} = %{version}-%{release} %description doc Documentation for %{name} %prep %build %install rm -rf %{buildroot} mkdir -p %{buildroot}%{gemdir} gem install --local --install-dir %{buildroot}%{gemdir} \ --force --rdoc %{SOURCE0} %clean rm -rf %{buildroot} %files %defattr(-, root, root, -) %dir %{geminstdir} %{geminstdir}/lib %doc %{geminstdir}/README %doc %{geminstdir}/README.erb %{gemdir}/cache/%{gemname}-%{version}.gem %{gemdir}/specifications/%{gemname}-%{version}.gemspec %files doc %defattr(-, root, root, -) %{geminstdir}/Rakefile %{geminstdir}/samples %{geminstdir}/white_box %{geminstdir}/%{gemname}.gemspec %{gemdir}/doc/%{gemname}-%{version} %changelog * Wed Feb 09 2011 Fedora Release Engineering - 1.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Oct 13 2010 Michal Fojtik - 1.0.1-1 - Initial package