pungi-almalinux/pungi-build.conf.j2

170 lines
4.6 KiB
Plaintext
Raw Normal View History

from include_exclude import *
from multilib import *
# PRODUCT INFO
release_name = "{{ product_name }}"
release_short = "{{ product_name }}"
release_version = "{{ distribution_major_version }}.{{ distribution_minor_version }}"
treeinfo_version = "{{ distribution_major_version }}"
# GENERAL SETTINGS
comps_file = {
"scm": "git",
"repo": "https://git.almalinux.org/almalinux/pungi-almalinux.git",
"branch": "a{{ distribution_major_version }}.{{ distribution_minor_version }}{{ '-beta' if beta_suffix is defined and beta_suffix else '' }}",
"file": "{{ arch }}/comps.xml",
}
link_type = 'hardlink'
module_defaults_dir = 'koji/module_defaults'
variants_file = {
"scm": "git",
"repo": "https://git.almalinux.org/almalinux/pungi-almalinux.git",
"branch": "a{{ distribution_major_version }}.{{ distribution_minor_version }}{{ '-beta' if beta_suffix is defined and beta_suffix else '' }}",
"file": "{{ arch }}/variants.xml",
}
hashed_directories = False
tree_arches = ['{{ arch }}']
# PKGSET
2022-11-11 23:02:47 +00:00
pkgset_source = "kojimock"
koji_profile = "{{ product_name.lower() }}_{{ distribution_major_version }}"
# 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
sigkeys = [
{% for sigkey in sigkeys_fingerprints %}
"{{ sigkey }}",
{% endfor %}
]
filter_system_release_packages = False
# GATHER
gather_prepopulate = {
"scm": "git",
"repo": "https://git.almalinux.org/almalinux/pungi-almalinux.git",
"branch": "a{{ distribution_major_version }}.{{ distribution_minor_version }}{{ '-beta' if beta_suffix is defined and beta_suffix else '' }}",
"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 }}',
'--revision={{ distribution_major_version }}.{{ distribution_minor_version }}',
]
# 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,
"version": "{{ distribution_major_version }}.{{ distribution_minor_version }}"
}
})
]
buildinstall_skip = [
{% for variant, options in variants.items() %}
{% if options['buildinstall_skip'] | default(false) %}
("^{{ 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 %}
".*": "{release_short}-{{ distribution_major_version }}.{{ distribution_minor_version }}{{ beta_suffix }}-{arch}-{disc_type}{suffix}",
}
image_volid_formats = [
'{release_short}-{{ distribution_major_version }}.{{ distribution_minor_version }}{{ beta_suffix }}-{arch}-{disc_type}',
]
# 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 %}
]
productimg = False