Skip to content

Commit

Permalink
try to fix Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
kilesduli committed Oct 3, 2024
1 parent 6c3c25c commit cc5e62c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .copr/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
src := $(shell pwd)/.copr
tag=

srpm:
dnf -y install git rpmdevtools golang rpmautospec rpkg
srpm: dep
pushd $(src)
$(eval tag=$(shell git tag -l 'v*' --sort=-v:refname | head -n 1))
@echo $(tag)
spectool -g artalk.spec
./vendor-tarball.sh ${tag}
./vendor-tarball.sh $(tag)
git stash # make sure workspace is empty.
cp changelog artalk.spec ../
git add ../changelog ../artalk.spec && git commit -m "for rpmautospec [skip changelog]"
rpmautospec process-distgit ../artalk.spec artalk.spec
git stash pop # pop it!
mkdir -p $(outdir)
rpkg srpm --spec artalk.spec --outdir=$(outdir)
popd

dep:
dnf -y install git rpmdevtools golang rpmautospec rpkg

0 comments on commit cc5e62c

Please sign in to comment.