SPECS: ruby.spec - added `%%bcond_without doc': skip generating so...

twittner twittner at pld-linux.org
Mon Dec 25 15:57:14 CET 2006


Author: twittner                     Date: Mon Dec 25 14:57:14 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added `%%bcond_without doc': skip generating some generated docs
  which is time-consuming. Intended for speed up test builds.

---- Files affected:
SPECS:
   ruby.spec (1.144 -> 1.145) 

---- Diffs:

================================================================
Index: SPECS/ruby.spec
diff -u SPECS/ruby.spec:1.144 SPECS/ruby.spec:1.145
--- SPECS/ruby.spec:1.144	Mon Dec 25 15:40:09 2006
+++ SPECS/ruby.spec	Mon Dec 25 15:57:08 2006
@@ -1,6 +1,7 @@
 # $Revision$, $Date$
 #
 # Conditional build:
+%bcond_without	doc	# skip generating docs (which is time-consuming). Intended for speed up test builds
 %bcond_without	emacs	# skip building package with ruby-mode for emacs
 #
 %define		ruby_ver	1.8
@@ -239,6 +240,7 @@
 %{__make} clean -C %{name}-texi-1.4-en
 %{__make} info -C %{name}-texi-1.4-en
 
+%if %{with doc}
 mkdir rdoc
 
 RUBYLIB="lib:`find ext/ .ext/ -type d | tr '\n' ':'`"
@@ -271,6 +273,7 @@
 	lib/generator.rb lib/logger.rb lib/matrix.rb lib/observer.rb lib/pathname.rb \
 	lib/set.rb lib/shellwords.rb lib/singleton.rb lib/tempfile.rb \
 	lib/test/unit.rb lib/thread.rb lib/thwait.rb lib/time.rb lib/yaml.rb
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -291,7 +294,7 @@
 cp -Rf ruby-uguide guide
 cp -Rf rubyfaq faq
 
-cp -Rf ri/%{ruby_ver}/system/* $RPM_BUILD_ROOT%{ruby_ridir}
+%{?with_doc:cp -Rf ri/%{ruby_ver}/system/* $RPM_BUILD_ROOT%{ruby_ridir}}
 
 # ruby emacs mode - borrowed from FC-4
 %if %{with emacs}
@@ -410,11 +413,14 @@
 
 %files doc
 %defattr(644,root,root,755)
-%doc faq guide rdoc
+%doc faq guide
+%{?with_doc:%doc rdoc}
 
+%if %{with doc}
 %files doc-ri
 %defattr(644,root,root,755)
 %{_datadir}/ri/%{ruby_ver}/system/*
+%endif
 
 %files examples
 %defattr(644,root,root,755)
@@ -435,6 +441,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.145  2006/12/25 14:57:08  twittner
+- added `%%bcond_without doc': skip generating some generated docs
+  which is time-consuming. Intended for speed up test builds.
+
 Revision 1.144  2006/12/25 14:40:09  twittner
 - further fixes related to /lib64/:
   remove %%_ulibdir = /usr/lib from %%files - older packages
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/ruby.spec?r1=1.144&r2=1.145&f=u



More information about the pld-cvs-commit mailing list