commit 53a4d4cf4527068a6835f6bf227c0a7645bf3447 Author: Sofia Boldyreva Date: Mon Jan 27 14:32:35 2025 +0100 Initial commit diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..f479160 --- /dev/null +++ b/config.yaml @@ -0,0 +1,32 @@ +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 + + - 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"