Skip to content

Commit 1da6867

Browse files
committed
Switch to externally-packaged XMvn toolchains
1 parent 7ac41b6 commit 1da6867

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

javapackages-tools.spec

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ BuildArch: noarch
1919

2020
Source: https://github.com/fedora-java/javapackages/archive/%{version}.tar.gz
2121

22-
Source21: toolchains-openjdk21.xml
23-
2422
BuildRequires: coreutils
2523
BuildRequires: make
2624
BuildRequires: rubygem-asciidoctor
@@ -48,12 +46,12 @@ install their content.
4846

4947
%package -n maven-local-openjdk21
5048
Summary: Macros and scripts for Maven packaging support
51-
RemovePathPostfixes: -openjdk21
5249
Requires: java-21-openjdk-devel
5350
Provides: maven-local = %{version}-%{release}
5451
Requires: %{name} = %{version}-%{release}
5552
Requires: javapackages-local-openjdk21 = %{version}-%{release}
5653
Requires: xmvn-minimal
54+
Requires: xmvn-toolchain-openjdk21
5755
Requires: 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
147145
rm -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
155150
sed -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

Comments
 (0)