Skip to content

Commit

Permalink
Merge pull request ostreedev#3302 from HuijingHei/fix-version
Browse files Browse the repository at this point in the history
spec: %autorelease can't be resolved by COPR
  • Loading branch information
cgwalters authored Sep 15, 2024
2 parents 1e43036 + 339fc34 commit 6a337d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .copr/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6a337d6

Please sign in to comment.