[packages/ruby-iconv] add gemspec
glen
glen at pld-linux.org
Fri Aug 29 11:26:52 CEST 2014
commit 002a6655e0031fc6ceee8a3d06688df240681198
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Aug 29 12:26:50 2014 +0300
add gemspec
ruby-iconv.spec | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/ruby-iconv.spec b/ruby-iconv.spec
index 4221798..3c79b50 100644
--- a/ruby-iconv.spec
+++ b/ruby-iconv.spec
@@ -44,6 +44,9 @@ Dokumentacji w formacie ri dla %{pkgname}.
%setup -q -n %{pkgname}-%{version}
%build
+# write .gemspec
+%__gem_helper spec
+
cd ext/%{pkgname}
%{__ruby} extconf.rb
%{__make} \
@@ -62,13 +65,15 @@ rm ri/{page-Makefile.ri,page-mkmf_log.ri}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_vendorarchdir}/iconv,%{ruby_ridir},%{ruby_rdocdir}}
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_vendorarchdir}/iconv,%{ruby_specdir},%{ruby_ridir},%{ruby_rdocdir}}
install -p ext/%{pkgname}/%{pkgname}.so $RPM_BUILD_ROOT%{ruby_vendorarchdir}/iconv
cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
cp -a ext/%{pkgname}/ri/* $RPM_BUILD_ROOT%{ruby_ridir}
cp -a ext/%{pkgname}/rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
+cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -79,6 +84,7 @@ rm -rf $RPM_BUILD_ROOT
%{ruby_vendorlibdir}/iconv
%dir %{ruby_vendorarchdir}/iconv
%attr(755,root,root) %{ruby_vendorarchdir}/iconv/iconv.so
+%{ruby_specdir}/%{pkgname}-%{version}.gemspec
%files rdoc
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-iconv.git/commitdiff/002a6655e0031fc6ceee8a3d06688df240681198
More information about the pld-cvs-commit
mailing list