Compare commits

...
Sign in to create a new pull request.

8 commits

Author SHA1 Message Date
RH Container Bot
3e3c89ab37 oci-seccomp-bpf-hook-1.2.0-1
autobuilt v1.2.0

Signed-off-by: RH Container Bot <rhcontainerbot@fedoraproject.org>
2020-10-02 12:33:20 +00:00
Jindrich Novy
ca4891e666 oci-seccomp-bpf-hook-1.2.0-3.fc31
- use the same arch definitions as present in the bcc package

Signed-off-by: Jindrich Novy <jnovy@redhat.com>
2020-10-02 10:32:59 +02:00
Jindrich Novy
7869bef877 oci-seccomp-bpf-hook-1.2.0-2.fc31
- update to
  https://github.com/containers/oci-seccomp-bpf-hook/releases/tag/v1.2.0
- exclude armv7hl arch as bcc isnot built there

Signed-off-by: Jindrich Novy <jnovy@redhat.com>
2020-10-02 09:36:08 +02:00
RH Container Bot
c871bf6dec oci-seccomp-bpf-hook-1.2.0-1
Signed-off-by: RH Container Bot <rhcontainerbot@fedoraproject.org>
2020-08-12 10:11:44 +00:00
RH Container Bot
72c6b9184b oci-seccomp-bpf-hook-1.1.2-1
Signed-off-by: RH Container Bot <rhcontainerbot@fedoraproject.org>
2020-07-17 14:24:32 +00:00
RH Container Bot
6aad3f0c10 oci-seccomp-bpf-hook-1.1.1-1
Signed-off-by: RH Container Bot <rhcontainerbot@fedoraproject.org>
2020-06-18 14:10:05 +00:00
Lokesh Mandvekar
6381845315 oci-seccomp-bpf-hook-1.1.0-2
- update spec for autobuilder

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2020-05-25 17:00:25 -04:00
RH Container Bot
2f4ea5d087 oci-seccomp-bpf-hook-1.1.0-1
Signed-off-by: RH Container Bot <rhcontainerbot@fedoraproject.org>
2020-05-17 21:14:23 +00:00
3 changed files with 63 additions and 29 deletions

2
.gitignore vendored
View file

