Skip to content

Commit

Permalink
Merge pull request #1121 from lebauce/fix-copr
Browse files Browse the repository at this point in the history
ci: fix copr build
safchain authored Jun 21, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 521a5ff + 368d8ac commit 975919f
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion contrib/packaging/rpm/skydive.spec
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@
%define gotest() go test -compiler gc -ldflags "${LDFLAGS:-}" %{?**};
%endif

%define extracttag() %(eval "echo %1 | cut -d '-' -f 2-")
%define extracttag() %(eval "echo %1 | cut -s -d '-' -f 2-")
%define extractversion() %(eval "echo %1 | cut -d '-' -f 1")
%define normalize() %(eval "echo %1 | tr '-' '.'")

@@ -19,8 +19,10 @@

%if %{defined fullver}
%define vertag %extracttag %{fullver}
%if "%{vertag}" != ""
%define tag %normalize 0.%{vertag}
%endif
%endif

%{!?fullver:%global fullver 0.18.0}
%define version %{extractversion %{fullver}}
3 changes: 2 additions & 1 deletion scripts/ci/build-copr.sh
Original file line number Diff line number Diff line change
@@ -24,7 +24,8 @@ token = $COPR_TOKEN
copr_url = https://copr.fedorainfracloud.org
EOF

contrib/packaging/rpm/generate-skydive-bootstrap.sh -s -r ${TAG}
gitdir=$(cd "$(dirname "$0")/../.."; pwd)
make -s -C $gitdir srpm

if [ -n "$DRY_RUN" ]; then
echo "Running in dry run mode. Do not build package."

0 comments on commit 975919f

Please sign in to comment.