You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.5 KiB
66 lines
1.5 KiB
14 years ago
|
%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 <mfojtik@redhat.com> - 1.0.1-1
|
||
|
- Initial package
|