Skip to content

Commit

Permalink
RPM flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Barry committed Jan 23, 2023
1 parent 7e528b9 commit 9a87d6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packaging/rpm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ RPMBUILD_FLAGS?=-ba\
--define '_release $(word 2,$(GEN_RPM_VER))' \
--define '_version $(word 1,$(GEN_RPM_VER))' \
--define '_origversion $(word 4, $(GEN_RPM_VER))' \
--define '_buildldflags $(CRI_DOCKERD_LDFLAGS)' \
--define '_buildldflags $(shell echo ${CRI_DOCKERD_LDFLAGS} | sed -e "s/-ldflags //")' \
$(SPECS)
RUN?=$(RPMBUILD) rpmbuild-$@/$(ARCH) $(RPMBUILD_FLAGS)

Expand Down
2 changes: 1 addition & 1 deletion packaging/rpm/SPECS/cri-dockerd.spec
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export CRI_DOCKER_GITCOMMIT=%{_gitcommit}
mkdir -p /go/src/github.com/Mirantis
ln -s /root/rpmbuild/BUILD/src/app /go/src/github.com/Mirantis/cri-dockerd
cd /root/rpmbuild/BUILD/src/app
GOPROXY="https://proxy.golang.org" GO111MODULE=on go build %{_buildldflags}
GOPROXY="https://proxy.golang.org" GO111MODULE=on go build -ldflags "%{_buildldflags}"

%check
app/cri-dockerd --version
Expand Down

0 comments on commit 9a87d6a

Please sign in to comment.