2012-09-08 09:16:56 +02:00
|
|
|
#
|
|
|
|
# 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
|
2012-11-14 15:18:55 +01:00
|
|
|
%define lname libseccomp1
|
|
|
|
Version: 1.0.1
|
2012-09-08 09:16:56 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: An enhanced Seccomp (mode 2) helper library
|
|
|
|
License: LGPL-2.1
|
|
|
|
Group: Development/Libraries/C and C++
|
2012-09-08 10:12:33 +02:00
|
|
|
Url: http://sf.net/projects/seccomp/
|
2012-11-15 01:48:06 +01:00
|
|
|
|
|
|
|
#DL-URL: http://downloads.sf.net/libseccomp/libseccomp-1.0.1.tar.gz
|
2012-09-08 09:16:56 +02:00
|
|
|
#Git-Clone: git://git.code.sf.net/p/libseccomp/libseccomp
|
2012-11-14 15:18:55 +01:00
|
|
|
Source: http://downloads.sf.net/libseccomp/libseccomp-%{version}.tar.gz
|
2012-09-08 10:12:33 +02:00
|
|
|
Patch1: 0001-build-use-ac-variables-in-pkgconfig-file.patch
|
2012-11-15 01:48:06 +01:00
|
|
|
Patch2: 0001-build-use-autotools-as-build-system.patch
|
2012-09-08 09:16:56 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: pkgconfig
|
2012-11-15 01:48:06 +01:00
|
|
|
BuildRequires: python-Cython
|
|
|
|
BuildRequires: python-devel
|
2012-09-08 09:16:56 +02:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2012-11-15 01:48:06 +01:00
|
|
|
%package -n python-%name
|
|
|
|
Summary: Python bindings for Seccomp (mode 2)
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
|
|
|
|
%description -n python-%name
|
|
|
|
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.
|
|
|
|
|
2012-09-08 09:16:56 +02:00
|
|
|
%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
|
2012-11-14 15:18:55 +01:00
|
|
|
%setup -q
|
2012-11-15 01:48:06 +01:00
|
|
|
%patch -P 1 -P 2 -p1
|
2012-09-08 09:16:56 +02:00
|
|
|
|
|
|
|
%build
|
2012-11-15 01:48:06 +01:00
|
|
|
./autogen.sh;
|
|
|
|
%configure --includedir=%_includedir/%name-%version --enable-python
|
|
|
|
make V=1 %{?_smp_mflags};
|
2012-09-08 09:16:56 +02:00
|
|
|
|
|
|
|
%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.*
|
|
|
|
|
2012-11-15 01:48:06 +01:00
|
|
|
%files -n python-libseccomp
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
2012-09-08 09:16:56 +02:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_mandir/man3/seccomp_*.3*
|
2012-11-15 01:48:06 +01:00
|
|
|
%_includedir/%name-%version
|
2012-09-08 09:16:56 +02:00
|
|
|
%_libdir/%name.so
|
|
|
|
%_libdir/pkgconfig/%name.pc
|
|
|
|
|
|
|
|
%changelog
|