From 8a761bb51424383889759d482dce0f6bf1fcca13 Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Thu, 4 Aug 2011 09:21:22 -0400 Subject: [PATCH] Initial import. Signed-off-by: Chris Lalancette --- .gitignore | 1 + rubygem-childprocess.spec | 75 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 77 insertions(+) create mode 100644 rubygem-childprocess.spec diff --git a/.gitignore b/.gitignore index e69de29..bf946da 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/childprocess-0.2.0.gem diff --git a/rubygem-childprocess.spec b/rubygem-childprocess.spec new file mode 100644 index 0000000..17dc17d --- /dev/null +++ b/rubygem-childprocess.spec @@ -0,0 +1,75 @@ +%global gemname childprocess + +%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) +%global geminstdir %{gemdir}/gems/%{gemname}-%{version} +%global rubyabi 1.8 + +Summary: A simple and reliable gem for controlling external programs +Name: rubygem-%{gemname} +Version: 0.2.0 +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: ruby(rubygems) +Requires: ruby +Requires: rubygem(ffi) => 1.0.6 +Requires: rubygem(ffi) < 1.1 +BuildRequires: ruby(abi) = %{rubyabi} +BuildRequires: ruby(rubygems) +BuildRequires: ruby +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} +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}/ +rm -f %{buildroot}%{geminstdir}/.document %{buildroot}%{geminstdir}/.gitignore +rm -f %{buildroot}%{geminstdir}/.rspec %{buildroot}%{geminstdir}/Rakefile +rm -f %{buildroot}%{geminstdir}/childprocess.gemspec +rm -f %{buildroot}%{geminstdir}/Gemfile +chmod 644 %{buildroot}%{geminstdir}/lib/childprocess/jruby/process.rb +chmod 644 %{buildroot}%{geminstdir}/lib/childprocess/windows/process.rb +chmod 644 %{buildroot}%{geminstdir}/spec/*.rb + + +%files +%dir %{geminstdir} +%doc %{geminstdir}/LICENSE +%doc %{geminstdir}/README.md +%{geminstdir}/lib +%{gemdir}/cache/%{gemname}-%{version}.gem +%{gemdir}/specifications/%{gemname}-%{version}.gemspec + +%files doc +%doc %{gemdir}/doc/%{gemname}-%{version} +%doc %{geminstdir}/spec + + +%changelog +* Wed Aug 03 2011 Chris Lalancette - 0.2.0-1 +- Initial package diff --git a/sources b/sources index e69de29..862e1bf 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3c5d7cacc3519f1811efa227dea2cc65 childprocess-0.2.0.gem