Author: pawelz                       Date: Mon Dec 29 01:12:41 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- makes building docs optional (do not BR apache-forrest)

---- Files affected:
SPECS:
   batik.spec (1.22 -> 1.23) 

---- Diffs:

================================================================
Index: SPECS/batik.spec
diff -u SPECS/batik.spec:1.22 SPECS/batik.spec:1.23
--- SPECS/batik.spec:1.22       Wed Feb 27 19:37:27 2008
+++ SPECS/batik.spec    Mon Dec 29 02:12:35 2008
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_with    docs            # build with docs (require apache-forrest)
+#
 Summary:       Java SVG support
 Summary(pl.UTF-8):     Wsparcie dla SVG dla języka Java
 Name:          batik
@@ -8,8 +12,9 @@
 Group:         Applications/Publishing/XML/Java
 Source0:       
http://www.apache.org/dist/xmlgraphics/batik/%{name}-src-%{version}.zip
 # Source0-md5: c117ca2241907f62a2b3031167ebf917
+Patch0:                %{name}-nodocs.patch
 URL:           http://xml.apache.org/batik/
-BuildRequires: forrest
+%{?with_docs:BuildRequires:    apache-forrest}
 BuildRequires: jdk
 BuildRequires: jpackage-utils
 BuildRequires: unzip
@@ -39,6 +44,10 @@
 %prep
 %setup -q
 
+%if %{without docs}
+%patch0 -p0
+%endif
+
 %build
 unset CLASSPATH || :
 export JAVA_HOME="%{java_home}"
@@ -64,9 +73,11 @@
 %dir %{_javaclassdir}/%{name}/lib
 %{_javaclassdir}/%{name}/lib/*.jar
 
+%if %{with docs}
 %files doc
 %defattr(644,root,root,755)
 %doc %{name}-%{version}/docs/* %{name}-%{version}/samples
+%endif
 
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -74,6 +85,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.23  2008/12/29 01:12:35  pawelz
+- makes building docs optional (do not BR apache-forrest)
+
 Revision 1.22  2008/02/27 18:37:27  baggins
 - BR forrest
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/batik.spec?r1=1.22&r2=1.23&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to