Author: pawelz                       Date: Mon Dec 29 02:13:13 2008 GMT
Module: SPECS                         Tag: DEVEL
---- Log message:
- added bcond with tests
- with_tests BR: xmlunit
- updated TODO
- does not build

---- Files affected:
SPECS:
   fop.spec (1.36.2.2 -> 1.36.2.3) 

---- Diffs:

================================================================
Index: SPECS/fop.spec
diff -u SPECS/fop.spec:1.36.2.2 SPECS/fop.spec:1.36.2.3
--- SPECS/fop.spec:1.36.2.2     Mon Dec 29 02:58:24 2008
+++ SPECS/fop.spec      Mon Dec 29 03:13:07 2008
@@ -2,7 +2,24 @@
 # TODO:
 # - Some test fails. Reason of some failures is obvious:
 #   [junit] No X11 DISPLAY variable was set, but this program performed an 
operation which requires it.
-#   what should we do? Skip these tests? Skip all tests? add bcond --without 
test?
+# - Does not builds:
+#   [javac] 
/home/users/z/rpm/BUILD/fop-0.95/test/java/org/apache/fop/intermediate/AreaTreeParserTestCase.java:103:
+#cannot find symbol
+#   [javac] symbol  : variable super
+#   [javac] location: class org.apache.fop.intermediate.AreaTreeParserTestCase
+#   [javac]         super.setUp();
+#   [javac]         ^
+#   [javac] 
/home/users/z/rpm/BUILD/fop-0.95/test/java/org/apache/fop/intermediate/AreaTreeParserTestCase.java:137:
+#cannot find symbol
+#   [javac] symbol  : method
+#assertXMLEqual(org.w3c.dom.Document,org.w3c.dom.Document)
+#   [javac] location: class org.apache.fop.intermediate.AreaTreeParserTestCase
+#   [javac]         assertXMLEqual(intermediate, doc);
+#   [javac]         ^
+#   some BRs are missing?
+#
+# Conditional build:
+%bcond_without  tests           # build without tests
 #
 Summary:       XSL Formatter in Java
 Summary(pl.UTF-8):     Formater XSL napisany w Javie
@@ -18,10 +35,11 @@
 URL:           http://xmlgrapics.apache.org/fop/
 BuildRequires: batik
 BuildRequires: jdk >= 1.3
-BuildRequires: junit
+%{?with_tests:BuildRequires:   junit}
 BuildRequires: rpmbuild(macros) >= 1.300
 BuildRequires: xalan-j
 BuildRequires: xerces-j
+%{?with_tests:BuildRequires:   xmlunit}
 Requires:      batik
 Requires:      freetype1
 Requires:      jpackage-utils
@@ -60,7 +78,11 @@
 export JAVAC=%{javac}
 export JAVA=%{java}
 
-%ant
+%ant \
+%if %{with tests}
+       -Djunit.present=false \
+       -Dxmlunit.present=false
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -95,6 +117,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.36.2.3  2008/12/29 02:13:07  pawelz
+- added bcond with tests
+- with_tests BR: xmlunit
+- updated TODO
+- does not build
+
 Revision 1.36.2.2  2008/12/29 01:58:24  pawelz
 - up to 0.95
 - merged changes from HEAD
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/fop.spec?r1=1.36.2.2&r2=1.36.2.3&f=u

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

Reply via email to