%global gem_name net-scp Summary: A pure Ruby implementation of the SCP client protocol Name: rubygem-%{gem_name} Version: 4.0.0 Release: 7%{?dist} License: MIT URL: https://github.com/net-ssh/net-scp Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem # Tests are not packaged with the gem. You may get them like so: # git clone --no-checkout https://github.com/net-ssh/net-scp # git -C net-scp archive -v --format=tar.gz -o net-scp-4.0.0-test.tar.gz v4.0.0 test Source1: %{gem_name}-%{version}-test.tar.gz # This is required for Mocha 2+ compatibility. # https://github.com/net-ssh/net-scp/commit/5871b93867151a1f7e6bb41bce92bdc5ae083cab Patch0: rubygem-net-scp-4.0.0-Fix-Mocha-deprecation-warning.patch # Fix Mocha > 2.1.0 compatibility # https://github.com/net-ssh/net-scp/pull/74/commits/c3fbf50bd9506892c1869dddec0a643213358b73 Patch1: rubygem-mocha-2.6.1-Fix-rake-test-fails-with-mocha-2-1-0-72.patch BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: rubygem(base64) BuildRequires: rubygem(net-ssh) BuildRequires: rubygem(mocha) BuildRequires: rubygem(test-unit) BuildArch: noarch %description A pure Ruby implementation of the SCP client protocol %package doc Summary: Documentation for %{name} Requires:%{name} = %{version}-%{release} %description doc Documentation for %{name} %prep %setup -q -n %{gem_name}-%{version} -b1 pushd %{_builddir} %patch 0 -p1 %patch 1 -p1 popd %build gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -pa .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} ln -s %{_builddir}/test . ruby -Ilib:test test/test_all.rb popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.* %{gem_libdir} %license %{gem_instdir}/LICENSE.txt %exclude %{gem_cache} %{gem_spec} %exclude %{gem_instdir}/setup.rb %files doc %{gem_instdir}/Manifest %{gem_instdir}/Rakefile %{gem_instdir}/Gemfile %{gem_instdir}/net-scp.gemspec %{gem_instdir}/net-scp-public_cert.pem %doc %{gem_instdir}/README.rdoc %doc %{gem_instdir}/CHANGES.txt %doc %{gem_docdir} %changelog * Tue Dec 03 2024 Vít Ondruch - 4.0.0-7 - Fix Mocha > 2.1.0 compatibility * Sun Nov 10 2024 Mamoru TASAKA - 4.0.0-6 - Add BR: rubygem(base64) explicitly for ruby34 * Fri Jul 19 2024 Fedora Release Engineering - 4.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 4.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Aug 02 2023 Vít Ondruch - 4.0.0-3 - Fix Mocha 2+ compatibility. * Fri Jul 21 2023 Fedora Release Engineering - 4.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed May 03 2023 Zdenek Zambersky - 4.0.0-1 - Update to net-ssh 4.0.0 * Fri Jan 20 2023 Fedora Release Engineering - 3.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 3.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 3.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 3.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Mar 23 2021 Pavel Valena - 3.0.0-1 - Update to net-scp 3.0.0. Resolves: rhbz#1690888 * Wed Jan 27 2021 Fedora Release Engineering - 1.2.1-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.2.1-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Apr 03 2020 Vít Ondruch - 1.2.1-13 - Fix the Ruby 2.7 compatibility (rhbz#1800021). * Thu Jan 30 2020 Fedora Release Engineering - 1.2.1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.2.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.2.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1.2.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 1.2.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.2.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Feb 27 2017 Vít Ondruch - 1.2.1-6 - Fix FTBFS due to Net::SSH 4.0+ changes. * Sat Feb 11 2017 Fedora Release Engineering - 1.2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Aug 11 2016 Vít Ondruch - 1.2.1-4 - Fix FTBFS due to incompatibility with latest net-ssh. * Thu Feb 04 2016 Fedora Release Engineering - 1.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 1.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Jun 17 2014 Vít Ondruch - 1.2.1-1 - Update to net-scp 1.2.1. * Sun Jun 08 2014 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu May 09 2013 Vít Ondruch - 1.1.0-1 - Update to net-scp 1.1.0. * Fri Mar 08 2013 Vít Ondruch - 1.0.4-7 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Thu Feb 14 2013 Fedora Release Engineering - 1.0.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 1.0.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jan 31 2012 Bohuslav Kabrda - 1.0.4-4 - Rebuilt for Ruby 1.9.3. * Sat Jan 14 2012 Fedora Release Engineering - 1.0.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Thu Mar 17 2011 Vít Ondruch - 1.0.4-2 - Removed obsolete cleanup. - Removed explicit requires. * Tue Feb 08 2011 Vít Ondruch - 1.0.4-1 - Initial package