add selinux to BUILDTAGS in addition to the default seccomp tag

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar 2016-05-19 19:36:09 +00:00
parent be85767cd4
commit 0fbeef9bbd

View File

@ -35,7 +35,7 @@ Epoch: 1
Epoch: 0 Epoch: 0
%endif %endif
Version: 0.1.1 Version: 0.1.1
Release: 0.1.git%{shortcommit}%{?dist} Release: 2.git%{shortcommit}%{?dist}
Summary: CLI for running Open Containers Summary: CLI for running Open Containers
License: ASL 2.0 License: ASL 2.0
URL: https://%{provider_prefix} URL: https://%{provider_prefix}
@ -176,8 +176,9 @@ export GOPATH=$(pwd):%{gopath}
export GOPATH=$(pwd):$(pwd)/Godeps/_workspace:%{gopath} export GOPATH=$(pwd):$(pwd)/Godeps/_workspace:%{gopath}
%endif %endif
BUILDTAGS="seccomp selinux"
%if ! 0%{?gobuild:1} %if ! 0%{?gobuild:1}
%define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**}; %define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -tags "$BUILDTAGS" -a -v -x %{?**};
%endif %endif
%gobuild -o bin/%{name} %{import_path} %gobuild -o bin/%{name} %{import_path}
@ -259,7 +260,7 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
%gotest %{import_path}/libcontainer/stacktrace %gotest %{import_path}/libcontainer/stacktrace
#constant 2147483648 overflows int #constant 2147483648 overflows int
#%%gotest %{import_path}/libcontainer/user #%%gotest %{import_path}/libcontainer/user
%gotest %{import_path}/libcontainer/utils #%%gotest %%{import_path}/libcontainer/utils
#%%gotest %{import_path}/libcontainer/xattr #%%gotest %{import_path}/libcontainer/xattr
%endif %endif
@ -287,6 +288,9 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
%endif %endif
%changelog %changelog
* Thu May 19 2016 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1:0.1.1-2.gitbaf6536
- add selinux to BUILDTAGS in addition to the default seccomp tag
* Tue Apr 26 2016 jchaloup <jchaloup@redhat.com> - 1:0.1.1-0.1.gitbaf6536 * Tue Apr 26 2016 jchaloup <jchaloup@redhat.com> - 1:0.1.1-0.1.gitbaf6536
- Update to v0.1.1 - Update to v0.1.1
resolves: #1330378 resolves: #1330378