diff --git a/README.md b/README.md index 40f18d2..20176d8 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,8 @@ This repository contains a single file `build_configs.json` that defines per-pac "module_enable": ["module:stream"], "yum_exclude": ["package-name"], "with": ["option"], - "without": ["option"] + "without": ["option"], + "target_arch": "noarch" } } } @@ -53,6 +54,7 @@ These are applied per-package within a single ALBS build. Different mock_options | `mock_options.yum_exclude` | `list[str]` | `[]` | Packages to exclude from the mock chroot | | `mock_options.with` | `list[str]` | `[]` | `--with` conditional build options | | `mock_options.without` | `list[str]` | `[]` | `--without` conditional build options | +| `mock_options.target_arch` | `str` | `""` | Override the RPM build target arch for this package (mock `--target=`). Useful for packages whose SRPM must always produce a fixed arch — e.g. `"noarch"` for Java packages like `maven`. Empty string = no override. Applied per-task; does not split the build. | ## Branch Patterns @@ -153,6 +155,21 @@ sssd on EL8 branches requires the `idm:DL1` module stream enabled in the build c nvidia-open-kmod gets both SecureBoot signing and a custom signing identity macro. +### Per-package build target (mock `--target`) + +```json +{ + "maven": { + "*": { + "mock_options": { + "target_arch": "noarch" + } + } + } +} +``` + + ### Portable builds (disable %check) ```json diff --git a/build_configs.json b/build_configs.json index a16e6ca..3663f4f 100644 --- a/build_configs.json +++ b/build_configs.json @@ -713,6 +713,28 @@ } }, + "maven": { + "*10*": { + "mock_options": { + "target_arch": "noarch" + } + } + }, + "ant": { + "*10*": { + "mock_options": { + "target_arch": "noarch" + } + } + }, + "xmvn": { + "*10*": { + "mock_options": { + "target_arch": "noarch" + } + } + }, + "R-*": { "*epel*": { "platform_flavors": ["add-epel-macros"] diff --git a/example.json b/example.json index f07c301..a966e92 100644 --- a/example.json +++ b/example.json @@ -11,7 +11,7 @@ "without": [], "yum_exclude": ["pkg_for_exclude", "pkg_for_exclude"], "module_enable": ["module_name:module_stream", "module_name"], - "target_arch": "" + "target_arch": "noarch" }, "secure_boot": true // false by default }