osbuild-composer/config.yaml
2025-11-13 23:04:36 +03:00

45 lines
1.6 KiB
YAML

actions:
- replace:
- target: "spec"
find: "# CentOS also defines rhel so we check for centos first"
replace: |
# CentOS also defines rhel so we check for centos first
%if 0%{?almalinux}
# AL10 support all AL versions
%if 0%{?almalinux} >= 10
install -m 0644 -vp vendor/github.com/osbuild/images/data/repositories/almalinux* %{buildroot}%{_datadir}/osbuild-composer/repositories/
%else
# AL8 supports in AL9 and AL8
install -m 0644 -vp vendor/github.com/osbuild/images/data/repositories/almalinux-8* %{buildroot}%{_datadir}/osbuild-composer/repositories/
%if 0%{?rhel} == 9
install -m 0644 -vp vendor/github.com/osbuild/images/data/repositories/almalinux-9* %{buildroot}%{_datadir}/osbuild-composer/repositories/
%endif
%endif
%else
# Check for CentOS
count: 1
- target: "spec"
find: "# Fedora can build for all included fedora releases"
replace: |
%endif
# Fedora can build for all included fedora releases
count: 1
- add_files:
- type: "patch"
name: "0001-Backport-https-github.com-osbuild-images-pull-1926.patch"
number: "Latest"
- modify_release:
- suffix: ".alma.2"
enabled: true
- changelog_entry:
- name: "Eduard Abdullin"
email: "eabdullin@almalinux.org"
line:
- "Add AlmaLinux repositories"