# Generated from childprocess-0.1.9.gem by gem2rpm -*- rpm-spec -*- %global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %global gemname childprocess %global geminstdir %{gemdir}/gems/%{gemname}-%{version} %global rubyabi 1.8 Summary: Solution for controlling external programs running in the background Name: rubygem-%{gemname} Version: 0.1.9 Release: 1%{?dist} Group: Development/Languages License: MIT URL: http://github.com/jarib/childprocess Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem Requires: ruby(abi) = %{rubyabi} Requires: rubygems BuildRequires: ruby(abi) = %{rubyabi} BuildRequires: rubygems # Keep requiring rspec-core as long as rubygem(rspec) is provided by RSpec 1.x BuildRequires: rubygem(rspec-core) BuildArch: noarch Provides: rubygem(%{gemname}) = %{version} %description This gem aims at being a simple and reliable solution for controlling external programs running in the background on any Ruby / OS combination. %package doc Summary: Documentation for %{name} Group: Documentation Requires:%{name} = %{version}-%{release} %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}/ # Fix anything executable that does not have a shebang. for file in `find %{buildroot}%{geminstdir} -type f -perm /a+x`; do [ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file done # Remove the FFI dependency, since it is required just for windows. sed -i -e "/%q/d" \ %{buildroot}%{gemdir}/specifications/%{gemname}-%{version}.gemspec %check pushd %{buildroot}%{geminstdir} rspec spec popd %files %dir %{geminstdir} %{geminstdir}/LICENSE %exclude %{geminstdir}/.* %{geminstdir}/lib %{gemdir}/cache/%{gemname}-%{version}.gem %{gemdir}/specifications/%{gemname}-%{version}.gemspec %files doc %{geminstdir}/Gemfile %{geminstdir}/Rakefile %{geminstdir}/README.rdoc %{geminstdir}/childprocess.gemspec %doc %{gemdir}/doc/%{gemname}-%{version} %{geminstdir}/spec %changelog * Mon May 23 2011 Vít Ondruch - 0.1.9-1 - Initial package