From 339fc34766e90dc1d647c09ed94e799b153e1849 Mon Sep 17 00:00:00 2001 From: HuijingHei Date: Fri, 13 Sep 2024 23:05:28 +0800 Subject: [PATCH] spec: %autorelease can't be resolved by COPR Fix copr build error: `line 11: Possible unexpanded macro in: Release: %autorelease` --- .copr/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/.copr/Makefile b/.copr/Makefile index 5f9e58fa15..e9c855266b 100644 --- a/.copr/Makefile +++ b/.copr/Makefile @@ -6,5 +6,6 @@ srpm: curl -LO https://src.fedoraproject.org/rpms/ostree/raw/rawhide/f/ostree.spec sed -ie "s,^Version:.*,Version: $$(git describe --always --tags --match 'v2???.*' | sed -e 's,-,\.,g' -e 's,^v,,')," ostree.spec sed -ie 's/^Patch/# Patch/g' ostree.spec # we don't want any downstream patches + sed -i 's,%autorelease,1%{?dist},g' ostree.spec # COPR does not support autorelease macro rpmbuild -bs --define "_sourcedir ${PWD}" --define "_specdir ${PWD}" --define "_builddir ${PWD}" --define "_srcrpmdir ${PWD}" --define "_rpmdir ${PWD}" --define "_buildrootdir ${PWD}/.build" ostree.spec mv *.src.rpm $$outdir