Hello community,

here is the log from the commit of package xerces-j2 for openSUSE:Factory 
checked in at 2017-10-06 10:55:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xerces-j2 (Old)
 and      /work/SRC/openSUSE:Factory/.xerces-j2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "xerces-j2"

Fri Oct  6 10:55:13 2017 rev:39 rq:530905 version:2.11.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/xerces-j2/xerces-j2.changes      2017-05-31 
13:30:35.329200637 +0200
+++ /work/SRC/openSUSE:Factory/.xerces-j2.new/xerces-j2.changes 2017-10-06 
10:55:15.323683793 +0200
@@ -1,0 +2,9 @@
+Tue Oct  3 15:33:36 UTC 2017 - [email protected]
+
+- Added patch:
+  * xerces-2_11_0-jdk7.patch
+    + Dummy implementation of the getContentDocument() in common
+      DOM API, in order to be able to build with jdk >= 1.6
+- Specify java source and target level 1.6 and don't depend on gcj
+
+-------------------------------------------------------------------

New:
----
  xerces-2_11_0-jdk7.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ xerces-j2.spec ++++++
--- /var/tmp/diff_new_pack.7Pbp0B/_old  2017-10-06 10:55:16.251543548 +0200
+++ /var/tmp/diff_new_pack.7Pbp0B/_new  2017-10-06 10:55:16.255542944 +0200
@@ -33,22 +33,14 @@
 # PATCH-FIX-UPSTREAM bnc#814241 XERCESJ-1616
 Patch0:         arrays-doubling.patch
 Patch1:         scan-pseudo-attribute.patch
+Patch2:         xerces-2_11_0-jdk7.patch
 BuildRequires:  dos2unix
-# some build requirements removed to enable jpackage bootstrap. this is
-# the first package built, and we use the libraries in the tools subdir
-# for it.
-#!BuildIgnore:  java-9-openjdk java-9-openjdk-devel
-#!BuildIgnore:  java-1_8_0-openjdk java-1_8_0-openjdk-devel
-#!BuildIgnore:  java-1_7_0-openjdk java-1_7_0-openjdk-devel
-#!BuildIgnore:  java-1_6_0-openjdk java-1_6_0-openjdk-devel
-#!BuildIgnore:  antlr antlr-java
-BuildRequires:  java-1_5_0-gcj-compat-devel
+BuildRequires:  java-devel >= 1.6
 BuildRequires:  javapackages-tools
 BuildRequires:  unzip
 Requires(post): update-alternatives
 Requires(pre):  update-alternatives
 Provides:       jaxp_parser_impl
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
 
 %description
@@ -167,9 +159,10 @@
 find -type f -print |xargs -i dos2unix {}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
-echo 'javac.target=1.5' > build.properties
-echo 'javac.source=1.5' >> build.properties
+echo 'javac.target=1.6' > build.properties
+echo 'javac.source=1.6' >> build.properties
 
 sed -i 's/\r//' LICENSE README NOTICE build.sh
 
@@ -177,9 +170,8 @@
 ## this uses the ant.jar provided by the xerces packages. Tough luck,
 # jpackage bootstrap has to start somewhere. It is not installed,
 # though.
-export JAVA_HOME=%{_libdir}/jvm/java-1.5.0-gcj
 export GC_MAXIMUM_HEAP_SIZE="134217728"
-export CLASSPATH=$CLASSPATH:`build-classpath antlr-bootstrap`
+export CLASSPATH=$CLASSPATH:$(build-classpath antlr-bootstrap)
 sh build.sh jars
 #ant tests test
 
@@ -238,7 +230,6 @@
 fi
 
 %files
-%defattr(0644,root,root,0755)
 %doc LICENSE README
 %{_javadir}/%{name}-%{version}.jar
 %{_javadir}/%{name}.jar
@@ -246,25 +237,21 @@
 %ghost %{_sysconfdir}/alternatives/jaxp_parser_impl.jar
 
 %files xml-apis
-%defattr(0644,root,root,0755)
 %{_javadir}/%{name}-%{version}-xml-apis.jar
 %{_javadir}/%{name}-xml-apis.jar
 %{_javadir}/xml-commons-apis.jar
 %ghost %{_sysconfdir}/alternatives/xml-commons-apis.jar
 
 %files xml-resolver
-%defattr(0644,root,root,0755)
 %{_javadir}/%{name}-%{version}-xml-resolver.jar
 %{_javadir}/%{name}-xml-resolver.jar
 %{_javadir}/xml-commons-resolver.jar
 %ghost %{_sysconfdir}/alternatives/xml-commons-resolver.jar
 
 %files demo
-%defattr(0644,root,root,0755)
 %{_datadir}/%{name}
 
 %files scripts
-%defattr(-,root,root)
 %{_bindir}/*
 %{_mandir}/man1/*
 

++++++ xerces-2_11_0-jdk7.patch ++++++
--- xerces-2_11_0/src/org/apache/html/dom/HTMLFrameElementImpl.java     
2010-11-26 21:42:02.000000000 +0100
+++ xerces-2_11_0/src/org/apache/html/dom/HTMLFrameElementImpl.java     
2017-10-03 17:28:29.096819783 +0200
@@ -17,6 +17,7 @@
 package org.apache.html.dom;
 
 import org.w3c.dom.html.HTMLFrameElement;
+import org.w3c.dom.Document;
 
 /**
  * @xerces.internal
@@ -127,6 +128,11 @@
         setAttribute( "src", src );
     }
 
+       public Document getContentDocument()
+       {
+               return null;
+       }
+
     
     /**
      * Constructor requires owner document.
--- xerces-2_11_0/src/org/apache/html/dom/HTMLIFrameElementImpl.java    
2010-11-26 21:42:08.000000000 +0100
+++ xerces-2_11_0/src/org/apache/html/dom/HTMLIFrameElementImpl.java    
2017-10-03 17:28:12.576819720 +0200
@@ -17,6 +17,7 @@
 package org.apache.html.dom;
 
 import org.w3c.dom.html.HTMLIFrameElement;
+import org.w3c.dom.Document;
 
 /**
  * @xerces.internal
@@ -150,6 +151,11 @@
         setAttribute( "width", width );
     }
 
+       public Document getContentDocument()
+       {
+               return null;
+       }
+
     
     /**
      * Constructor requires owner document.
--- xerces-2_11_0/src/org/apache/html/dom/HTMLObjectElementImpl.java    
2010-11-26 21:42:05.000000000 +0100
+++ xerces-2_11_0/src/org/apache/html/dom/HTMLObjectElementImpl.java    
2017-10-03 17:27:57.048819662 +0200
@@ -17,6 +17,7 @@
 package org.apache.html.dom;
 
 import org.w3c.dom.html.HTMLObjectElement;
+import org.w3c.dom.Document;
 
 /**
  * @xerces.internal
@@ -239,6 +240,10 @@
         setAttribute( "width", width );
     }
 
+       public Document getContentDocument()
+       {
+               return null;
+       }
     
     
     /**

Reply via email to