forked from jengelh/libseccomp
Accepting request 133335 from home:jengelh:dev
OBS-URL: https://build.opensuse.org/request/show/133335 OBS-URL: https://build.opensuse.org/package/show/security/libseccomp?expand=0&rev=1
This commit is contained in:
commit
14af8e3b75
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
36
0001-build-use-ac-variables-in-pkgconfig-file.patch
Normal file
36
0001-build-use-ac-variables-in-pkgconfig-file.patch
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
From 788415e60f153bdf438c70ada9d294da95ef16e0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jan Engelhardt <jengelh@inai.de>
|
||||||
|
Date: Sat, 8 Sep 2012 05:55:42 +0200
|
||||||
|
Subject: [PATCH] build: use ac variables in pkgconfig file
|
||||||
|
|
||||||
|
Signed-off-by: Jan Engelhardt <jengelh@inai.de>
|
||||||
|
---
|
||||||
|
libseccomp.pc.in | 9 +++++----
|
||||||
|
1 files changed, 5 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/libseccomp.pc.in b/libseccomp.pc.in
|
||||||
|
index c195831..a863351 100644
|
||||||
|
--- a/libseccomp.pc.in
|
||||||
|
+++ b/libseccomp.pc.in
|
||||||
|
@@ -19,13 +19,14 @@
|
||||||
|
# along with this library; if not, see <http://www.gnu.org/licenses>.
|
||||||
|
#
|
||||||
|
|
||||||
|
-prefix=%%INSTALL_PREFIX%%
|
||||||
|
-libdir=%%INSTALL_LIBDIR%%
|
||||||
|
-includedir=${prefix}/include
|
||||||
|
+prefix=@prefix@
|
||||||
|
+exec_prefix=@exec_prefix@
|
||||||
|
+libdir=@libdir@
|
||||||
|
+includedir=@includedir@
|
||||||
|
|
||||||
|
Name: libseccomp
|
||||||
|
Description: The enhanced seccomp library
|
||||||
|
URL: http://libseccomp.sf.net
|
||||||
|
-Version: %%VERSION_RELEASE%%
|
||||||
|
+Version: @PACKAGE_VERSION@
|
||||||
|
Cflags: -I${includedir}
|
||||||
|
Libs: -L${libdir} -lseccomp
|
||||||
|
--
|
||||||
|
1.7.7
|
||||||
|
|
1189
0001-build-use-autotools-as-build-system.diff
Normal file
1189
0001-build-use-autotools-as-build-system.diff
Normal file
File diff suppressed because it is too large
Load Diff
3
libseccomp-1.0.0+AM.tar.xz
Normal file
3
libseccomp-1.0.0+AM.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:17df89b93ee975d1ae203e81e9bece1030d8cf31f228f65d0d4c43d09c7ae801
|
||||||
|
size 254748
|
4
libseccomp.changes
Normal file
4
libseccomp.changes
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Sep 8 03:50:02 UTC 2012 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Initial package (version 1.0.0) for build.opensuse.org
|
104
libseccomp.spec
Normal file
104
libseccomp.spec
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
#
|
||||||
|
# spec file for package libseccomp
|
||||||
|
#
|
||||||
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: libseccomp
|
||||||
|
%define lname libseccomp0
|
||||||
|
Version: 1.0.0
|
||||||
|
Release: 0
|
||||||
|
Summary: An enhanced Seccomp (mode 2) helper library
|
||||||
|
License: LGPL-2.1
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
URL: http://sf.net/projects/seccomp/
|
||||||
|
|
||||||
|
#DL-URL: http://downloads.sf.net/libseccomp/libseccomp-1.0.0.tar.gz
|
||||||
|
#Git-Clone: git://git.code.sf.net/p/libseccomp/libseccomp
|
||||||
|
Source: %name-%version+AM.tar.xz
|
||||||
|
Patch1: 0001-build-use-ac-variables-in-pkgconfig-file.patch
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: xz
|
||||||
|
|
||||||
|
%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.
|
||||||
|
|
||||||
|
%package -n %lname
|
||||||
|
Summary: An enhanced Seccomp (mode 2) helper library
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n %lname
|
||||||
|
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.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for libseccomp, an enhanced Seccomp (mode 2) helper library
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: %lname = %version
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
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 contains the development files for libseccomp.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%if 0%{?__xz:1}
|
||||||
|
%setup -qn %name
|
||||||
|
%else
|
||||||
|
tar -xf "%{S:0}" --use=xz;
|
||||||
|
%setup -DTqn %name
|
||||||
|
%endif
|
||||||
|
%patch -P 1 -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --includedir=%_includedir/%name-%version
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
b="%buildroot";
|
||||||
|
make install DESTDIR="$b";
|
||||||
|
find "$b/%_libdir" -type f -name "*.la" -delete;
|
||||||
|
|
||||||
|
%post -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files -n %lname
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%_libdir/%name.so.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%_mandir/man3/seccomp_*.3*
|
||||||
|
%_includedir/%name-%version
|
||||||
|
%_libdir/%name.so
|
||||||
|
%_libdir/pkgconfig/%name.pc
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user