代码拉取完成,页面将自动刷新
%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: 2
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
* Sun Apr 24 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 4.2.0-2
- Modify changelog and add yaml file
* Tue Jun 22 2021 jiangxinyu <jiangxinyu@kylinos.cn> - 4.2.0-1
- Init project
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。