public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/plexus-velocity] f45: spec is now EPEL10 compliant
@ 2026-11-14 19:30 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-11-14 19:30 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/plexus-velocity
Branch : f45
Commit : aab5c19a56e6190dda8b0621b66299638eb7dc25
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date   : 2026-11-04T18:58:08-03:00
Stats  : +31/-6 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/plexus-velocity/c/aab5c19a56e6190dda8b0621b66299638eb7dc25?branch=f45

Log:
spec is now EPEL10 compliant

---
diff --git a/.gitignore b/.gitignore
index 18b2b02..f247fe6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,6 @@ plexus-velocity-1.1.8-src.tar.gz
 /LICENSE-2.0.txt
 /plexus-velocity-2.0.tar.gz
 /plexus-velocity-2.2.1.tar.gz
+/plexus-velocity-2.2.1-source-release.zip
+/plexus-velocity-2.2.1-source-release.zip.asc
+/KEYS

diff --git a/plexus-velocity.spec b/plexus-velocity.spec
index 1e25af8..c65d7c1 100644
--- a/plexus-velocity.spec
+++ b/plexus-velocity.spec
@@ -8,10 +8,17 @@ URL:            https://codehaus-plexus.github.io/plexus-velocity/
 BuildArch:      noarch
 ExclusiveArch:  %{java_arches} noarch
 
-Source0:        https://github.com/codehaus-plexus/%{name}/archive/%{name}-%{version}.tar.gz
-Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt
-
+Source0:        https://repo1.maven.org/maven2/org/codehaus/plexus/%{name}/%{version}/%{name}-%{version}-source-release.zip
+Source1:        https://repo1.maven.org/maven2/org/codehaus/plexus/%{name}/%{version}/%{name}-%{version}-source-release.zip.asc
+# Apache Maven public key
+Source2:        https://downloads.apache.org/maven/KEYS
+Source3:        http://www.apache.org/licenses/LICENSE-2.0.txt
+
+%if 0%{?rhel} && 0%{?rhel} <= 10
+BuildRequires:  maven-local-openjdk21
+%else
 BuildRequires:  maven-local-openjdk25
+%endif
 BuildRequires:  mvn(com.google.inject:guice)
 BuildRequires:  mvn(org.junit.jupiter:junit-jupiter)
 BuildRequires:  mvn(org.apache.velocity:velocity-engine-core)
@@ -20,6 +27,7 @@ BuildRequires:  mvn(org.eclipse.sisu:org.eclipse.sisu.plexus)
 BuildRequires:  mvn(org.eclipse.sisu:sisu-maven-plugin)
 BuildRequires:  mvn(org.slf4j:slf4j-api)
 BuildRequires:  mvn(org.slf4j:slf4j-simple)
+BuildRequires:  openpgpverify
 
 %description
 This package provides Plexus Velocity component - a wrapper for
@@ -33,14 +41,26 @@ Summary:        API documentation for %{name}
 This package provides %{summary}.
 
 %prep
-%setup -q -n %{name}-%{name}-%{version}
+%{openpgpverify} --data=%{SOURCE0} --signature=%{SOURCE1} --keyring=%{SOURCE2}
+%setup -q
 
 find -name '*.jar' -delete
 
-cp -p %{SOURCE1} LICENSE
+cp -p %{SOURCE3} LICENSE
 
 %build
+%if 0%{?rhel} && 0%{?rhel} <= 10
+# Upstream test (DefaultVelocityComponentTest) extends sisu InjectedTest, which
+# relies on a MutableBeanLocator binding supplied transitively by
+# org.eclipse.sisu.plexus. That binding resolves in Fedora's maven-local-openjdk25
+# (sisu 1.0.0) but not in EPEL10's maven-local-openjdk21 (sisu 0.9.0.M2), where the
+# offline build has no compatible org.eclipse.sisu.plexus, so the locator is never
+# injected and the test NPEs. The component itself compiles cleanly, so skip the
+# maven test suite.
+%mvn_build -- -DskipTests=true
+%else
 %mvn_build
+%endif
 
 %install
 %mvn_install

diff --git a/sources b/sources
index c93c6b3..3da8a71 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,4 @@
-SHA512 (plexus-velocity-2.2.1.tar.gz) = e832ba6edc01c640acec16282b2052122f82813501242210dd545f0d9c7507a0c0984ae3fdf8145c99eae02e0735f73864b22a64acc979a9d121c32ddd1657e8
 SHA512 (LICENSE-2.0.txt) = 98f6b79b778f7b0a15415bd750c3a8a097d650511cb4ec8115188e115c47053fe700f578895c097051c9bc3dfb6197c2b13a15de203273e1a3218884f86e90e8
+SHA512 (plexus-velocity-2.2.1-source-release.zip) = 324f16d12254abfd4066822bbc3f054db06bdf24225c249e1f8bf064fe3c9646fcc21960ae5f38e4309c951b6c42786f9def2c1d01495349e9b78172e4f526d0
+SHA512 (plexus-velocity-2.2.1-source-release.zip.asc) = 86d4a32044be369454c723eccb6999494aef6eafff515950b2f4c044477621e8d88f03349d099266e8888a8f95d1e5bc17fea868463ade9e8496815674cc4b5b
+SHA512 (KEYS) = 05c34a058f790f4adfb74a42e7d41117cf56e61c70a226515ff7e713e9eebfabcec358d7702d09caca55d12294a01bdda24687c1f9cbb92701ec796cd4335fc8

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-14 19:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-14 19:30 [rpms/plexus-velocity] f45: spec is now EPEL10 compliant Filipe Rosset

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox