2 # - what to do with net subdir?
3 %define pkgname net-ssh
4 Summary: Net::SSH - a pure-Ruby implementation of the SSH2 client protocol
5 Summary(pl.UTF-8): Net::SSH - implementacja protokołu klienckiego SSH2 w czystym Rubym
10 Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
11 # Source0-md5: 68fbaa033678be355fb93422d6062f79
12 Group: Development/Languages
13 URL: http://github.com/net-ssh/net-ssh
14 BuildRequires: rpmbuild(macros) >= 1.484
15 BuildRequires: ruby >= 1:1.8.6
16 BuildRequires: ruby-modules
17 %{?ruby_mod_ver_requires_eq}
18 Provides: ruby-Net-SSH
19 Obsoletes: ruby-Net-SSH
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 # nothing to be placed there. we're not noarch only because of ruby packaging
24 %define _enable_debug_packages 0
27 Net::SSH is a pure-Ruby implementation of the SSH2 client protocol.
29 %description -l pl.UTF-8
30 Net::SSH to implementacja protokołu klienckiego SSH2 w czystym Rubym.
33 Summary: HTML documentation for %{pkgname}
34 Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
36 Requires: ruby >= 1:1.8.7-4
39 HTML documentation for %{pkgname}.
41 %description rdoc -l pl.UTF-8
42 Dokumentacja w formacie HTML dla %{pkgname}.
45 Summary: ri documentation for %{pkgname}
46 Summary(pl.UTF-8): Dokumentacja w formacie ri dla %{pkgname}
51 ri documentation for %{pkgname}.
53 %description ri -l pl.UTF-8
54 Dokumentacji w formacie ri dla %{pkgname}.
58 %{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
59 find -newer README.rdoc -o -print | xargs touch --reference %{SOURCE0}
64 rm -r ri/{OpenSSL,String}
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}}
71 cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
72 cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
73 cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
76 rm -rf $RPM_BUILD_ROOT
79 %defattr(644,root,root,755)
80 %doc CHANGELOG.rdoc README.rdoc THANKS.rdoc
82 %dir %{ruby_rubylibdir}/net
83 %{ruby_rubylibdir}/net/ssh.rb
84 %{ruby_rubylibdir}/net/ssh
87 %defattr(644,root,root,755)
88 %{ruby_rdocdir}/%{name}-%{version}
91 %defattr(644,root,root,755)
93 %dir %{ruby_ridir}/Net