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-sitetools] epel10: Adapt to recent versions of velocity
Date: Sat, 14 Nov 2026 17:19:36 GMT	[thread overview]
Message-ID: <179467677662.1.14616427458115205982.rpms-maven-doxia-sitetools-33c5fc2acf1d@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/maven-doxia-sitetools
Branch : epel10
Commit : 33c5fc2acf1d6f689c03ec65aa0800d2ec6b048a
Author : Jerry James <loganjerry@gmail.com>
Date   : 2023-08-30T11:34:39-06:00
Stats  : +51/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/maven-doxia-sitetools/c/33c5fc2acf1d6f689c03ec65aa0800d2ec6b048a?branch=epel10

Log:
Adapt to recent versions of velocity

---
diff --git a/maven-doxia-sitetools-velocity.patch b/maven-doxia-sitetools-velocity.patch
new file mode 100644
index 0000000..e86c7ee
--- /dev/null
+++ b/maven-doxia-sitetools-velocity.patch
@@ -0,0 +1,48 @@
+--- doxia-sitetools-1.11.1/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/SkinResourceLoader.java.orig	2021-12-12 17:08:08.000000000 -0700
++++ doxia-sitetools-1.11.1/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/SkinResourceLoader.java	2023-08-30 11:32:53.968100980 -0600
+@@ -23,10 +23,14 @@ import java.io.ByteArrayInputStream;
+ import java.io.ByteArrayOutputStream;
+ import java.io.IOException;
+ import java.io.InputStream;
++import java.io.InputStreamReader;
++import java.io.Reader;
++import java.io.UnsupportedEncodingException;
+ 
+ import org.apache.velocity.runtime.resource.Resource;
+ import org.apache.velocity.runtime.resource.loader.ResourceLoader;
+ import org.apache.velocity.exception.ResourceNotFoundException;
++import org.apache.velocity.util.ExtProperties;
+ import org.apache.commons.collections.ExtendedProperties;
+ import org.codehaus.plexus.util.IOUtil;
+ 
+@@ -58,6 +62,19 @@ public class SkinResourceLoader
+         return normalizeNewline( classLoader.getResourceAsStream( name ) );
+     }
+ 
++    public Reader getResourceReader( String source, String encoding )
++        throws ResourceNotFoundException
++    {
++        try
++	{
++            return new InputStreamReader( getResourceStream( source ), encoding );
++        }
++        catch (UnsupportedEncodingException uee)
++        {
++            throw new ResourceNotFoundException( "cannot read resource", uee );
++        }
++    }
++
+     InputStream normalizeNewline( InputStream in )
+         throws ResourceNotFoundException
+     {
+@@ -113,6 +130,10 @@ public class SkinResourceLoader
+         }
+     }
+ 
++    public void init( ExtProperties configuration )
++    {
++    }
++
+     public boolean isSourceModified( Resource resource )
+     {
+         return false;

diff --git a/maven-doxia-sitetools.spec b/maven-doxia-sitetools.spec
index c791d91..c124a61 100644
--- a/maven-doxia-sitetools.spec
+++ b/maven-doxia-sitetools.spec
@@ -15,6 +15,8 @@ Source1:        https://repo1.maven.org/maven2/org/apache/maven/doxia/doxia-site
 Source2:        https://downloads.apache.org/maven/KEYS
 
 Patch1:         0002-Remove-dependency-on-velocity-tools.patch
+# Adapt to recent versions of velocity
+Patch2:         %{name}-velocity.patch
 
 BuildRequires:  gnupg2
 BuildRequires:  maven-local
@@ -111,6 +113,7 @@ rm -rf $(find -type d -name itext)
 %changelog
 * Wed Aug 30 2023 Jerry James <loganjerry@gmail.com> - 1.11.1-7
 - Enable markdown support
+- Adapt to recent versions of velocity
 
 * Wed Jul 19 2023 Jerry James <loganjerry@gmail.com> - 1.11.1-6
 - Enable fop support

                 reply	other threads:[~2026-11-14 17:19 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=179467677662.1.14616427458115205982.rpms-maven-doxia-sitetools-33c5fc2acf1d@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