[rubygem-POpen4] Initial import (#712909).

Vít Ondruch vondruch at fedoraproject.org
Fri Jul 22 10:35:16 UTC 2011


commit 7719519550a3dd2a6abe77a9709fd27ca641fa0d
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Fri Jul 22 12:34:05 2011 +0200

    Initial import (#712909).

 .gitignore          |    1 +
 rubygem-POpen4.spec |   85 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 87 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d03da43 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/POpen4-0.1.4.gem
diff --git a/rubygem-POpen4.spec b/rubygem-POpen4.spec
new file mode 100644
index 0000000..c00ea9a
--- /dev/null
+++ b/rubygem-POpen4.spec
@@ -0,0 +1,85 @@
+# 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 <vondruch at redhat.com> - 0.1.4-1
+- Initial package
diff --git a/sources b/sources
index e69de29..243016c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+990d557e3cb42c7fdca9f8eae71871d8  POpen4-0.1.4.gem


More information about the scm-commits mailing list