From d6328d41effe199d7200d5d3b18f6312ca622095 Mon Sep 17 00:00:00 2001 From: Bohuslav Kabrda Date: Tue, 24 Jan 2012 07:50:33 +0100 Subject: [PATCH] Rebuilt for Ruby 1.9.3. Updated to 1.3.0 version. Introduced %check section for running tests. --- .gitignore | 1 + rubygem-open4.spec | 59 +++++++++++++++++++++++++++------------------- sources | 2 +- 3 files changed, 37 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index 553d624..03bc7b6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /open4-1.0.1.gem +/open4-1.3.0.gem diff --git a/rubygem-open4.spec b/rubygem-open4.spec index e424b2c..844f993 100644 --- a/rubygem-open4.spec +++ b/rubygem-open4.spec @@ -1,21 +1,20 @@ -%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) -%global gemname open4 -%global geminstdir %{gemdir}/gems/%{gemname}-%{version} -%global rubyabi 1.8 +%global gem_name open4 +%global rubyabi 1.9.1 Summary: Manage child processes and their IO handles easily -Name: rubygem-%{gemname} -Version: 1.0.1 -Release: 3%{?dist} +Name: rubygem-%{gem_name} +Version: 1.3.0 +Release: 1%{?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 +Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem Requires: ruby(abi) = %{rubyabi} -Requires: rubygems -BuildRequires: rubygems +Requires: ruby(rubygems) +BuildRequires: rubygems-devel +BuildRequires: rubygem(minitest) BuildArch: noarch -Provides: rubygem(%{gemname}) = %{version} +Provides: rubygem(%{gem_name}) = %{version} %description Open child process with handles on pid, stdin, stdout, and stderr. @@ -35,32 +34,44 @@ Documentation for %{name} %install rm -rf %{buildroot} -mkdir -p %{buildroot}%{gemdir} -gem install --local --install-dir %{buildroot}%{gemdir} \ +mkdir -p %{buildroot}%{gem_dir} +gem install --local --install-dir %{buildroot}%{gem_dir} \ --force --rdoc %{SOURCE0} +%check +pushd %{buildroot}%{gem_instdir} +testrb -Ilib -Itest/support test/* +popd + %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 +%dir %{gem_instdir} +%{gem_libdir} +%doc %{gem_instdir}/LICENSE +%doc %{gem_instdir}/README +%doc %{gem_instdir}/README.erb +%{gem_cache} +%{gem_spec} %files doc %defattr(-, root, root, -) -%{geminstdir}/Rakefile -%{geminstdir}/samples -%{geminstdir}/white_box -%{geminstdir}/%{gemname}.gemspec -%{gemdir}/doc/%{gemname}-%{version} +%{gem_instdir}/rakefile +%{gem_instdir}/samples +%{gem_instdir}/test +%{gem_instdir}/white_box +%{gem_instdir}/%{gem_name}.gemspec +%{gem_docdir} %changelog +* Tue Jan 24 2012 Bohuslav Kabrda - 1.3.0-1 +- Rebuilt for Ruby 1.9.3. +- Updated to 1.3.0 version. +- Introduced %%check section for running tests. + * Sat Jan 14 2012 Fedora Release Engineering - 1.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild diff --git a/sources b/sources index 10c4328..0931bfa 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -d5d18fc9fc9384ceb53383605ada8211 open4-1.0.1.gem +dc0affafe0138d5f35e45cb34db57ccd open4-1.3.0.gem