Include the java-11-openjdk-portable.spec file with instructions on how to rebuild.
Related: rhbz#2150201
This commit is contained in:
parent
338251bfa4
commit
620fc0623e
42
README.md
42
README.md
@ -1,9 +1,39 @@
|
|||||||
Package of LTS OpenJDK 11
|
OpenJDK 11 is a Long-Term Support (LTS) release of the Java platform.
|
||||||
OpenJDK have release cadence of 6 months. but 3/4 of them are Short Term Supported for 6 months only. This package is designed to harbore them. Currently it is build on openJDK 11. LTSs (next is 15) will go as separate packages.
|
|
||||||
|
|
||||||
JDK11 is last LTS release of Java platform. It is bringing many cool improvements - http://openjdk.java.net/projects/jdk/11/ and is landing to your Fedora. Where it will be maintained for several years. You will always be allowed to install Used LTSs in build root, and alongside via alternatives.
|
For a list of major changes from OpenJDK 8 (java-1.8.0-openjdk), see
|
||||||
|
the upstream release page for OpenJDK 11 and the preceding interim
|
||||||
|
releases:
|
||||||
|
|
||||||
See announcement: http://mail.openjdk.java.net/pipermail/discuss/2017-September/004281.html
|
* 9: https://openjdk.org/projects/jdk9/
|
||||||
See java SIG plans: https://jvanek.fedorapeople.org/devconf/2018/changesInjavaReleaseProcess.pdf
|
* 10: https://openjdk.java.net/projects/jdk/10/
|
||||||
|
* 11: https://openjdk.java.net/projects/jdk/11/
|
||||||
|
|
||||||
https://fedoraproject.org/wiki/Changes/java-11-openjdk-TechPreview
|
# Rebuilding the OpenJDK package
|
||||||
|
|
||||||
|
The OpenJDK packages are now created from a single build which is then
|
||||||
|
packaged for different major versions of Red Hat Enterprise Linux
|
||||||
|
(RHEL). This allows the OpenJDK team to focus their efforts on the
|
||||||
|
development and testing of this single build, rather than having
|
||||||
|
multiple builds which only differ by the platform they were built on.
|
||||||
|
|
||||||
|
This does make rebuilding the package slightly more complicated than a
|
||||||
|
normal package. Modifications should be made to the
|
||||||
|
`java-11-openjdk-portable.specfile` file, which can be found with this
|
||||||
|
README file in the source RPM or installed in the documentation tree
|
||||||
|
by the `java-11-openjdk-headless` RPM.
|
||||||
|
|
||||||
|
Once the modified `java-11-openjdk-portable` RPMs are built, they
|
||||||
|
should be installed and will produce a number of tarballs in the
|
||||||
|
`/usr/lib/jvm` directory. The `java-11-openjdk` RPMs can then be
|
||||||
|
built, which will use these tarballs to create the usual RPMs found in
|
||||||
|
RHEL. The `java-11-openjdk-portable` RPMs can be uninstalled once the
|
||||||
|
desired final RPMs are produced.
|
||||||
|
|
||||||
|
Note that the `java-11-openjdk.spec` file has a hard requirement on
|
||||||
|
the exact version of java-11-openjdk-portable to use, so this will
|
||||||
|
need to be modified if the version or rpmrelease values are changed in
|
||||||
|
`java-11-openjdk-portable.specfile`.
|
||||||
|
|
||||||
|
To reduce the number of RPMs involved, the `fastdebug` and `slowdebug`
|
||||||
|
builds may be disabled using `--without fastdebug` and `--without
|
||||||
|
slowdebug`.
|
||||||
|
2473
java-11-openjdk-portable.specfile
Normal file
2473
java-11-openjdk-portable.specfile
Normal file
File diff suppressed because it is too large
Load Diff
@ -373,7 +373,7 @@
|
|||||||
%global top_level_dir_name %{origin}
|
%global top_level_dir_name %{origin}
|
||||||
%global top_level_dir_name_backup %{top_level_dir_name}-backup
|
%global top_level_dir_name_backup %{top_level_dir_name}-backup
|
||||||
%global buildver 7
|
%global buildver 7
|
||||||
%global rpmrelease 3
|
%global rpmrelease 4
|
||||||
# Settings used by the portable build
|
# Settings used by the portable build
|
||||||
%global portablerelease 2
|
%global portablerelease 2
|
||||||
%global portablerhel 8
|
%global portablerhel 8
|
||||||
@ -825,6 +825,8 @@ exit 0
|
|||||||
%define files_jre_headless() %{expand:
|
%define files_jre_headless() %{expand:
|
||||||
%license %{_jvmdir}/%{sdkdir -- %{?1}}/legal
|
%license %{_jvmdir}/%{sdkdir -- %{?1}}/legal
|
||||||
%doc %{_defaultdocdir}/%{uniquejavadocdir -- %{?1}}/NEWS
|
%doc %{_defaultdocdir}/%{uniquejavadocdir -- %{?1}}/NEWS
|
||||||
|
%doc %{_defaultdocdir}/%{uniquejavadocdir -- %{?1}}/README.md
|
||||||
|
%doc %{_defaultdocdir}/%{uniquejavadocdir -- %{?1}}/java-%{featurever}-openjdk-portable.specfile
|
||||||
%dir %{_sysconfdir}/.java/.systemPrefs
|
%dir %{_sysconfdir}/.java/.systemPrefs
|
||||||
%dir %{_sysconfdir}/.java
|
%dir %{_sysconfdir}/.java
|
||||||
%dir %{_jvmdir}/%{sdkdir -- %{?1}}
|
%dir %{_jvmdir}/%{sdkdir -- %{?1}}
|
||||||
@ -1337,6 +1339,10 @@ Source17: nss.fips.cfg.in
|
|||||||
# Ensure translations are available for new timezones
|
# Ensure translations are available for new timezones
|
||||||
Source18: TestTranslations.java
|
Source18: TestTranslations.java
|
||||||
|
|
||||||
|
# Include portable spec and instructions on how to rebuild
|
||||||
|
Source19: README.md
|
||||||
|
Source20: java-%{featurever}-openjdk-portable.specfile
|
||||||
|
|
||||||
# Setup variables to reference correct sources
|
# Setup variables to reference correct sources
|
||||||
%global releasezip %{_jvmdir}/%{name}-%{version}-%{portablerelease}.portable.unstripped.jdk..%{_arch}.tar.xz
|
%global releasezip %{_jvmdir}/%{name}-%{version}-%{portablerelease}.portable.unstripped.jdk..%{_arch}.tar.xz
|
||||||
%global staticlibzip %{_jvmdir}/%{name}-%{version}-%{portablerelease}.portable.static-libs..%{_arch}.tar.xz
|
%global staticlibzip %{_jvmdir}/%{name}-%{version}-%{portablerelease}.portable.static-libs..%{_arch}.tar.xz
|
||||||
@ -1802,6 +1808,9 @@ The %{origin_nice} %{featurever} API documentation compressed in a single archiv
|
|||||||
%prep
|
%prep
|
||||||
|
|
||||||
echo "Preparing %{oj_vendor_version}"
|
echo "Preparing %{oj_vendor_version}"
|
||||||
|
echo "Vendor: %{oj_vendor}"
|
||||||
|
echo "Vendor URL: %{oj_vendor_url}"
|
||||||
|
echo "Vendor Bug URL: %{oj_vendor_bug_url}"
|
||||||
|
|
||||||
# Using the echo macro breaks rpmdev-bumpspec, as it parses the first line of stdout :-(
|
# Using the echo macro breaks rpmdev-bumpspec, as it parses the first line of stdout :-(
|
||||||
%if 0%{?stapinstall:1}
|
%if 0%{?stapinstall:1}
|
||||||
@ -2127,10 +2136,11 @@ jdk_image=$(pwd)/%{installoutputdir -- ${suffix}}
|
|||||||
docdir=$(pwd)/%{installoutputdir -- "-docs"}
|
docdir=$(pwd)/%{installoutputdir -- "-docs"}
|
||||||
miscdir=%{installoutputdir -- "-misc"}
|
miscdir=%{installoutputdir -- "-misc"}
|
||||||
|
|
||||||
# Install release notes
|
# Install release notes and rebuild instructions
|
||||||
commondocdir=${RPM_BUILD_ROOT}%{_defaultdocdir}/%{uniquejavadocdir -- $suffix}
|
commondocdir=${RPM_BUILD_ROOT}%{_defaultdocdir}/%{uniquejavadocdir -- $suffix}
|
||||||
install -d -m 755 ${commondocdir}
|
install -d -m 755 ${commondocdir}
|
||||||
mv ${jdk_image}/NEWS ${commondocdir}
|
mv ${jdk_image}/NEWS ${commondocdir}
|
||||||
|
cp -a %{SOURCE19} %{SOURCE20} ${commondocdir}
|
||||||
|
|
||||||
# Install the jdk
|
# Install the jdk
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_jvmdir}
|
mkdir -p $RPM_BUILD_ROOT%{_jvmdir}
|
||||||
@ -2469,14 +2479,14 @@ require "copy_jdk_configs.lua"
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Apr 28 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.19.0.7-3
|
* Wed Apr 26 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.19.0.7-4
|
||||||
- Adjust oj_vendor_bug_url to match the portable so test passes
|
- Include the java-11-openjdk-portable.spec file with instructions on how to rebuild.
|
||||||
- Related: rhbz#2150201
|
- Related: rhbz#2150201
|
||||||
|
|
||||||
* Wed Apr 26 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.19.0.7-3
|
* Wed Apr 26 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.19.0.7-3
|
||||||
- Revert "Restore native build for x86 as there is no portable build"
|
- Revert "Restore native build for x86 as there is no portable build"
|
||||||
- Reintroduce useful cleanups from x86 reversion
|
- Reintroduce useful cleanups from x86 reversion
|
||||||
- Adjust oj_vendor_version to match the portable so test passes
|
- Adjust oj_vendor_version & oj_vendor_bug_url to match the portable so test passes
|
||||||
- Related: rhbz#2150201
|
- Related: rhbz#2150201
|
||||||
|
|
||||||
* Wed Apr 26 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.19.0.7-2
|
* Wed Apr 26 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.19.0.7-2
|
||||||
|
Loading…
Reference in New Issue
Block a user