]>
Commit | Line | Data |
---|---|---|
2d348c81 ER |
1 | # TODO: |
2 | # - what to do with net subdir? | |
548b5fee | 3 | %define pkgname net-ssh |
fb5caf8c JB |
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 | |
548b5fee JR |
6 | Name: ruby-%{pkgname} |
7 | Version: 2.0.20 | |
29eacde3 | 8 | Release: 3 |
99e4d3c9 | 9 | License: Ruby License |
548b5fee JR |
10 | Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem |
11 | # Source0-md5: 68fbaa033678be355fb93422d6062f79 | |
99e4d3c9 | 12 | Group: Development/Languages |
548b5fee | 13 | URL: http://github.com/net-ssh/net-ssh |
99e4d3c9 ZU |
14 | BuildRequires: rpmbuild(macros) >= 1.484 |
15 | BuildRequires: ruby >= 1:1.8.6 | |
16 | BuildRequires: ruby-modules | |
17 | %{?ruby_mod_ver_requires_eq} | |
5db4b3ab | 18 | Provides: ruby-Net-SSH |
29eacde3 | 19 | Obsoletes: ruby-Net-SSH |
99e4d3c9 ZU |
20 | #BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | # nothing to be placed there. we're not noarch only because of ruby packaging | |
24 | %define _enable_debug_packages 0 | |
25 | ||
26 | %description | |
27 | Net::SSH is a pure-Ruby implementation of the SSH2 client protocol. | |
28 | ||
fb5caf8c JB |
29 | %description -l pl.UTF-8 |
30 | Net::SSH to implementacja protokołu klienckiego SSH2 w czystym Rubym. | |
31 | ||
99e4d3c9 | 32 | %package rdoc |
548b5fee JR |
33 | Summary: HTML documentation for %{pkgname} |
34 | Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname} | |
99e4d3c9 ZU |
35 | Group: Documentation |
36 | Requires: ruby >= 1:1.8.7-4 | |
37 | ||
38 | %description rdoc | |
548b5fee | 39 | HTML documentation for %{pkgname}. |
fb5caf8c JB |
40 | |
41 | %description rdoc -l pl.UTF-8 | |
548b5fee JR |
42 | Dokumentacja w formacie HTML dla %{pkgname}. |
43 | ||
44 | %package ri | |
45 | Summary: ri documentation for %{pkgname} | |
46 | Summary(pl.UTF-8): Dokumentacja w formacie ri dla %{pkgname} | |
47 | Group: Documentation | |
48 | Requires: ruby | |
49 | ||
50 | %description ri | |
51 | ri documentation for %{pkgname}. | |
52 | ||
53 | %description ri -l pl.UTF-8 | |
54 | Dokumentacji w formacie ri dla %{pkgname}. | |
99e4d3c9 ZU |
55 | |
56 | %prep | |
548b5fee JR |
57 | %setup -q -c |
58 | %{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz | |
59 | find -newer README.rdoc -o -print | xargs touch --reference %{SOURCE0} | |
99e4d3c9 ZU |
60 | |
61 | %build | |
62 | rdoc --ri --op ri lib | |
63 | rdoc --op rdoc lib | |
548b5fee JR |
64 | rm -r ri/{OpenSSL,String,Net/cdesc-Net.yaml} |
65 | rm ri/created.rid | |
99e4d3c9 ZU |
66 | |
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}} | |
548b5fee | 70 | |
99e4d3c9 ZU |
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} | |
74 | ||
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %files | |
79 | %defattr(644,root,root,755) | |
80 | %doc CHANGELOG.rdoc README.rdoc THANKS.rdoc | |
2d348c81 ER |
81 | # XXX? |
82 | %dir %{ruby_rubylibdir}/net | |
2d348c81 ER |
83 | %{ruby_rubylibdir}/net/ssh.rb |
84 | %{ruby_rubylibdir}/net/ssh | |
99e4d3c9 ZU |
85 | |
86 | %files rdoc | |
87 | %defattr(644,root,root,755) | |
88 | %{ruby_rdocdir}/%{name}-%{version} | |
548b5fee JR |
89 | |
90 | %files ri | |
29eacde3 | 91 | %defattr(644,root,root,755) |
548b5fee | 92 | # XXX? |
2d348c81 ER |
93 | %dir %{ruby_ridir}/Net |
94 | %{ruby_ridir}/Net/SSH |