diff --git a/jaxen-1.1-b7-build.xml b/jaxen-1.1-b7-build.xml
index 9b7a56b..318bf78 100644
--- a/jaxen-1.1-b7-build.xml
+++ b/jaxen-1.1-b7-build.xml
@@ -8,43 +8,25 @@
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -113,7 +95,7 @@
-
+
@@ -126,68 +108,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Proxy used :
- Proxy host [${proxy.host}]
- Proxy port [${proxy.port}]
- Proxy user [${proxy.username}]
-
-
-
- Proxy not used.
-
-
-
-
-
-
\ No newline at end of file
+
diff --git a/jaxen-1.1-b7-jpp-depmap.xml b/jaxen-1.1-b7-jpp-depmap.xml
deleted file mode 100644
index e1595cd..0000000
--- a/jaxen-1.1-b7-jpp-depmap.xml
+++ /dev/null
@@ -1,91 +0,0 @@
-
-
-
-
- dom4j
- dom4j
- 1.6.1
-
-
- JPP
- dom4j
- dom4j.jar
- 1.6.1
-
-
-
-
- jdom
- jdom
- 1.0
- http://jdom.org
-
-
- JPP
- jdom
- jdom.jar
- 1.0
- http://jdom.org
-
-
-
-
- xerces
- xercesImpl
- 2.6.2
-
-
- JPP
- xercesImpl
- xerces-j2.jar
- 2.6.2
-
-
-
-
- xml-apis
- xml-apis
- 1.3.02
-
-
- JPP
- xml-apis
- xml-commons-jaxp-1.3-apis.jar
- 1.3.02
-
-
-
-
-
- xerces
- xmlParserAPIs
- 2.6.2
-
-
- JPP
- xmlParserAPIs
- xml-commons-jaxp-1.3-apis.jar
- 2.6.2
-
-
-
-
- xom
- xom
- 1.0b3
-
-
- JPP
- xom
- xom.jar
- 1.0b3
-
-
-
-
- JPP
- junit
- junit.jar
-
-
-
diff --git a/jaxen-bootstrap-project_xml.patch b/jaxen-bootstrap-project_xml.patch
deleted file mode 100644
index 7abf0c1..0000000
--- a/jaxen-bootstrap-project_xml.patch
+++ /dev/null
@@ -1,60 +0,0 @@
---- project.xml.sav 2006-12-31 21:50:30.000000000 +0100
-+++ project.xml 2007-05-01 13:04:28.000000000 +0200
-@@ -237,7 +237,9 @@
- maven-jdepend-plugin
- maven-checkstyle-plugin
- maven-cobertura-plugin
-+
- maven-developer-activity-plugin
- maven-file-activity-plugin
- maven-license-plugin
-@@ -287,6 +289,7 @@
- 1.0
-
-
-+
-+
-
-
- maven-plugins
-@@ -308,19 +311,20 @@
- plugin
-
-
--
-+
-
--
-+
-+-->
-
-
-
diff --git a/jaxen-bootstrap.changes b/jaxen-bootstrap.changes
index a040973..dd12083 100644
--- a/jaxen-bootstrap.changes
+++ b/jaxen-bootstrap.changes
@@ -1,3 +1,12 @@
+-------------------------------------------------------------------
+Sat Mar 19 21:42:10 UTC 2022 - Fridrich Strba
+
+- Build with source/target levels 8
+- Clean-up the build system
+- Removed patch:
+ * jaxen-bootstrap-project_xml.patch
+ + not needed in the rewamped build system
+
-------------------------------------------------------------------
Fri Sep 8 08:20:32 UTC 2017 - fstrba@suse.com
diff --git a/jaxen-bootstrap.spec b/jaxen-bootstrap.spec
index 440b7e1..b655920 100644
--- a/jaxen-bootstrap.spec
+++ b/jaxen-bootstrap.spec
@@ -1,7 +1,7 @@
#
# spec file for package jaxen-bootstrap
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,85 +12,49 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
-%define with_maven 0
%define real jaxen
%define dom4jver 1.6.1
-%define section free
-
Name: jaxen-bootstrap
Version: 1.1
Release: 0
Summary: A convenience package for build of dom4j
License: Apache-2.0
Group: Development/Libraries/Java
-Url: http://jaxen.codehaus.org/
+URL: http://jaxen.codehaus.org/
Source0: http://dist.codehaus.org/jaxen/distributions/jaxen-1.1-src.tar.bz2
-Source1: pom-maven2jpp-depcat.xsl
-Source2: pom-maven2jpp-newdepmap.xsl
-Source3: pom-maven2jpp-mapdeps.xsl
-Source4: jaxen-1.1-b7-jpp-depmap.xml
# Debian sources don't need a proprietary msv for build, so that's why I used them
# svn co svn://svn.debian.org/svn/pkg-java/trunk/dom4j
# rm dom4j/docs/xref/org/dom4j/tree/ConcurrentReaderHashMap.html
# rm dom4j/docs/clover/org/dom4j/tree/ConcurrentReaderHashMap.html
-# #bnc501764
+# bnc#501764
# rm dom4j/lib/tools/clover.license
# tar --exclude-vcs -cjf dom4j-1.6.1-debian.tar.bz2 dom4j/
-Source5: http://prdownloads.sourceforge.net/dom4j/dom4j-%{dom4jver}-debian.tar.bz2
-Source6: jaxen-1.1-b7-build.xml
-Patch0: jaxen-bootstrap-project_xml.patch
-Requires: xalan-j2
-Requires: xerces-j2
-Requires: xom
+Source1: http://prdownloads.sourceforge.net/dom4j/dom4j-%{dom4jver}-debian.tar.bz2
+Source2: jaxen-1.1-b7-build.xml
BuildRequires: ant >= 1.6
+BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-tools
-BuildRequires: junit
-%if %{with_maven}
-BuildRequires: maven >= 1.1
-BuildRequires: maven-plugin-license
-BuildRequires: maven-plugin-test
-BuildRequires: maven-plugins-base
-BuildRequires: saxon
-BuildRequires: saxon-scripts
-%endif
-BuildRequires: java-devel
BuildRequires: unzip
BuildRequires: xalan-j2
BuildRequires: xerces-j2
BuildRequires: xom
+Requires: xalan-j2
+Requires: xerces-j2
+Requires: xom
BuildArch: noarch
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Dom4j depends on a jaxen build with dom4j support. This package must
only be installed in the rare event of having to rebuild dom4j.
-
-
%prep
-%setup -q -n %{real}-%{version}
-tar -xf %{SOURCE5}
-#/bin/gzip -dc %{SOURCE5} | tar -xf -
-cp %{SOURCE6} build.xml
+%setup -q -n %{real}-%{version} -a1
+cp %{SOURCE2} build.xml
find . -name "*.jar" -exec rm -f {} \;
-%patch0 -b .sav
-%if %{with_maven}
-export DEPCAT=$(pwd)/jaxen-1.1-b7-depcat.new.xml
-echo '' > $DEPCAT
-echo '' >> $DEPCAT
-for p in $(find . -name project.xml); do
- pushd $(dirname $p)
- /usr/bin/saxon project.xml %{SOURCE1} >> $DEPCAT
- popd
-done
-echo >> $DEPCAT
-echo '' >> $DEPCAT
-/usr/bin/saxon $DEPCAT %{SOURCE2} > jaxen-1.1-b7-depmap.new.xml
-%endif
rm -rf src/java/main/org/jaxen/jdom
rm -rf src/java/test/org/jaxen/jdom
rm -f src/java/test/org/jaxen/test/JaxenTests.java
@@ -100,58 +64,37 @@ rm -f src/java/test/org/jaxen/test/JDOMTests.java
rm -f src/java/test/org/jaxen/test/JDOMXPathTest.java
%build
-export CLASSPATH=$(build-classpath \
-xom \
-jdom \
-xalan-j2 \
-xerces-j2 \
-)
-pushd dom4j/src/java
-javac -sourcepath ../../../src/java/main:. \
- org/dom4j/Attribute.java \
- org/dom4j/Branch.java \
- org/dom4j/CDATA.java \
- org/dom4j/Comment.java \
- org/dom4j/Document.java \
- org/dom4j/DocumentException.java \
- org/dom4j/Element.java \
- org/dom4j/Namespace.java \
- org/dom4j/Node.java \
- org/dom4j/ProcessingInstruction.java \
- org/dom4j/Text.java \
- org/dom4j/io/SAXReader.java
-jar cf ../../dom4j.jar $(find . -name "*.class")
-popd
-mkdir -p .maven/repository/JPP/jars
-cp dom4j/dom4j.jar .maven/repository/JPP/jars/dom4j.jar
-%if %{with_maven}
-for p in $(find . -name project.xml); do
- pushd $(dirname $p)
- cp project.xml project.xml.orig
- /usr/bin/saxon -o project.xml project.xml.orig %{SOURCE3} map=%{SOURCE4}
- popd
-done
-maven \
- -Dmaven.test.skip=true \
- -Dmaven.repo.remote=file:/usr/share/maven/repository \
- -Dmaven.home.local=$(pwd)/.maven \
- jar
-%else
-export CLASSPATH=$CLASSPATH:dom4j/dom4j.jar
-ant -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 \
- -Dbuild.sysclasspath=first
-%endif
+mkdir -p lib
+build-jar-repository -s lib \
+ xom \
+ xalan-j2 \
+ xerces-j2
+
+mkdir -p dom4j/classes
+javac \
+ -source 8 -target 8 -d dom4j/classes \
+ -sourcepath src/java/main:dom4j/src/java \
+ dom4j/src/java/org/dom4j/Attribute.java \
+ dom4j/src/java/org/dom4j/Branch.java \
+ dom4j/src/java/org/dom4j/CDATA.java \
+ dom4j/src/java/org/dom4j/Comment.java \
+ dom4j/src/java/org/dom4j/Document.java \
+ dom4j/src/java/org/dom4j/DocumentException.java \
+ dom4j/src/java/org/dom4j/Element.java \
+ dom4j/src/java/org/dom4j/Namespace.java \
+ dom4j/src/java/org/dom4j/Node.java \
+ dom4j/src/java/org/dom4j/ProcessingInstruction.java \
+ dom4j/src/java/org/dom4j/Text.java \
+ dom4j/src/java/org/dom4j/io/SAXReader.java
+
+jar cf lib/dom4j.jar -C dom4j/classes .
+
+%ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8
%install
# jars
-install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
-install -m 644 target/%{real}-%{version}-beta-7.jar \
-$RPM_BUILD_ROOT%{_javadir}/%{real}-%{version}.jar
-(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do \
-ln -sf ${jar} ${jar/-%{version}/}; done)
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+install -d -m 755 %{buildroot}%{_javadir}
+install -m 644 target/%{real}-%{version}-beta-7.jar %{buildroot}%{_javadir}/%{real}.jar
%files
%defattr(0644,root,root,0755)
diff --git a/pom-maven2jpp-depcat.xsl b/pom-maven2jpp-depcat.xsl
deleted file mode 100644
index e1042c5..0000000
--- a/pom-maven2jpp-depcat.xsl
+++ /dev/null
@@ -1,109 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-ERROR
-
-
-
-
-
-
-
-
-
- JPP
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-ERROR
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-ERROR
-
-
-
-
-
- .jar
- .
-
-
- .jar
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pom-maven2jpp-mapdeps.xsl b/pom-maven2jpp-mapdeps.xsl
deleted file mode 100644
index d10cce7..0000000
--- a/pom-maven2jpp-mapdeps.xsl
+++ /dev/null
@@ -1,78 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pom-maven2jpp-newdepmap.xsl b/pom-maven2jpp-newdepmap.xsl
deleted file mode 100644
index ea1dcd3..0000000
--- a/pom-maven2jpp-newdepmap.xsl
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-