packages: ruby-builder/ruby-builder.spec - bcond docs

aredridel aredridel at pld-linux.org
Fri Mar 19 09:02:10 CET 2010


Author: aredridel                    Date: Fri Mar 19 08:02:10 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- bcond docs

---- Files affected:
packages/ruby-builder:
   ruby-builder.spec (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: packages/ruby-builder/ruby-builder.spec
diff -u packages/ruby-builder/ruby-builder.spec:1.12 packages/ruby-builder/ruby-builder.spec:1.13
--- packages/ruby-builder/ruby-builder.spec:1.12	Mon Mar  1 19:59:36 2010
+++ packages/ruby-builder/ruby-builder.spec	Fri Mar 19 09:02:01 2010
@@ -1,5 +1,6 @@
 # $Revision$, $Date$
 %define pkgname builder
+%bcond_without 	doc
 Summary:	Simple builder to facilitate programatic generation of XML markup
 Summary(pl.UTF-8):	Proste narzędzie do budowania ułatwiające programowe generowanie znaczników XML
 Name:		ruby-%{pkgname}
@@ -55,18 +56,22 @@
 find -newer README  -o -print | xargs touch --reference %{SOURCE0}
 
 %build
+%if %{with doc}
 rdoc --op rdoc lib
 rdoc --ri --op ri lib
 rm ri/created.rid
 rm -r ri/{BlankSlate,Fixnum,Kernel,Module,Object,String}
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}}
 
 cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
+%if %{with doc}
 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
@@ -78,12 +83,17 @@
 %{ruby_rubylibdir}/builder.rb
 
 %files rdoc
+%if %{with doc}
 %defattr(644,root,root,755)
 %{ruby_rdocdir}/%{name}-%{version}
+%endif
 
 %files ri
+%if %{with doc}
 %defattr(644,root,root,755)
 %{ruby_ridir}/Builder
+%endif
+
 
 %define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -91,6 +101,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.13  2010/03/19 08:02:01  aredridel
+- bcond docs
+
 Revision 1.12  2010/03/01 18:59:36  baggins
 - use gem source
 - added ri package
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ruby-builder/ruby-builder.spec?r1=1.12&r2=1.13&f=u



More information about the pld-cvs-commit mailing list