@@ -19,8 +19,6 @@ BuildArch: noarch
1919
2020Source: https://github.com/fedora-java/javapackages/archive/%{version }.tar.gz
2121
22- Source21: toolchains-openjdk21.xml
23-
2422BuildRequires: coreutils
2523BuildRequires: make
2624BuildRequires: rubygem-asciidoctor
@@ -48,12 +46,12 @@ install their content.
4846
4947%package -n maven-local -openjdk21
5048Summary: Macros and scripts for Maven packaging support
51- RemovePathPostfixes: -openjdk21
5249Requires: java-21-openjdk-devel
5350Provides: maven-local = %{version }-%{release }
5451Requires: %{name } = %{version }-%{release }
5552Requires: javapackages-local -openjdk21 = %{version }-%{release }
5653Requires: xmvn-minimal
54+ Requires: xmvn-toolchain-openjdk21
5755Requires: mvn(org.fedoraproject.xmvn:xmvn-mojo)
5856# Common Maven plugins required by almost every build. It wouldn't make
5957# sense to explicitly require them in every package built with Maven.
@@ -147,9 +145,6 @@ rm -rf %{buildroot}%{_sysconfdir}/ivy
147145rm -rf %{buildroot }%{_sysconfdir }/ant.d
148146%endif
149147
150- mkdir -p %{buildroot }%{maven_home }/conf/
151- cp -p %{SOURCE21 } %{buildroot }%{maven_home }/conf/toolchains.xml-openjdk21
152-
153148%if 0%{?flatpak }
154149# make both /app (runtime deps) and /usr (build-only deps) builds discoverable
155150sed -e '/^JAVA_LIBDIR= /s|$|:/usr/share/java|' \
@@ -185,8 +180,6 @@ ln -s %{_datadir}/java-utils %{buildroot}%{_usr}/share/java-utils
185180%files -n javapackages-local-openjdk21 -f files-local-openjdk21
186181
187182%files -n maven-local-openjdk21
188- %dir %{maven_home }/conf
189- %{maven_home }/conf/toolchains.xml-openjdk21
190183
191184%if %{with ivy }
192185%files -n ivy-local -f files-ivy
0 commit comments