|
|
|
%global gem_name childprocess
|
|
|
|
|
|
|
|
|
|
|
|
Summary: A simple and reliable gem for controlling external programs
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 0.5.3
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Group: Development/Languages
|
|
|
|
License: MIT
|
|
|
|
URL: http://github.com/jarib/childprocess
|
|
|
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: rubygem(rspec2)
|
|
|
|
#BuildRequires: rubygem(coveralls)
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%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
|
|
|
|
%gem_install -n %{SOURCE0}
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
|
|
|
|
rm -f %{buildroot}%{gem_instdir}/.document %{buildroot}%{gem_instdir}/.gitignore
|
|
|
|
rm -f %{buildroot}%{gem_instdir}/.rspec %{buildroot}%{gem_instdir}/Rakefile
|
|
|
|
rm -f %{buildroot}%{gem_instdir}/.travis.yml
|
|
|
|
rm -f %{buildroot}%{gem_instdir}/childprocess.gemspec
|
|
|
|
rm -f %{buildroot}%{gem_instdir}/Gemfile
|
|
|
|
chmod 644 %{buildroot}%{gem_libdir}/childprocess/jruby/process.rb
|
|
|
|
chmod 644 %{buildroot}%{gem_libdir}/childprocess/windows/process.rb
|
|
|
|
chmod 644 %{buildroot}%{gem_instdir}/spec/*.rb
|
|
|
|
|
|
|
|
%check
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
# Get rid of coverall dependency
|
|
|
|
sed -i -e '5,6d' spec/spec_helper.rb
|
|
|
|
rspec2 spec
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc %{gem_instdir}/LICENSE
|
|
|
|
%{gem_libdir}
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%{gem_cache}
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%{gem_instdir}/spec
|
|
|
|
%doc %doc %{gem_docdir}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Tue Mar 01 2016 Yaakov Selkowitz <yselkowi@redhat.com> - 0.5.3-5
|
|
|
|
- BR: rubygem-rspec2 (#1308012)
|
|
|
|
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Aug 06 2015 Josef Stribny <jstribny@redhat.com> - 0.5.3-3
|
|
|
|
- Fix FTBFS: Run tests with RSpec2 bin
|
|
|
|
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Aug 28 2014 Josef Stribny <jstribny@redhat.com> - 0.5.3-1
|
|
|
|
- Update childprocess to version 0.5.3
|
|
|
|
|
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.9-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue Sep 23 2013 Mo Morsi <mmorsi@redhat.com> - 0.3.9-1
|
|
|
|
- Update to childprocess 0.3.9
|
|
|
|
|
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.6-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Feb 20 2013 Vít Ondruch <vondruch@redhat.com> - 0.3.6-3
|
|
|
|
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
|
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue Nov 13 2012 Mo Morsi <mmorsi@redhat.com> - 0.3.6-1
|
|
|
|
- Update to childprocess 0.3.6
|
|
|
|
|
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Feb 03 2012 Vít Ondruch <vondruch@redhat.com> - 0.2.0-3
|
|
|
|
- Rebuilt for Ruby 1.9.3.
|
|
|
|
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Aug 03 2011 Chris Lalancette <clalance@redhat.com> - 0.2.0-1
|
|
|
|
- Initial package
|