libguestfs/config.yaml
2025-04-08 15:40:26 +03:00

45 lines
1.5 KiB
YAML

actions:
- replace:
- target: "spec"
find: |
if ping -c 3 -w 20 8.8.8.8 && wget http://libguestfs.org -O /dev/null; then
extra=
else
mkdir cachedir repo
# -n 1 because of RHBZ#980502.
find /var/cache/{dnf,yum} -type f -name '*.rpm' -print0 | \
xargs -0 -n 1 cp -t repo
createrepo_c repo
sed -e "s|@PWD@|$(pwd)|" %{SOURCE6} > yum.conf
extra=--with-supermin-packager-config=$(pwd)/yum.conf
fi
replace: |
# AlmaLinux: avoid permission denied for yum/dnf cache
mkdir cachedir
sed -e "s|/var/cache/yum|$(pwd)/cachedir|" -e "s|/var/cache/dnf|$(pwd)/cachedir|" /etc/dnf/dnf.conf > yum.conf
extra=--with-supermin-packager-config=$(pwd)/yum.conf
count: 1
- target: "spec"
find: |
# No qemu-kvm on POWER (RHBZ#1946532).
ExcludeArch: %{power64}
replace: |
%if 0%{?almalinux} < 9
# No qemu-kvm on POWER (RHBZ#1946532).
ExcludeArch: %{power64}
%endif
count: 1
- modify_release:
- suffix: ".alma.1"
enabled: true
- changelog_entry:
- name: "Eduard Abdullin"
email: "eabdullin@almalinux.org"
line:
- "Fix build for AlmaLinux"
- "Avoid permission denied for yum/dnf cache"
- "Enable building for ppc64le"