Add openjdk8 subpackage
This commit is contained in:
parent
17394a79fd
commit
e8684079a1
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
Name: javapackages-bootstrap
|
Name: javapackages-bootstrap
|
||||||
Version: 1.7.0
|
Version: 1.7.0
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: A means of bootstrapping Java Packages Tools
|
Summary: A means of bootstrapping Java Packages Tools
|
||||||
# For detailed info see the file javapackages-bootstrap-PACKAGE-LICENSING
|
# For detailed info see the file javapackages-bootstrap-PACKAGE-LICENSING
|
||||||
License: ASL 2.0 and ASL 1.1 and (ASL 2.0 or EPL-2.0) and (EPL-2.0 or GPLv2 with exceptions) and MIT and BSD with advertising and BSD and EPL-1.0 and EPL-2.0 and CDDL-1.0 and xpp and CC0 and Public Domain
|
License: ASL 2.0 and ASL 1.1 and (ASL 2.0 or EPL-2.0) and (EPL-2.0 or GPLv2 with exceptions) and MIT and BSD with advertising and BSD and EPL-1.0 and EPL-2.0 and CDDL-1.0 and xpp and CC0 and Public Domain
|
||||||
@ -31,6 +31,8 @@ Source0: https://github.com/fedora-java/javapackages-bootstrap/releases/d
|
|||||||
# License breakdown
|
# License breakdown
|
||||||
Source1: javapackages-bootstrap-PACKAGE-LICENSING
|
Source1: javapackages-bootstrap-PACKAGE-LICENSING
|
||||||
|
|
||||||
|
Source101: toolchains-openjdk8.xml
|
||||||
|
|
||||||
# To obtain the following sources:
|
# To obtain the following sources:
|
||||||
# tar -xf ${name}-${version}.tar.xz
|
# tar -xf ${name}-${version}.tar.xz
|
||||||
# pushd ${name}-${version}
|
# pushd ${name}-${version}
|
||||||
@ -268,6 +270,8 @@ Requires: coreutils
|
|||||||
Requires: java-17-openjdk-devel
|
Requires: java-17-openjdk-devel
|
||||||
Requires: procps-ng
|
Requires: procps-ng
|
||||||
|
|
||||||
|
Requires: javapackages-common
|
||||||
|
|
||||||
%description
|
%description
|
||||||
In a nutshell, Java Packages Bootstrap (JPB) is a standalone build of all Java
|
In a nutshell, Java Packages Bootstrap (JPB) is a standalone build of all Java
|
||||||
software packages that are required for Java Packages Tools (JPT) to work.
|
software packages that are required for Java Packages Tools (JPT) to work.
|
||||||
@ -285,12 +289,20 @@ depend on JPB for everything, without depending on any other Java packages. For
|
|||||||
example, JPB contains embedded version of XMvn, removing dependency of JPT on
|
example, JPB contains embedded version of XMvn, removing dependency of JPT on
|
||||||
XMvn, allowing JPT to be used before one builds XMvn package.
|
XMvn, allowing JPT to be used before one builds XMvn package.
|
||||||
|
|
||||||
|
%package openjdk8
|
||||||
|
Summary: OpenJDK 8 toolchain for Java Packages Bootstrap
|
||||||
|
Requires: %{name}
|
||||||
|
Requires: java-1.8.0-openjdk-devel
|
||||||
|
|
||||||
|
%description openjdk8
|
||||||
|
OpenJDK 8 toolchain for Java Packages Bootstrap.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
# leave out the first source as it has already been extracted
|
# leave out the first source as it has already been extracted
|
||||||
# leave out licensing breakdown file
|
# leave out licensing breakdown file
|
||||||
other_sources=$(echo %{sources} | cut -d' ' -f3-)
|
other_sources=$(echo %{sources} | cut -d' ' -f4-)
|
||||||
|
|
||||||
for source in ${other_sources}
|
for source in ${other_sources}
|
||||||
do
|
do
|
||||||
@ -328,8 +340,8 @@ JAVA_HOME=%{javaHomePath} ./mbi.sh dist \
|
|||||||
-launchersPath=%{launchersPath} \
|
-launchersPath=%{launchersPath} \
|
||||||
-licensesPath=%{_licensedir}/%{name} \
|
-licensesPath=%{_licensedir}/%{name} \
|
||||||
|
|
||||||
# Use toolchains.xml provided by javapackages-tools
|
# Use custom toolchains.xml
|
||||||
rm %{buildroot}%{mavenHomePath}/conf/toolchains.xml
|
cp -p %{SOURCE101} %{buildroot}%{mavenHomePath}/conf/toolchains.xml
|
||||||
|
|
||||||
install -d -m 755 %{buildroot}%{_rpmmacrodir}
|
install -d -m 755 %{buildroot}%{_rpmmacrodir}
|
||||||
echo '%%jpb_env PATH=/usr/libexec/javapackages-bootstrap:$PATH' >%{buildroot}%{_rpmmacrodir}/macros.%{name}
|
echo '%%jpb_env PATH=/usr/libexec/javapackages-bootstrap:$PATH' >%{buildroot}%{_rpmmacrodir}/macros.%{name}
|
||||||
@ -339,16 +351,23 @@ echo '%%jpb_env PATH=/usr/libexec/javapackages-bootstrap:$PATH' >%{buildroot}%{_
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%{mavenHomePath}
|
%{mavenHomePath}
|
||||||
|
%exclude %{mavenHomePath}/conf/toolchains.xml
|
||||||
%{metadataPath}/*
|
%{metadataPath}/*
|
||||||
%{artifactsPath}/*
|
%{artifactsPath}/*
|
||||||
%{launchersPath}/*
|
%{launchersPath}/*
|
||||||
%{_rpmmacrodir}
|
%{_rpmmacrodir}
|
||||||
|
|
||||||
|
%files openjdk8
|
||||||
|
%{mavenHomePath}/conf/toolchains.xml
|
||||||
|
|
||||||
%license %{_licensedir}/%{name}
|
%license %{_licensedir}/%{name}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%doc AUTHORS
|
%doc AUTHORS
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 14 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.7.0-3
|
||||||
|
- Add openjdk8 toolchain subpackage
|
||||||
|
|
||||||
* Mon Jun 06 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.7.0-2
|
* Mon Jun 06 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.7.0-2
|
||||||
- Drop build-requires on javapackages-generators
|
- Drop build-requires on javapackages-generators
|
||||||
|
|
||||||
|
11
toolchains-openjdk8.xml
Normal file
11
toolchains-openjdk8.xml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<toolchains>
|
||||||
|
<toolchain>
|
||||||
|
<type>jdk</type>
|
||||||
|
<provides>
|
||||||
|
<xmvn>xmvn</xmvn>
|
||||||
|
</provides>
|
||||||
|
<configuration>
|
||||||
|
<jdkHome>/usr/lib/jvm/java-1.8.0-openjdk</jdkHome>
|
||||||
|
</configuration>
|
||||||
|
</toolchain>
|
||||||
|
</toolchains>
|
Loading…
Reference in New Issue
Block a user