2023-03-30 12:21:35 +00:00
|
|
|
{% set full_version = distribution_major_version + "." + distribution_minor_version %}
|
2023-04-30 21:08:45 +00:00
|
|
|
{% set branch = "a" + full_version + beta_suffix if beta_suffix is defined and beta_suffix else "a" + full_version %}
|
2023-03-30 12:21:35 +00:00
|
|
|
|
2022-06-02 16:39:34 +00:00
|
|
|
from include_exclude import *
|
|
|
|
from multilib import *
|
2023-03-30 12:21:35 +00:00
|
|
|
{% if extra_options %}
|
|
|
|
from extra_options import *
|
|
|
|
{% endif %}
|
2022-06-02 15:35:16 +00:00
|
|
|
|
|
|
|
# PRODUCT INFO
|
|
|
|
release_name = "{{ product_name }}"
|
|
|
|
release_short = "{{ product_name }}"
|
2023-03-30 12:21:35 +00:00
|
|
|
release_version = "{{ full_version }}"
|
2022-06-02 15:35:16 +00:00
|
|
|
treeinfo_version = "{{ distribution_major_version }}"
|
|
|
|
|
|
|
|
# GENERAL SETTINGS
|
|
|
|
comps_file = {
|
|
|
|
"scm": "git",
|
|
|
|
"repo": "https://git.almalinux.org/almalinux/pungi-almalinux.git",
|
2023-03-30 12:21:35 +00:00
|
|
|
"branch": "{{ branch }}",
|
2022-06-02 15:35:16 +00:00
|
|
|
"file": "{{ arch }}/comps.xml",
|
|
|
|
}
|
|
|
|
|
|
|
|
link_type = 'hardlink'
|
|
|
|
|
2024-09-02 09:35:25 +00:00
|
|
|
createiso_use_xorrisofs = True
|
|
|
|
|
2022-12-06 14:17:49 +00:00
|
|
|
module_defaults_dir = {
|
|
|
|
"scm": "git",
|
|
|
|
"repo": "https://git.almalinux.org/almalinux/pungi-almalinux.git",
|
2023-03-30 12:21:35 +00:00
|
|
|
"branch": "{{ branch }}",
|
2022-12-12 15:57:40 +00:00
|
|
|
"dir": "{{ arch }}/modules_defaults/module_defaults",
|
2022-12-06 14:17:49 +00:00
|
|
|
}
|
2022-06-02 15:35:16 +00:00
|
|
|
|
|
|
|
variants_file = {
|
|
|
|
"scm": "git",
|
|
|
|
"repo": "https://git.almalinux.org/almalinux/pungi-almalinux.git",
|
2023-03-30 12:21:35 +00:00
|
|
|
"branch": "{{ branch }}",
|
2022-06-02 15:35:16 +00:00
|
|
|
"file": "{{ arch }}/variants.xml",
|
|
|
|
}
|
|
|
|
hashed_directories = False
|
|
|
|
|
2023-03-30 12:21:35 +00:00
|
|
|
{% if arch == 'x86_64' %}
|
|
|
|
tree_arches = ['{{ arch }}', 'i686']
|
|
|
|
{% else %}
|
2022-06-02 15:35:16 +00:00
|
|
|
tree_arches = ['{{ arch }}']
|
2023-03-30 12:21:35 +00:00
|
|
|
{% endif %}
|
2022-06-02 15:35:16 +00:00
|
|
|
|
|
|
|
# PKGSET
|
2022-11-11 23:02:47 +00:00
|
|
|
pkgset_source = "kojimock"
|
2022-06-02 16:45:49 +00:00
|
|
|
koji_profile = "{{ product_name.lower() }}_{{ distribution_major_version }}"
|
2022-06-02 15:35:16 +00:00
|
|
|
|
|
|
|
# PKGSET - KOJI
|
|
|
|
pkgset_koji_tag = "dist-c8-compose"
|
|
|
|
pkgset_koji_inherit = False
|
|
|
|
pkgset_koji_module_tag = "dist-c8-module-compose"
|
|
|
|
pkgset_allow_reuse = False
|
|
|
|
|
2022-11-11 23:02:47 +00:00
|
|
|
|
2023-03-30 12:21:35 +00:00
|
|
|
{% if sigkeys_fingerprints %}
|
|
|
|
sigkeys = [{{ sigkeys_fingerprints | join(', ') }}]
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
2022-11-11 23:02:47 +00:00
|
|
|
|
2022-06-02 15:35:16 +00:00
|
|
|
filter_system_release_packages = False
|
|
|
|
|
|
|
|
# GATHER
|
|
|
|
gather_prepopulate = {
|
|
|
|
"scm": "git",
|
|
|
|
"repo": "https://git.almalinux.org/almalinux/pungi-almalinux.git",
|
2023-03-30 12:21:35 +00:00
|
|
|
"branch": "{{ branch }}",
|
2022-06-02 15:35:16 +00:00
|
|
|
"file": "{{ arch }}/packages.json",
|
|
|
|
}
|
|
|
|
|
|
|
|
gather_method = {
|
|
|
|
{% for variant, options in variants.items() %}
|
|
|
|
{% if options['gather_methods'] is string %}
|
|
|
|
"^{{ variant }}$": "{{ options['gather_methods'] }}",
|
|
|
|
{% else %}
|
|
|
|
"^{{ variant }}$": {
|
|
|
|
{% for source_name, gather_method in options['gather_methods'].items() %}
|
|
|
|
"{{ source_name }}": "{{ gather_method }}",
|
|
|
|
{% endfor %}
|
|
|
|
},
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
}
|
|
|
|
|
|
|
|
gather_backend = "dnf"
|
|
|
|
check_deps = True
|
|
|
|
greedy_method = "none"
|
|
|
|
repoclosure_backend = "dnf"
|
|
|
|
|
|
|
|
# CREATEREPO
|
|
|
|
createrepo_deltas = False
|
|
|
|
createrepo_database = True
|
|
|
|
createrepo_c = True
|
|
|
|
createrepo_checksum = "sha256"
|
|
|
|
createrepo_use_xz = True
|
|
|
|
createrepo_num_threads = 8
|
|
|
|
createrepo_num_workers = 4
|
|
|
|
createrepo_extra_args = [
|
|
|
|
'--distro=cpe:/o:{{ product_name.lower() }}:{{ product_name.lower() }}:{{ distribution_major_version }},{{ product_name }} {{ distribution_major_version }}',
|
2023-03-30 12:21:35 +00:00
|
|
|
'--revision={{ full_version }}',
|
2022-06-02 15:35:16 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
# CHECKSUMS
|
|
|
|
media_checksums = ['sha256']
|
|
|
|
media_checksum_one_file = True
|
|
|
|
create_jigdo = False
|
|
|
|
|
|
|
|
# BUILDINSTALL
|
|
|
|
bootable = True
|
|
|
|
buildinstall_method = "lorax"
|
|
|
|
|
|
|
|
lorax_options = [
|
|
|
|
("^.*$", {
|
|
|
|
"*": {
|
|
|
|
"noupgrade": False,
|
|
|
|
"rootfs_size": 3,
|
2023-03-30 12:21:35 +00:00
|
|
|
"version": "{{ full_version }}"
|
2022-06-02 15:35:16 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
]
|
|
|
|
|
|
|
|
buildinstall_skip = [
|
|
|
|
{% for variant, options in variants.items() %}
|
2023-03-30 12:21:35 +00:00
|
|
|
{% if options['buildinstall_skip'] is not boolean %}
|
|
|
|
("^{{ variant }}$", {{ options['buildinstall_skip'] }}),
|
|
|
|
{% elif options['buildinstall_skip'] | default(false) %}
|
2022-06-02 15:35:16 +00:00
|
|
|
("^{{ variant }}$", {
|
|
|
|
"*": True,
|
|
|
|
}),
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
]
|
|
|
|
|
|
|
|
image_name_format = {
|
|
|
|
{% for variant, options in variants.items() %}
|
|
|
|
{% if options['image_name_format'] | default(false) %}
|
|
|
|
"^{{ variant }}$": "{{ options['image_name_format'] }}",
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2023-10-25 14:58:05 +00:00
|
|
|
".*": "{release_short}-{{ full_version }}{{ beta_suffix }}{{ volume_id_beta_suffix }}-{arch}-{disc_type}{suffix}",
|
2022-06-02 15:35:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
image_volid_formats = [
|
2023-10-25 14:58:05 +00:00
|
|
|
'{release_short}-{{ full_version }}{{ beta_suffix }}{{ volume_id_beta_suffix }}-{arch}-{disc_type}',
|
2022-06-02 15:35:16 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
# CREATEISO
|
|
|
|
create_optional_isos = False
|
|
|
|
|
|
|
|
createiso_skip = [
|
|
|
|
{% for variant, options in variants.items() %}
|
|
|
|
{% if options['createiso_skip'] | default(false) %}
|
|
|
|
("^{{ variant }}$", {
|
|
|
|
"*": True,
|
|
|
|
"src": True,
|
|
|
|
}),
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
]
|
|
|
|
|
|
|
|
extra_isos = {
|
|
|
|
{% for variant, options in variants.items() %}
|
|
|
|
{% if options['extra_isos'] | default(false) %}
|
|
|
|
"{{ variant }}": {{ options['extra_isos'] }},
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
restricted_volid = True
|
|
|
|
|
|
|
|
# LOOKASIDE
|
|
|
|
variant_as_lookaside = [
|
|
|
|
{% for variant, options in variants.items() %}
|
|
|
|
{% if options['variant_as_lookaside'] | default(false) %}
|
|
|
|
{% for lookaside_variant in options['variant_as_lookaside'] %}
|
|
|
|
('{{ variant }}', '{{ lookaside_variant }}'),
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
]
|
|
|
|
|
2023-04-12 14:39:05 +00:00
|
|
|
extra_files = [
|
|
|
|
('^.*$', {
|
|
|
|
'*': [
|
|
|
|
{
|
|
|
|
"scm": "git",
|
2024-09-06 14:08:42 +00:00
|
|
|
"repo": "https://git.almalinux.org/rpms/almalinux-kitten-release.git",
|
2024-08-28 08:49:48 +00:00
|
|
|
"branch": "a{{ distribution_major_version }}s",
|
2023-04-12 14:39:05 +00:00
|
|
|
"file": [
|
2023-04-24 12:22:33 +00:00
|
|
|
'LICENSE',
|
2023-04-12 14:39:05 +00:00
|
|
|
'EULA',
|
|
|
|
'RPM-GPG-KEY-AlmaLinux-{{ distribution_major_version }}',
|
|
|
|
],
|
|
|
|
"target": "",
|
|
|
|
}
|
|
|
|
],
|
|
|
|
}),
|
|
|
|
]
|
|
|
|
|
2022-06-02 15:35:16 +00:00
|
|
|
productimg = False
|