2012-09-08 09:16:56 +02:00
|
|
|
#
|
|
|
|
# spec file for package libseccomp
|
|
|
|
#
|
2019-01-14 14:41:03 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-09-08 09:16:56 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-06-02 15:19:01 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-09-08 09:16:56 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2013-06-18 03:47:16 +02:00
|
|
|
%define lname libseccomp2
|
2017-05-21 20:47:56 +02:00
|
|
|
Name: libseccomp
|
2019-06-02 15:19:01 +02:00
|
|
|
Version: 2.4.1
|
2012-09-08 09:16:56 +02:00
|
|
|
Release: 0
|
2019-06-02 15:19:01 +02:00
|
|
|
Summary: A Seccomp (mode 2) helper library
|
2019-01-14 14:41:03 +01:00
|
|
|
License: LGPL-2.1-only
|
2012-09-08 09:16:56 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-03-29 01:34:37 +01:00
|
|
|
Url: http://github.com/seccomp
|
|
|
|
#Git-Clone: git://github.com/seccomp/libseccomp
|
2019-03-17 11:08:41 +01:00
|
|
|
Source: https://github.com/seccomp/libseccomp/releases/download/v%version/libseccomp-%version.tar.gz
|
|
|
|
Source2: https://github.com/seccomp/libseccomp/releases/download/v%version/libseccomp-%version.tar.gz.asc
|
|
|
|
Source3: %name.keyring
|
2015-09-25 14:22:51 +02:00
|
|
|
Source99: baselibs.conf
|
2015-03-29 01:34:37 +01:00
|
|
|
Patch1: no-static.diff
|
2012-12-21 06:48:35 +01:00
|
|
|
BuildRequires: autoconf
|
2015-03-29 01:34:37 +01:00
|
|
|
BuildRequires: automake >= 1.11
|
2013-06-18 03:47:16 +02:00
|
|
|
BuildRequires: fdupes
|
2012-12-21 06:48:35 +01:00
|
|
|
BuildRequires: libtool >= 2
|
2012-09-08 09:16:56 +02:00
|
|
|
BuildRequires: pkgconfig
|
2017-05-21 20:47:56 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-09-08 09:16:56 +02:00
|
|
|
|
|
|
|
%description
|
2019-06-02 15:19:01 +02:00
|
|
|
The libseccomp library provides an interface to the Linux Kernel's
|
|
|
|
syscall filtering mechanism, seccomp. The libseccomp API abstracts
|
|
|
|
away the underlying BPF-based syscall filter language and presents a
|
|
|
|
more conventional function-call based filtering interface.
|
2012-09-08 09:16:56 +02:00
|
|
|
|
|
|
|
%package -n %lname
|
|
|
|
Summary: An enhanced Seccomp (mode 2) helper library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
2019-06-02 15:19:01 +02:00
|
|
|
The libseccomp library provides an interface to the Linux Kernel's
|
|
|
|
syscall filtering mechanism, seccomp. The libseccomp API abstracts
|
|
|
|
away the underlying BPF-based syscall filter language and presents a
|
|
|
|
more conventional function-call based filtering interface.
|
2012-09-08 09:16:56 +02:00
|
|
|
|
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
|
2019-06-02 15:19:01 +02:00
|
|
|
The libseccomp library provides an interface to the Linux Kernel's
|
|
|
|
syscall filtering mechanism, seccomp. The libseccomp API abstracts
|
|
|
|
away the underlying BPF-based syscall filter language and presents a
|
|
|
|
more conventional function-call based filtering interface.
|
2012-11-15 01:48:06 +01:00
|
|
|
|
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
|
2019-06-02 15:19:01 +02:00
|
|
|
The libseccomp library provides an interface to the Linux Kernel's
|
|
|
|
syscall filtering mechanism, seccomp. The libseccomp API abstracts
|
|
|
|
away the underlying BPF-based syscall filter language and presents a
|
|
|
|
more conventional function-call based filtering interface.
|
2012-09-08 09:16:56 +02:00
|
|
|
|
|
|
|
This package contains the development files for libseccomp.
|
|
|
|
|
2013-06-18 03:47:16 +02:00
|
|
|
%package tools
|
|
|
|
Summary: Utilities for the seccomp API
|
|
|
|
Group: Development/Tools/Debuggers
|
|
|
|
|
|
|
|
%description tools
|
2019-06-02 15:19:01 +02:00
|
|
|
The libseccomp library provides an interface to the Linux Kernel's
|
|
|
|
syscall filtering mechanism, seccomp.
|
2013-06-18 03:47:16 +02:00
|
|
|
|
|
|
|
This subpackage contains debug utilities for the seccomp interface.
|
|
|
|
|
2012-09-08 09:16:56 +02:00
|
|
|
%prep
|
2012-11-14 15:18:55 +01:00
|
|
|
%setup -q
|
2017-05-22 00:31:54 +02:00
|
|
|
%patch -P 1 -p1
|
2012-09-08 09:16:56 +02:00
|
|
|
|
|
|
|
%build
|
2016-05-08 01:18:37 +02:00
|
|
|
if [ ! -f configure ]; then
|
2017-05-21 22:26:28 +02:00
|
|
|
perl -i -pe 's{\QAC_INIT([libseccomp], [0.0.0])\E}{AC_INIT([libseccomp], [%version])}' configure.ac
|
2016-04-11 01:15:40 +02:00
|
|
|
fi
|
2017-05-22 00:31:54 +02:00
|
|
|
autoreconf -fiv
|
2017-05-21 20:47:56 +02:00
|
|
|
%configure \
|
|
|
|
--includedir="%_includedir/%name" \
|
|
|
|
--disable-static \
|
|
|
|
--disable-silent-rules
|
2016-05-08 01:18:37 +02:00
|
|
|
make %{?_smp_mflags}
|
2012-09-08 09:16:56 +02:00
|
|
|
|
|
|
|
%install
|
2015-03-29 01:34:37 +01:00
|
|
|
%make_install
|
|
|
|
find "%buildroot/%_libdir" -type f -name "*.la" -delete
|
2013-06-18 03:47:16 +02:00
|
|
|
%fdupes %buildroot/%_prefix
|
2012-09-08 09:16:56 +02:00
|
|
|
|
2012-11-15 14:39:30 +01:00
|
|
|
%check
|
2019-08-11 14:44:42 +02:00
|
|
|
# for ppc64* ref to boo#1142614
|
|
|
|
%ifarch ppc s390 s390x i586 ppc64 ppc64le
|
2014-07-04 14:30:55 +02:00
|
|
|
make check || true
|
2014-07-12 13:47:13 +02:00
|
|
|
#pushd tests/
|
|
|
|
#./regression -v
|
|
|
|
#popd
|
2014-07-04 14:30:55 +02:00
|
|
|
%else
|
2015-03-29 01:34:53 +01:00
|
|
|
make check
|
2014-07-04 14:30:55 +02:00
|
|
|
%endif
|
2012-09-08 09:16:56 +02:00
|
|
|
|
2013-06-18 03:47:16 +02:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2012-09-08 09:16:56 +02:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %lname
|
|
|
|
%defattr(-,root,root)
|
2013-06-18 03:47:16 +02:00
|
|
|
%_libdir/%name.so.2*
|
2019-01-14 14:41:03 +01:00
|
|
|
%license LICENSE
|
2012-09-08 09:16:56 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_mandir/man3/seccomp_*.3*
|
2015-03-29 01:34:37 +01:00
|
|
|
%_includedir/%name/
|
2012-09-08 09:16:56 +02:00
|
|
|
%_libdir/%name.so
|
|
|
|
%_libdir/pkgconfig/%name.pc
|
|
|
|
|
2013-06-18 03:47:16 +02:00
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_bindir/scmp_sys_resolver
|
|
|
|
%_mandir/man1/scmp_sys_resolver.1*
|
|
|
|
|
2012-09-08 09:16:56 +02:00
|
|
|
%changelog
|