forked from pool/buildah
Accepting request 624691 from devel:CaaSP:Head:ControllerNode
autosubmit from concourse OBS-URL: https://build.opensuse.org/request/show/624691 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/buildah?expand=0&rev=6
This commit is contained in:
13
buildah.spec
13
buildah.spec
@@ -23,7 +23,7 @@
|
||||
%define with_libostree 1
|
||||
%endif
|
||||
Name: buildah
|
||||
Version: 1.1
|
||||
Version: 1.2
|
||||
Release: 0
|
||||
Summary: Tool for building OCI containers
|
||||
License: Apache-2.0
|
||||
@@ -89,7 +89,8 @@ export BUILDTAGS="seccomp apparmor containers_image_ostree_stub"
|
||||
|
||||
# Build buildah
|
||||
go build -tags "$BUILDTAGS" \
|
||||
-i -ldflags '-s -w -X main.gitCommit=%{commit} -X main.buildInfo='$SOURCE_DATE_EPOCH'' \
|
||||
-buildmode=pie \
|
||||
-ldflags '-s -w -X main.gitCommit=%{commit} -X main.buildInfo='$SOURCE_DATE_EPOCH'' \
|
||||
-o bin/buildah \
|
||||
%{project}/cmd/buildah
|
||||
|
||||
@@ -105,15 +106,15 @@ cd $HOME/go/src/%{project}
|
||||
|
||||
install -D -m 0755 bin/buildah %{buildroot}/%{_bindir}/buildah
|
||||
install -d %{buildroot}/%{_mandir}/man1
|
||||
install -m 0644 docs/buildah-*.1 %{buildroot}/%{_mandir}/man1
|
||||
install -D -m 0644 contrib/completions/bash/buildah %{buildroot}/%{_sysconfdir}/bash_completion.d/buildah
|
||||
install -m 0644 docs/buildah*.1 %{buildroot}/%{_mandir}/man1
|
||||
install -D -m 0644 contrib/completions/bash/buildah %{buildroot}/%{_datadir}/bash-completion/completions/buildah
|
||||
|
||||
%fdupes %{buildroot}/%{_prefix}
|
||||
|
||||
%files
|
||||
%{_bindir}/buildah
|
||||
%{_mandir}/man1/buildah-*
|
||||
%config %{_sysconfdir}/bash_completion.d/buildah
|
||||
%{_mandir}/man1/buildah*
|
||||
%{_datadir}/bash-completion/completions/buildah
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user