%global gem_name childprocess Name: rubygem-%{gem_name} Version: 4.1.0 Release: 8%{?dist} Summary: A gem for controlling external programs running in the background License: MIT URL: http://github.com/enkessler/childprocess Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # Fix `validates cleanly` spec compatibility with RubyGems 3.5+ # https://github.com/enkessler/childprocess/pull/193 Patch0: rubygem-childprocess-4.1.0-Make-validates-cleanly-spec-compatible-with-RubyGems-3-5-.patch BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: rubygem(ffi) BuildRequires: rubygem(rspec) >= 3 BuildArch: noarch # posix_spaw is not implemented everywhere, use just Intel for build. ExclusiveArch: %{ix86} x86_64 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} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %patch 0 -p1 %build gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # We don't care about code coverage. sed -i '/[cC]overalls/ s/^/#/' spec/spec_helper.rb # Disable validity of .gemspec check, since it requires Git and it is not super # important. sed -i "/gemspec.validate/ s/^/#/" spec/childprocess_spec.rb # We need Unicode support to pass "ChildProcess allows unicode characters # in the environment" test case. LC_ALL=C.UTF-8 RUBYOPT=-Ilib rspec spec # Disable test failing for posix-spawn # https://github.com/enkessler/childprocess/issues/173 sed -i '/^\s*it "can write to stdin interactively if duplex = true" do$/ a \ skip' spec/io_spec.rb # Test also posix_spawn, which requires FFI. CHILDPROCESS_POSIX_SPAWN=true LC_ALL=C.UTF-8 RUBYOPT=-Ilib rspec spec popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.* %license %{gem_instdir}/LICENSE %{gem_libdir} %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.md %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/appveyor.yml %{gem_instdir}/childprocess.gemspec %{gem_instdir}/spec %changelog * Fri Jan 26 2024 Fedora Release Engineering - 4.1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 4.1.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Dec 20 2023 Vít Ondruch - 4.1.0-6 - Fix specs for compatibility with RubyGems 3.5+ / Ruby 3.3+. * Fri Jul 21 2023 Fedora Release Engineering - 4.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 4.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 4.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 4.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Sep 17 2021 Pavel Valena - 4.1.0-1 - Update to childprocess 4.1.0. Resolves: rhbz#1733782 * Fri Jul 23 2021 Fedora Release Engineering - 1.0.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 1.0.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.0.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 1.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Jun 11 2019 Vít Ondruch - 1.0.1-3 - Remove unnecessary Rake dependency. * Fri Jun 07 2019 Vít Ondruch - 1.0.1-2 - posix_spaw is not implemented everywhere, use just Intel for build. * Wed Jun 05 2019 Vít Ondruch - 1.0.1-1 - Update to childprocess 1.0.1. * Sat Feb 02 2019 Fedora Release Engineering - 0.5.9-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 0.5.9-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 0.5.9-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.5.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.5.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Jan 2 2017 Mamoru TASAKA - 0.5.9-1 - 0.5.9 * Tue Mar 01 2016 Yaakov Selkowitz - 0.5.3-5 - BR: rubygem-rspec2 (#1308012) * Thu Feb 04 2016 Fedora Release Engineering - 0.5.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Aug 06 2015 Josef Stribny - 0.5.3-3 - Fix FTBFS: Run tests with RSpec2 bin * Thu Jun 18 2015 Fedora Release Engineering - 0.5.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Aug 28 2014 Josef Stribny - 0.5.3-1 - Update childprocess to version 0.5.3 * Sun Jun 08 2014 Fedora Release Engineering - 0.3.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Sep 23 2013 Mo Morsi - 0.3.9-1 - Update to childprocess 0.3.9 * Sun Aug 04 2013 Fedora Release Engineering - 0.3.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Feb 20 2013 Vít Ondruch - 0.3.6-3 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Thu Feb 14 2013 Fedora Release Engineering - 0.3.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Nov 13 2012 Mo Morsi - 0.3.6-1 - Update to childprocess 0.3.6 * Sat Jul 21 2012 Fedora Release Engineering - 0.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Feb 03 2012 Vít Ondruch - 0.2.0-3 - Rebuilt for Ruby 1.9.3. * Sat Jan 14 2012 Fedora Release Engineering - 0.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Aug 03 2011 Chris Lalancette - 0.2.0-1 - Initial package