diff --git a/.gitignore b/.gitignore index ba47396..d5aa5ac 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /ebpf-5d50e74ed36f0420ef5004e84ed2cdd3e739ad3f.tar.gz /ebpf-1c8d4c9ef7759622653a1d319284a44652333b28.tar.gz /ebpf-0.3.0.tar.gz +/ebpf-0.8.0.tar.gz diff --git a/golang-github-cilium-ebpf.spec b/golang-github-cilium-ebpf.spec index eca8fd7..1f4a324 100644 --- a/golang-github-cilium-ebpf.spec +++ b/golang-github-cilium-ebpf.spec @@ -1,37 +1,28 @@ -# Generated by go2rpm 1 +# Generated by go2rpm 1.6.0 # Needs privileges %bcond_with check # https://github.com/cilium/ebpf %global goipath github.com/cilium/ebpf -Version: 0.3.0 +Version: 0.8.0 %gometa %global common_description %{expand: -eBPF is a pure Go library that provides utilities for loading, compiling, and -debugging eBPF programs. It has minimal external dependencies and is intended to -be used in long running processes.} +EBPF Library for Go.} %global golicenses LICENSE -%global godocs CODE_OF_CONDUCT.md readme.md +%global godocs examples README.md CONTRIBUTING.md CODE_OF_CONDUCT.md\\\ + ARCHITECTURE.md cmd/bpf2go/README.md Name: %{goname} Release: %autorelease -Summary: eBPF Library for Go +Summary: EBPF Library for Go License: MIT URL: %{gourl} Source0: %{gosource} -BuildRequires: golang(golang.org/x/sys/unix) - -%if %{with check} -# Tests -BuildRequires: golang(github.com/google/go-cmp/cmp) -BuildRequires: golang(github.com/google/go-cmp/cmp/cmpopts) -%endif - %description %{common_description} @@ -40,14 +31,28 @@ BuildRequires: golang(github.com/google/go-cmp/cmp/cmpopts) %prep %goprep +%generate_buildrequires +%go_generate_buildrequires + +%build +%gobuild -o %{gobuilddir}/bin/bpf2go %{goipath}/cmd/bpf2go + %install %gopkginstall +install -m 0755 -vd %{buildroot}%{_bindir} +install -m 0755 -vp %{gobuilddir}/bin/bpf2go %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif +%files +%license LICENSE +%doc examples README.md CONTRIBUTING.md CODE_OF_CONDUCT.md ARCHITECTURE.md +%doc cmd/bpf2go/README.md +%{_bindir}/bpf2go + %gopkgfiles %changelog diff --git a/sources b/sources index 6ac6310..3c6d814 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ebpf-0.3.0.tar.gz) = d1a99a25e7fd92e05e062be26dfd416371aba5fbfdb541566a69313601ca98880c8a9e29b597eb6ce49dc34381d5abf8874f7bc70fdb9e263d47d1d60505e289 +SHA512 (ebpf-0.8.0.tar.gz) = 9a25e7f923964f5e69d78b0482360f022cdd38bc49b9b9b1444412d59fb3691ee85e1b018fc1aff727f51181c187c9a2e2607d8ec8238f2f4e15df355c9e9512