[packages/ruby-net-sftp] package gemspec
glen
glen at pld-linux.org
Sun Dec 14 22:36:19 CET 2014
commit b34c2d504de19967445c48072baacf1a7f037295
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Dec 14 23:36:14 2014 +0200
package gemspec
ruby-net-sftp.spec | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/ruby-net-sftp.spec b/ruby-net-sftp.spec
index 80f23fe..feb3bf7 100644
--- a/ruby-net-sftp.spec
+++ b/ruby-net-sftp.spec
@@ -62,21 +62,29 @@ Dokumentacji w formacie ri dla %{pkgname}.
%setup -q -n %{pkgname}-%{version}
%build
+# write .gemspec
+%__gem_helper spec
+
+%if %{with doc}
rdoc --inline-source --op rdoc lib
rdoc --ri --op ri lib
rm -r ri/Net/SSH
rm -r ri/Net/cdesc-Net.ri
rm ri/*.rid
rm ri/cache.ri
+%endif
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
+%if %{with doc}
install -d $RPM_BUILD_ROOT{%{ruby_ridir},%{ruby_rdocdir}/%{name}-%{version}}
cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
cp -a rdoc/* $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
+%endif
%clean
rm -rf $RPM_BUILD_ROOT
@@ -85,6 +93,7 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%{ruby_vendorlibdir}/net/sftp.rb
%{ruby_vendorlibdir}/net/sftp
+%{ruby_specdir}/%{pkgname}-%{version}.gemspec
%if %{with doc}
%files rdoc
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-net-sftp.git/commitdiff/b34c2d504de19967445c48072baacf1a7f037295
More information about the pld-cvs-commit
mailing list