From a7238c50d593526b80269f4fa86011059fad2af8 Mon Sep 17 00:00:00 2001 From: Michal Fojtik Date: Sun, 17 Oct 2010 16:22:00 +0200 Subject: [PATCH] Initial import --- .gitignore | 1 + rubygem-open4.spec | 65 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 67 insertions(+) create mode 100644 rubygem-open4.spec diff --git a/.gitignore b/.gitignore index e69de29..553d624 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/open4-1.0.1.gem diff --git a/rubygem-open4.spec b/rubygem-open4.spec new file mode 100644 index 0000000..fe6910c --- /dev/null +++ b/rubygem-open4.spec @@ -0,0 +1,65 @@ +%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: 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 +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 Oct 13 2010 Michal Fojtik - 1.0.1-1 +- Initial package diff --git a/sources b/sources index e69de29..10c4328 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d5d18fc9fc9384ceb53383605ada8211 open4-1.0.1.gem