53 lines
1.9 KiB
YAML
53 lines
1.9 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 repositories/almalinux* %{buildroot}%{_datadir}/osbuild-composer/repositories/
|
|
install -m 0644 -vp repositories/kitten-10* %{buildroot}%{_datadir}/osbuild-composer/repositories/
|
|
%else
|
|
# AL8 supports in AL9 and AL8
|
|
install -m 0644 -vp repositories/almalinux-8* %{buildroot}%{_datadir}/osbuild-composer/repositories/
|
|
%if 0%{?rhel} == 9
|
|
install -m 0644 -vp 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
|
|
|
|
- modify_release:
|
|
- suffix: ".alma.1"
|
|
enabled: true
|
|
|
|
- changelog_entry:
|
|
- name: "Eduard Abdullin"
|
|
email: "eabdullin@almalinux.org"
|
|
line:
|
|
- "Add AlmaLinux support patch"
|
|
- "Add AlmaLinux-Kitten support patch"
|
|
|
|
- add_files:
|
|
- type: "patch"
|
|
name: "0001-Remove-libreport-rhel-anaconda-bugzilla-from-anacond.patch"
|
|
number: 1001
|
|
- type: "patch"
|
|
name: "0002-Add-AlmaLinux-support.patch"
|
|
number: 1002
|
|
- type: "patch"
|
|
name: "0003-Add-AlmaLinux-Kitten-support.patch"
|
|
number: 1003
|