[projects/template-specs] add doc bcond
glen
glen at pld-linux.org
Mon Nov 4 10:31:03 CET 2013
commit d2252ce8438f442142979040737562afca8ebb43
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Nov 4 11:30:48 2013 +0200
add doc bcond
ruby.spec | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/ruby.spec b/ruby.spec
index 9b2f400..f57ebd2 100644
--- 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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/0740ff29dda28b7cbcae26bfde574812b60f6ae7
More information about the pld-cvs-commit
mailing list