# Copyright (c) 2000-2007, JPackage Project # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the # distribution. # 3. Neither the name of the JPackage Project nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # Name: dom4j Version: 2.0.3 Release: 4%{?dist} Epoch: 0 Summary: Open Source XML framework for Java License: BSD URL: https://dom4j.github.io/ BuildArch: noarch Source0: https://github.com/dom4j/dom4j/archive/version-%{version}.tar.gz Source1: https://repo1.maven.org/maven2/org/%{name}/%{name}/%{version}/%{name}-%{version}.pom BuildRequires: maven-local BuildRequires: mvn(jaxen:jaxen) BuildRequires: mvn(javax.xml.bind:jaxb-api) # Test deps BuildRequires: mvn(org.testng:testng) BuildRequires: mvn(xerces:xercesImpl) BuildRequires: mvn(xalan:xalan) %description dom4j is an Open Source XML framework for Java. dom4j allows you to read, write, navigate, create and modify XML documents. dom4j integrates with DOM and SAX and is seamlessly integrated with full XPath support. %package javadoc Summary: Javadoc for %{name} %description javadoc Javadoc for %{name}. %prep %autosetup -p1 -n %{name}-version-%{version} %mvn_alias org.%{name}:%{name} %{name}:%{name} %mvn_file : %{name}/%{name} %{name} cp %{SOURCE1} pom.xml sed -i 's/runtime/compile/' pom.xml # test deps missing from pom %pom_add_dep xalan:xalan::test %pom_add_dep org.testng:testng:6.8.21:test %pom_add_dep xerces:xercesImpl::test # Remove support for code which depends on ancient / deprecated classes # xpp2 (deprecated and not developed since 2003) rm -r src/main/java/org/dom4j/xpp rm src/main/java/org/dom4j/io/XPPReader.java # The datatype code depends on msv (deprecated and not developed since 2013) rm -r src/main/java/org/dom4j/datatype rm -r src/test/java/org/dom4j/datatype %pom_remove_dep net.java.dev.msv:xsdlib # dom4j supports multiple parsers, remove support for unpackaged parsers rm src/main/java/org/dom4j/io/XPP3Reader.java rm src/test/java/org/dom4j/io/XPP3ReaderTest.java %pom_remove_dep xpp3:xpp3 %pom_remove_dep pull-parser:pull-parser %pom_remove_dep javax.xml.stream:stax-api # Remove non-deterministic tests rm src/test/java/org/dom4j/ThreadingTest.java rm src/test/java/org/dom4j/util/PerThreadSingletonTest.java %build %mvn_build -- -Dproject.build.sourceEncoding=UTF-8 -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 %install %mvn_install %files -f .mfiles %license LICENSE %doc README.md %files javadoc -f .mfiles-javadoc %license LICENSE %changelog * Sat Feb 05 2022 Jiri Vanek - 0:2.0.3-4 - Rebuilt for java-17-openjdk as system jdk * Thu Jan 20 2022 Fedora Release Engineering - 0:2.0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 0:2.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Apr 29 2021 Hans de Goede - 0:2.0.3-1 - New upstream version 2.0.3 - Fix CVE-2018-1000632 (rhbz#1620535) * Thu Apr 29 2021 Hans de Goede - 0:2.0.0-14 - Drop the org.dom4j.datatype bits, these depend on the obsolete msv project and no Fedora packages runtime require msv, so no package seem to need these bits. - Drop dom4j-demo and dom4j-manual Obsoletes, these no longer exist since F27. - Fix FTBFS (rhbz#1923601) * Tue Jan 26 2021 Fedora Release Engineering - 0:2.0.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 0:2.0.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jul 24 2020 Fabio Valentini - 0:2.0.0-11 - Add a small patch to fix build with Java 11. * Fri Jul 10 2020 Jiri Vanek - 0:2.0.0-10 - Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 * Tue Jan 28 2020 Fedora Release Engineering - 0:2.0.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Jul 24 2019 Fedora Release Engineering - 0:2.0.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jan 31 2019 Fedora Release Engineering - 0:2.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Jul 17 2018 Mikolaj Izdebski - 0:2.0.0-6 - Remove dependency on bea-stax-api * Thu Jul 12 2018 Fedora Release Engineering - 0:2.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 0:2.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Oct 04 2017 Michael Simacek - 0:2.0.0-3 - Explicitly specify source encoding * Wed Jul 26 2017 Fedora Release Engineering - 0:2.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Mar 29 2017 Michael Simacek - 0:2.0.0-1 - Upgrade to upstream version 2.0.0 * Wed Mar 22 2017 Michael Simacek - 0:1.6.1-30 - Drop support for ancient xpp2 * Tue Mar 7 2017 Mikolaj Izdebski - 0:1.6.1-29 - Don't hardcode package name * Fri Feb 10 2017 Fedora Release Engineering - 0:1.6.1-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Jun 15 2016 Mikolaj Izdebski - 0:1.6.1-27 - Fix build-dependency on jaxen * Wed Feb 03 2016 Fedora Release Engineering - 0:1.6.1-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 0:1.6.1-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Jun 09 2015 Michal Srb - 0:1.6.1-24 - Add symlink for backward compatibility * Mon Jun 08 2015 Michal Srb - 0:1.6.1-23 - Adapt to current guidelines * Sat Jun 07 2014 Fedora Release Engineering - 0:1.6.1-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu May 29 2014 Mikolaj Izdebski - 0:1.6.1-21 - Use .mfiles generated during build * Fri Dec 06 2013 Michal Srb - 0:1.6.1-20 - Add ability to disable HTML handling * Wed Oct 16 2013 Michal Srb - 0:1.6.1-19 - Port to JAXP 1.4 * Wed Aug 07 2013 Michal Srb - 0:1.6.1-18 - Unversioned doc dir (Resolves: #993729) - See: http://fedoraproject.org/wiki/Changes/UnversionedDocdirs * Fri Aug 02 2013 Michal Srb - 0:1.6.1-17 - Add create-tarball.sh script to SRPM * Thu Jul 25 2013 Michal Srb - 0:1.6.1-16 - Properly remove references to ConcurrentReaderHashMap * Tue Jul 02 2013 Michal Srb - 0:1.6.1-15 - Remove file with unclear licensing (Resolves: rhbz#976180) * Wed Jun 19 2013 Michal Srb - 0:1.6.1-14 - Install license file with javadoc subpackage * Wed Feb 13 2013 Fedora Release Engineering - 0:1.6.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Nov 1 2012 Mikolaj Izdebski - 0:1.6.1-12 - Add maven POM * Mon Oct 29 2012 Mikolaj Izdebski - 0:1.6.1-11 - Cleanup source tarball from non-free content - Resolves: rhbz#848875 * Fri Oct 12 2012 Mikolaj Izdebski - 0:1.6.1-10 - Disable test dependencies because tests are skipped * Wed Jul 18 2012 Fedora Release Engineering - 0:1.6.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Apr 6 2012 Alexander Kurtakov 0:1.6.1-8 - Simplify packaging and remove old things. * Fri Jan 13 2012 Fedora Release Engineering - 0:1.6.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Feb 08 2011 Fedora Release Engineering - 0:1.6.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Jul 24 2009 Fedora Release Engineering - 0:1.6.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Feb 24 2009 Fedora Release Engineering - 0:1.6.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Jul 9 2008 Tom "spot" Callaway 1.6.1-3 - drop repotag * Wed Oct 17 2007 Deepak Bhole 1.6.1-2jpp.3 - Resaolve bz#302321: Add copyright header that was accidentally removed. * Mon Mar 26 2007 Nuno Santos - 0:1.6.1-2jpp.2 - fix unowned directory * Wed Feb 14 2007 Jeff Johnston - 0:1.6.1-2jpp.1 - Resolves: #227049 - Updated per Fedora package review process - Modified dom4j-1.6.1-build_xml.patch to include jaxp 1.2 apis on boot classpath - Added new patch for javadocs - Add buildrequires for jaxp = 1.2 * Mon Jan 30 2006 Ralph Apel - 0:1.6.1-2jpp - Change STAX dependency to free bea-stax and bea-stax-api * Wed Aug 17 2005 Ralph Apel - 0:1.6.1-1jpp - Upgrade to 1.6.1 - Now requires xpp3 additionally to xpp2 * Thu Sep 09 2004 Ralph Apel - 0:1.5-1jpp - Upgrade to 1.5 - Drop saxpath requirement as this is now included in jaxen * Fri Aug 20 2004 Ralph Apel - 0:1.4-3jpp - Upgrade to Ant 1.6.X - Build with ant-1.6.2 * Tue Jul 06 2004 Ralph Apel - 0:1.4-2jpp - Replace non-free msv with free relaxngDatatype xsdlib isorelax msv-strict - Relax some versioned dependencies * Mon Jan 19 2004 Ralph Apel - 0:1.4-1jpp - First JPackage release