forked from adoptium/installer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request adoptium#4 from vsebe/semeru_ce_17
Add spec file for Semeru Certified 17
- Loading branch information
Showing
4 changed files
with
344 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Semeru RPM packaging prototype | ||
|
||
This is a prototype for packaging IBM Semeru Certified Edition | ||
via an RPM and also be able to rebuild it downstream via the provided SRPM. | ||
|
||
## Prerequisites | ||
|
||
Packages `rpmdevtools` and `rpm-build` are installed on the | ||
system. For example: | ||
|
||
``` | ||
$ rpm -q rpmdevtools rpm-build | ||
rpmdevtools-9.3-3.fc33.noarch | ||
rpm-build-4.16.1.3-1.fc33.x86_64 | ||
``` | ||
|
||
## Basic Usage | ||
|
||
On update, change the version numbers according to the new release | ||
in `jdk/redhat/src/main/packaging/ibm/17/ibm-jdk-17.spec`. | ||
|
||
First we download the release tarballs | ||
from https://github.ibm.com/runtimes/semeru17-binaries/releases | ||
or | ||
https://na.artifactory.swg-devops.com/ui/native/hyc-rt-java-delivery-generic-local/IBM/java/semeru-certified/17.0 | ||
|
||
Next, we build the SRPM via: | ||
|
||
``` | ||
$ rpmbuild --define "_sourcedir $(pwd)" --define "_specdir $(pwd)" \ | ||
--define "_builddir $(pwd)" --define "_srcrpmdir $(pwd)" \ | ||
--define "_rpmdir $(pwd)" --nodeps -bs ibm-jdk-17.spec | ||
``` | ||
|
||
Finally, we can build the binary RPM from the SRPM on the spec-file | ||
supported architectures: aarch64, x86_64, ppc64le, s390x: | ||
|
||
``` | ||
$ rpmbuild --define "_sourcedir $(pwd)" --define "_specdir $(pwd)" \ | ||
--define "_builddir $(pwd)" --define "_srcrpmdir $(pwd)" \ | ||
--define "_rpmdir $(pwd)" --rebuild *.src.rpm | ||
``` | ||
|
||
## Building for a different architecture | ||
|
||
Use the `--target` switch to `rpm-build` so as to build for a different | ||
archicture. Suppose the host architecture is `x86_64` and we want to build | ||
for target architecture `ppc64le`: | ||
|
||
``` | ||
$ rpmbuild --define "_sourcedir $(pwd)" --define "_specdir $(pwd)" \ | ||
--define "_builddir $(pwd)" --define "_srcrpmdir $(pwd)" \ | ||
--define "_rpmdir $(pwd)" --target ppc64le --rebuild *.src.rpm | ||
``` |
Oops, something went wrong.