public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jerry James <loganjerry@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/maven-doxia] epel10: Enable fop support
Date: Mon, 19 Oct 2026 14:55:48 GMT [thread overview]
Message-ID: <179242174857.1.16892052766196277326.rpms-maven-doxia-8fd24a4a6fef@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/maven-doxia
Branch : epel10
Commit : 8fd24a4a6fefd62141e63127cc6b16428941facd
Author : Jerry James <loganjerry@gmail.com>
Date : 2023-07-19T06:55:51-06:00
Stats : +83/-16 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/maven-doxia/c/8fd24a4a6fefd62141e63127cc6b16428941facd?branch=epel10
Log:
Enable fop support
---
diff --git a/0002-Commons-configuration2.patch b/0002-Commons-configuration2.patch
new file mode 100644
index 0000000..2b51f61
--- /dev/null
+++ b/0002-Commons-configuration2.patch
@@ -0,0 +1,72 @@
+--- doxia-1.12.0/doxia-modules/doxia-module-fo/pom.xml.orig 2023-01-09 21:09:18.000000000 -0700
++++ doxia-1.12.0/doxia-modules/doxia-module-fo/pom.xml 2023-06-12 15:58:35.171254714 -0600
+@@ -71,9 +71,9 @@ under the License.
+
+ <!-- misc -->
+ <dependency>
+- <groupId>commons-configuration</groupId>
+- <artifactId>commons-configuration</artifactId>
+- <version>1.10</version>
++ <groupId>org.apache.commons</groupId>
++ <artifactId>commons-configuration2</artifactId>
++ <version>2.9.0</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-collections</groupId>
+--- doxia-1.12.0/doxia-modules/doxia-module-fo/src/main/java/org/apache/maven/doxia/module/fo/FoConfiguration.java.orig 2023-01-09 21:09:18.000000000 -0700
++++ doxia-1.12.0/doxia-modules/doxia-module-fo/src/main/java/org/apache/maven/doxia/module/fo/FoConfiguration.java 2023-06-12 17:00:19.630450286 -0600
+@@ -20,14 +20,16 @@ package org.apache.maven.doxia.module.fo
+ */
+
+ import java.io.File;
++import java.io.FileReader;
+ import java.io.IOException;
+ import java.util.List;
+
+ import javax.swing.text.MutableAttributeSet;
+ import javax.swing.text.SimpleAttributeSet;
+
+-import org.apache.commons.configuration.ConfigurationException;
+-import org.apache.commons.configuration.XMLConfiguration;
++import org.apache.commons.configuration2.XMLConfiguration;
++import org.apache.commons.configuration2.ex.ConfigurationException;
++import org.apache.commons.configuration2.io.FileLocatorUtils;
+ import org.apache.maven.doxia.sink.impl.SinkUtils;
+ import org.codehaus.plexus.util.ReaderFactory;
+
+@@ -55,9 +57,6 @@ public class FoConfiguration
+ {
+ this.config = new XMLConfiguration();
+
+- // necessary because some attributes contain commas:
+- config.setDelimiterParsingDisabled( true );
+-
+ loadDefaultConfig();
+ }
+
+@@ -75,10 +74,11 @@ public class FoConfiguration
+ throws IOException
+ {
+ config.clear();
++ config.initFileLocator( FileLocatorUtils.fileLocator().basePath( configFile.getParent() ).fileName( configFile.getName() ).create() );
+
+ try
+ {
+- config.load( configFile );
++ config.read( new FileReader(configFile) );
+ }
+ catch ( ConfigurationException cex )
+ {
+@@ -182,9 +182,11 @@ public class FoConfiguration
+ /** Load the default fo configuration file. */
+ private void loadDefaultConfig()
+ {
++ config.initFileLocator( FileLocatorUtils.fileLocator().sourceURL( getClass().getResource( "/fo-styles.xslt" ) ).create() );
++
+ try
+ {
+- config.load( ReaderFactory.newXmlReader( getClass().getResourceAsStream( "/fo-styles.xslt" ) ) );
++ config.read( ReaderFactory.newXmlReader( getClass().getResourceAsStream( "/fo-styles.xslt" ) ) );
+ }
+ catch ( ConfigurationException | IOException cex )
+ {
diff --git a/maven-doxia.spec b/maven-doxia.spec
index 5c77f15..8846dbf 100644
--- a/maven-doxia.spec
+++ b/maven-doxia.spec
@@ -1,10 +1,9 @@
%bcond_with itext
-%bcond_with fop
Name: maven-doxia
Epoch: 0
Version: 1.12.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Content generation framework
License: Apache-2.0
@@ -15,19 +14,25 @@ Source2: https://downloads.apache.org/maven/KEYS
# Build against iText 2.x
# https://issues.apache.org/jira/browse/DOXIA-53
-Patch1: 0001-Fix-itext-dependency.patch
+Patch0: 0001-Fix-itext-dependency.patch
+
+# Build against commons-configuration 2.x
+Patch1: 0002-Commons-configuration2.patch
BuildArch: noarch
ExclusiveArch: %{java_arches} noarch
BuildRequires: gnupg2
BuildRequires: maven-local
+BuildRequires: mvn(commons-collections:commons-collections)
BuildRequires: mvn(junit:junit)
+BuildRequires: mvn(org.apache.commons:commons-configuration2)
BuildRequires: mvn(org.apache.commons:commons-lang3)
BuildRequires: mvn(org.apache.commons:commons-text)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.httpcomponents:httpcore)
BuildRequires: mvn(org.apache.maven:maven-parent:pom:)
+BuildRequires: mvn(org.apache.xmlgraphics:fop)
BuildRequires: mvn(org.codehaus.modello:modello-maven-plugin)
BuildRequires: mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
@@ -36,12 +41,6 @@ BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
BuildRequires: mvn(org.xmlunit:xmlunit-core)
BuildRequires: mvn(org.xmlunit:xmlunit-matchers)
-%if %{with fop}
-BuildRequires: mvn(commons-collections:commons-collections)
-BuildRequires: mvn(commons-configuration:commons-configuration)
-BuildRequires: mvn(org.apache.xmlgraphics:fop)
-%endif
-
%if %{with itext}
BuildRequires: mvn(com.lowagie:itext)
%endif
@@ -89,13 +88,11 @@ Summary: FML module for %{name}
%description module-fml
This package provides %{summary}.
-%if %{with fop}
%package module-fo
Summary: FO module for %{name}
%description module-fo
This package provides %{summary}.
-%endif
%if %{with itext}
%package module-itext
@@ -202,9 +199,6 @@ rm doxia-core/src/test/java/org/apache/maven/doxia/util/XmlValidatorTest.java
%if %{without itext}
%pom_disable_module doxia-module-itext doxia-modules
%endif
-%if %{without fop}
-%pom_disable_module doxia-module-fo doxia-modules
-%endif
%build
%mvn_build -s
@@ -222,9 +216,7 @@ rm doxia-core/src/test/java/org/apache/maven/doxia/util/XmlValidatorTest.java
%files module-confluence -f .mfiles-doxia-module-confluence
%files module-docbook-simple -f .mfiles-doxia-module-docbook-simple
%files module-fml -f .mfiles-doxia-module-fml
-%if %{with fop}
%files module-fo -f .mfiles-doxia-module-fo
-%endif
%if %{with itext}
%files module-itext -f .mfiles-doxia-module-itext
%endif
@@ -243,6 +235,9 @@ rm doxia-core/src/test/java/org/apache/maven/doxia/util/XmlValidatorTest.java
%license LICENSE NOTICE
%changelog
+* Wed Jul 19 2023 Jerry James <loganjerry@gmail.com> - 0:1.12.0-2
+- Enable fop support
+
* Sat Jun 10 2023 Jerry James <loganjerry@gmail.com> - 0:1.12.0-1
- Version 1.12.0
reply other threads:[~2026-10-19 14:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179242174857.1.16892052766196277326.rpms-maven-doxia-8fd24a4a6fef@fedoraproject.org \
--to=loganjerry@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox