]> git.pld-linux.org Git - projects/template-specs.git/blobdiff - ruby.spec
add doc bcond
[projects/template-specs.git] / ruby.spec
index 9b2f40096d123f5cf532456e192cada3c41639c0..f57ebd22e5b5ad680ba5cecdf7ea3deb8f8543e9 100644 (file)
--- a/ruby.spec
+++ b/ruby.spec
@@ -4,6 +4,7 @@
 #
 # Conditional build:
 %bcond_without tests           # build without tests
+%bcond_without doc                     # don't build ri/rdoc
 
 %define pkgname MODULE_NAME
 Summary:       -
@@ -154,6 +155,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{ruby_vendorarchdir}/%{pkgname}_ext.so
 %{ruby_specdir}/%{pkgname}-%{version}.gemspec
 
+%if %{with doc}
 %files rdoc
 %defattr(644,root,root,755)
 %{ruby_rdocdir}/%{name}-%{version}
@@ -161,3 +163,4 @@ rm -rf $RPM_BUILD_ROOT
 %files ri
 %defattr(644,root,root,755)
 %{ruby_ridir}/%{pkgname}
+%endif
This page took 0.139477 seconds and 4 git commands to generate.