3 %bcond_with tests # build without tests
6 Summary: SSHKit makes it easy to write structured, testable SSH commands in Ruby
11 Group: Development/Languages
12 Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
13 # Source0-md5: 4eb808cf5a4ac954328fdc1965f5e232
14 URL: http://github.com/capistrano/sshkit
15 BuildRequires: rpm-rubyprov
16 BuildRequires: rpmbuild(macros) >= 1.656
18 BuildRequires: ruby-minitest >= 5.0.0
19 BuildRequires: ruby-minitest-reporters
20 BuildRequires: ruby-mocha
21 BuildRequires: ruby-rake
22 BuildRequires: ruby-rubocop
23 BuildRequires: ruby-unindent
25 Requires: ruby-net-scp >= 1.1.2
26 Requires: ruby-net-ssh >= 2.8.0
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 A comprehensive toolkit for remotely running commands in a structured
32 manner on groups of servers.
35 %setup -q -n %{pkgname}-%{version}
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
44 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
45 cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
52 %{ruby_vendorlibdir}/%{pkgname}.rb
53 %{ruby_vendorlibdir}/%{pkgname}
54 %dir %{ruby_vendorlibdir}/core_ext
55 %{ruby_vendorlibdir}/core_ext/array.rb
56 %{ruby_vendorlibdir}/core_ext/hash.rb
57 %{ruby_specdir}/%{pkgname}-%{version}.gemspec