-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |