diff --git a/net-ssh-4.2.0.gem b/net-ssh-4.2.0.gem new file mode 100644 index 0000000000000000000000000000000000000000..0d9fff8ad62128f8617d2ece01b36942605ea032 Binary files /dev/null and b/net-ssh-4.2.0.gem differ diff --git a/rubygem-net-ssh.spec b/rubygem-net-ssh.spec new file mode 100644 index 0000000000000000000000000000000000000000..bcc77cadaeda97ce084834c5e0d33fb4872d6e1e --- /dev/null +++ b/rubygem-net-ssh.spec @@ -0,0 +1,86 @@ +%global pkg_name %{name} +%global gem_name net-ssh + +Summary: Net::SSH: a pure-Ruby implementation of the SSH2 client protocol +Name: rubygem-%{gem_name} +Version: 4.2.0 +Release: 1 +Group: Development/Languages +License: MIT +URL: https://github.com/net-ssh/net-ssh +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +Source1: https://github.com/%{gem_name}/%{gem_name}/archive/refs/tags/v%{version}.tar.gz + +Requires: ruby(release) >= 2 +Requires: ruby(rubygems) +Requires: ruby +BuildRequires: ruby(release) >= 2 +BuildRequires: rubygems-devel +BuildRequires: ruby +BuildArch: noarch +Provides: rubygem(%{gem_name}) = %{version} +Obsoletes: ruby193-rubygem-%{gem_name} + +%description +Net::SSH: a pure-Ruby implementation of the SSH2 client protocol. + +%package doc +Summary: Documentation for %{pkg_name} +Group: Documentation +Requires: %{pkg_name} = %{version}-%{release} +Obsoletes: ruby193-rubygem-%{gem_name}-doc +BuildArch: noarch + +%description doc +Documentation for %{pkg_name} + +%prep +%setup -n %{pkg_name}-%{version} -q -c -T +mkdir -p .%{gem_dir} +%gem_install -n %{SOURCE0} + +%build + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +# file-not-utf8 correction +pushd %{buildroot}%{gem_instdir} +iconv --from=ISO-8859-1 --to=UTF-8 THANKS.txt > THANKS.txt.new && \ +touch -r THANKS.txt THANKS.txt.new && \ +mv THANKS.txt.new THANKS.txt +popd + +find %{buildroot}%{gem_instdir}/support/ -name *.rb -exec \ + sed -ri '1sX/usr/bin/rubyX/usr/bin/env rubyX' {} + + +%files +%defattr(-, root, root, -) +%dir %{gem_instdir} +%{gem_libdir} +%doc %{gem_instdir}/LICENSE.txt +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%defattr(-, root, root, -) +%doc %{gem_docdir} +%doc %{gem_instdir}/README.rdoc +%doc %{gem_instdir}/THANKS.txt +%doc %{gem_instdir}/CHANGES.txt +%{gem_instdir}/Gemfile* +%{gem_instdir}/Manifest +%{gem_instdir}/Rakefile +%{gem_instdir}/support +# Required to run tests +%{gem_instdir}/net-ssh.gemspec +%{gem_instdir}/net-ssh-public_cert.pem +%exclude %{gem_instdir}/.* +%exclude %{gem_instdir}/appveyor.yml +%exclude %{gem_instdir}/ISSUE_TEMPLATE.md + +%changelog +* Mon Jun 07 2021 jiangxinyu - 4.2.0-1 +- Init project \ No newline at end of file diff --git a/v4.2.0.tar.gz b/v4.2.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7404b1123054bb7aa82f6aa34861dffbe88ab5c7 Binary files /dev/null and b/v4.2.0.tar.gz differ