55 lines
2.1 KiB
YAML
55 lines
2.1 KiB
YAML
actions:
|
|
- replace:
|
|
- target: "spec"
|
|
find: |
|
|
# CentOS also defines rhel so we check for centos first
|
|
%if 0%{?centos}
|
|
|
|
# CentOS 9 supports building for CentOS 8 and later
|
|
%if 0%{?centos} >= 9
|
|
install -m 0644 -vp repositories/centos-* %{buildroot}%{_datadir}/osbuild-composer/repositories/
|
|
replace: |
|
|
%if 0%{?almalinux}
|
|
%if 0%{?almalinux} >= 9
|
|
install -m 0644 -vp repositories/almalinux-* %{buildroot}%{_datadir}/osbuild-composer/repositories/
|
|
count: 1
|
|
- target: "spec"
|
|
find: |
|
|
# CentOS 8 only supports building for CentOS 8
|
|
install -m 0644 -vp repositories/centos-%{centos}* %{buildroot}%{_datadir}/osbuild-composer/repositories/
|
|
install -m 0644 -vp repositories/centos-stream-%{centos}* %{buildroot}%{_datadir}/osbuild-composer/repositories/
|
|
|
|
%endif
|
|
%else
|
|
%if 0%{?rhel}
|
|
# RHEL 9 supports building for RHEL 8 and later
|
|
%if 0%{?rhel} >= 9
|
|
install -m 0644 -vp repositories/rhel-* %{buildroot}%{_datadir}/osbuild-composer/repositories/
|
|
|
|
%else
|
|
# RHEL 8 only supports building for 8
|
|
install -m 0644 -vp repositories/rhel-%{rhel}* %{buildroot}%{_datadir}/osbuild-composer/repositories/
|
|
|
|
%endif
|
|
replace: "install -m 0644 -vp repositories/almalinux-8* %{buildroot}%{_datadir}/osbuild-composer/repositories/"
|
|
count: 1
|
|
|
|
- modify_release:
|
|
- suffix: ".alma.1"
|
|
enabled: true
|
|
|
|
- changelog_entry:
|
|
- name: "Eduard Abdullin"
|
|
email: "eabdullin@almalinux.org"
|
|
line:
|
|
- "Install AlmaLinux repositories"
|
|
- "Add AlmaLinux support"
|
|
|
|
- add_files:
|
|
- type: "patch"
|
|
name: "0001-AlmaLinux-support-patch.patch"
|
|
number: 100
|
|
- type: "patch"
|
|
name: "0001-Remove-libreport-rhel-anaconda-bugzilla-from-anacond.patch"
|
|
number: 101
|