]> git.pld-linux.org Git - packages/golang-libseccomp.git/commitdiff
- new auto/th/golang-libseccomp-0.9.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 4 Apr 2017 16:36:58 +0000 (18:36 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 4 Apr 2017 16:36:58 +0000 (18:36 +0200)
golang-libseccomp.spec [new file with mode: 0644]

diff --git a/golang-libseccomp.spec b/golang-libseccomp.spec
new file mode 100644 (file)
index 0000000..e9f47bf
--- /dev/null
@@ -0,0 +1,76 @@
+#
+# Conditional build:
+%bcond_without tests           # syntax check
+%bcond_with    tests_kernel    # "make check" (requires seccomp aware kernel)
+%bcond_with    gccgo           # use gcc-go instead of golang
+
+%ifnarch %{ix86} %{x8664} %{arm} aarch64 mips64 mips64le ppc64 ppc64le s390x
+%define        with_gccgo      1
+%endif
+Summary:       Go language bindings for the libseccomp project
+Summary(pl.UTF-8):     Wiązania języka Go do projektu libseccomp
+Name:          golang-libseccomp
+Version:       0.9.0
+Release:       1
+License:       BSD
+Group:         Libraries
+#Source0Download: https://github.com/seccomp/libseccomp-golang/releases
+Source0:       https://github.com/seccomp/libseccomp-golang/archive/v%{version}/libseccomp-golang-%{version}.tar.gz
+# Source0-md5: 1395f1bf9534d28852f664daba703e83
+URL:           https://github.com/seccomp/libseccomp-golang
+%if %{with tests}
+%{?with_gccgo:BuildRequires:   gcc-go >= 6:4.8.4}
+%{!?with_gccgo:BuildRequires:  golang >= 1.2.1}
+%endif
+%{?with_gccgo:Requires:        gcc-go >= 6:4.8.4}
+%{!?with_gccgo:Requires:       golang >= 1.2.1}
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The libseccomp library provides and easy to use, platform independent,
+interface to the Linux Kernel's syscall filtering mechanism: seccomp.
+The libseccomp API is designed to abstract away the underlying BPF
+based syscall filter language and present a more conventional
+function-call based filtering interface that should be familiar to,
+and easily adopted by application developers.
+
+This package provides a Go based interface to the libseccomp library.
+
+%description -l pl.UTF-8
+Biblioteka libseccomp udostępnia łatwy w użyciu, niezależny od
+platformy interfejs do mechanizmu filtrowania wywołań systemowych
+jądra Linuksa - seccomp. API libseccomp jest zaprojektowane tak, żeby
+wyabstrahować język filtrowania wywołań BPF niższego poziomu i
+zaprezentować bardziej konwencjonalny interfejs filtrowania w oparciu
+o wywołania funkcji, który powinien być bardziej przyjazny i łatwiej
+adaptowalny dla programistów aplikacji.
+
+Ten pakiet udostępnia interfejs języka Go do biblioteki libseccomp.
+
+%prep
+%setup -q -n libseccomp-golang-%{version}
+
+%build
+%if %{with tests}
+# perform test-build to check syntax
+%{__make}
+
+%{?with_tests_kernel:%{__make} check}
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_libdir}/golang/src/github.com/seccomp/libseccomp-golang
+
+cp -p *.go $RPM_BUILD_ROOT%{_libdir}/golang/src/github.com/seccomp/libseccomp-golang
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG LICENSE README
+# XXX: github.com is shared
+%dir %{_libdir}/golang/src/github.com
+%dir %{_libdir}/golang/src/github.com/seccomp
+%{_libdir}/golang/src/github.com/seccomp/libseccomp-golang
This page took 0.071988 seconds and 4 git commands to generate.