mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-21 13:34:34 +03:00
spec: %autorelease can't be resolved by COPR
Fix copr build error: `line 11: Possible unexpanded macro in: Release: %autorelease`
This commit is contained in:
parent
b18e78bfb8
commit
339fc34766
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user