@ -1 +1 @@
/oci-seccomp-bpf-hook-3baa603a.tar.gz
/*.tar.gz

View file

@ -11,9 +11,14 @@
%global debug_package %{nil}
%endif
# %if ! 0% {?gobuild:1}
%define gobuild(o:) go build -tags="$BUILDTAGS" -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
#% endif
%if 0%{?rhel} > 7 && ! 0%{?fedora}
%define gobuild(o:) \
go build -buildmode pie -compiler gc -tags="rpm_crashtraceback libtrust_openssl ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -compressdwarf=false -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**};
%else
%if ! 0%{?gobuild:1}
%define gobuild(o:) GO111MODULE=off go build -buildmode pie -compiler gc -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '" -a -v -x %{?**};
%endif
%endif
%global provider github
%global provider_tld com
@ -23,22 +28,19 @@
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path %{provider_prefix}
%global git0 https://%{provider}.%{provider_tld}/%{project}/%{repo}
%global commit0 3baa603ae910f2aad29ea694b78b2f7f34b5d5ce
%global shortcommit0 %(c=%{commit0}; echo ${c:0:8})
# bcc is built only for these arches
# use the same arch definitions as present in the bcc package
ExclusiveArch: x86_64 %{power64} aarch64 s390x
Name: oci-seccomp-bpf-hook
Version: 0.0.1
Release: 0.5.git%{shortcommit0}%{?dist}
Version: 1.2.0
Release: 1%{?dist}
Summary: OCI Hook to generate seccomp json files based on EBF syscalls used by container
License: ASL 2.0
URL: %{git0}
Source0: %{git0}/archive/%{commit0}/%{repo}-%{shortcommit0}.tar.gz
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
BuildRequires: golang-github-cpuguy83-md2man
Source0: %{git0}/archive/v%{version}.tar.gz
BuildRequires: golang
BuildRequires: go-md2man
BuildRequires: glib2-devel
BuildRequires: glibc-devel
BuildRequires: bcc-devel
@ -46,25 +48,25 @@ BuildRequires: git
BuildRequires: gpgme-devel
BuildRequires: libseccomp-devel
BuildRequires: make
Enhances: podman
Enhances: cri-o
%description
%{summary}
%{repo} provides a library for applications looking to use
the Container Pod concept popularized by Kubernetes.
%package remote
Summary: Remote Oci-Seccomp-Bpf client
%description remote
%{summary}
%{repo} provides a library for applications looking to use
the Container Pod concept popularized by Kubernetes.
%prep
%autosetup -Sgit -n %{repo}-%{commit0}
%autosetup -Sgit
sed -i '/$(MAKE) -C docs install/d' Makefile
sed -i 's/HOOK_BIN_DIR/\%{_usr}\/libexec\/oci\/hooks.d/' %{name}.json
sed -i '/$(HOOK_DIR)\/%{name}.json/d' Makefile
%build
export GO111MODULE=off
export GOPATH=$(pwd):$(pwd)/_build
export CGO_CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
mkdir _build
pushd _build
mkdir -p src/%{provider}.%{provider_tld}/%{project}
@ -73,13 +75,16 @@ popd
ln -s vendor src
export GOPATH=$(pwd)/_build:$(pwd)
export GO111MODULE=off
export BUILDTAGS=""
BUILDTAGS=$BUILDTAGS %gobuild -o bin/%{name} %{import_path}
%{__make} docs
export LDFLAGS="-X main.version=%{version}"
%gobuild -o bin/%{name} %{import_path}
pushd docs
go-md2man -in %{name}.md -out %{name}.1
popd
%install
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} ETCDIR=%{buildroot}%{_sysconfdir} OCI-SECCOMP-BPF_VERSION=%{version} install
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install-nobuild
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} GOMD2MAN=go-md2man -C docs install-nobuild
%check
%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
@ -110,6 +115,35 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
%{_mandir}/man1/%{name}.1*
%changelog
* Fri Oct 2 2020 RH Container Bot <rhcontainerbot@fedoraproject.org> - 1.2.0-1
- autobuilt v1.2.0
* Fri Oct 02 2020 Jindrich Novy <jnovy@redhat.com> - 1.2.0-3
- use the same arch definitions as present in the bcc package
* Fri Oct 02 2020 Jindrich Novy <jnovy@redhat.com> - 1.2.0-2
- update to
https://github.com/containers/oci-seccomp-bpf-hook/releases/tag/v1.2.0
- exclude armv7hl arch as bcc isnot built there
* Wed Aug 12 10:11:04 GMT 2020 RH Container Bot <rhcontainerbot@fedoraproject.org> - 1.2.0-1
- autobuilt v1.2.0
* Fri Jul 17 14:23:58 GMT 2020 RH Container Bot <rhcontainerbot@fedoraproject.org> - 1.1.2-1
- autobuilt v1.1.2
* Thu Jun 18 2020 RH Container Bot <rhcontainerbot@fedoraproject.org> - 1.1.1-1
- autobuilt v1.1.1
* Mon May 18 2020 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.1.0-2
- update spec for autobuilder
* Sun May 17 2020 RH Container Bot <rhcontainerbot@fedoraproject.org> - 1.1.0-1
- autobuilt v1.1.0
* Mon Feb 17 2020 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.0.1-0.6.gitba7bbb16
- Resolves: #1799105 - solve ftbfs and build latest upstream commit
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.1-0.5.git3baa603a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

View file

@ -1 +1 @@
SHA512 (oci-seccomp-bpf-hook-3baa603a.tar.gz) = c2a6cbd5a16e2c60f8a2dabb377918d4e161e39570b42ec73de51eb139950b8be4b278b3952987af8df0b7327b06d5fcc1dc13bda35083b0c037b9ebc0f354af
SHA512 (v1.2.0.tar.gz) = 9d686380bd250278b038660fa13085801396493bcfd71754d943840ad9af47f6206c33515b4a876460c67e8e2092fe22493d1c64acafff9d24585cb713c0b888