Sisyphus repositório
Última atualização: 22 fevereiro 2019 | SRPMs: 18470 | Visitas: 13061561
en ru br
ALT Linux repositórios
S:2.3.3-alt2

Group :: Sistema/Bibliotecas
RPM: libseccomp

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define oname seccomp

%def_with python3

Name: lib%oname
Version: 2.3.3
Release: alt2
Summary: High level interface to the Linux Kernel's seccomp filter
License: LGPLv2.1+
Group: System/Libraries
Url: https://github.com/seccomp/libseccomp

#https://github.com/seccomp/libseccomp.git

Source: %name-%version.tar
Patch100: 0001-Tune-config.patch

BuildRequires: python-devel python-module-Cython
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-Cython
%endif

%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 devel
Summary: Development files of %name
Group: Development/C
Requires: %name = %EVR

%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 development files of %name.

%package -n python-module-%oname
Summary: Python bindings of %name
Group: Development/Python

%description -n python-module-%oname
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 python bindings of %name.

%package -n python3-module-%oname
Summary: Python bindings of %name
Group: Development/Python3

%description -n python3-module-%oname
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 python bindings of %name.

%prep
%setup
%patch100 -p1

%if_with python3
cp -fR . ../python3
pushd ../python3
sed -i 's|cython -V|cython3 -V|' configure.ac
popd
%endif

%build
subst 's/AC_INIT(\[libseccomp\], \[0.0.0\])/AC_INIT([libseccomp],[%version])/' configure.ac
./autogen.sh
%configure \
--enable-python
%make_build V=1

%if_with python3
pushd ../python3
./autogen.sh
%configure \
--enable-python
%make_build V=1 PYTHON=python3
popd
%endif

%install
%makeinstall_std

%if_with python3
pushd ../python3
%make_install DESTDIR=$PWD/buildroot PYTHON=python3 install
install -d %buildroot%python3_sitelibdir
mv buildroot%python3_sitelibdir/* %buildroot%python3_sitelibdir/
popd
%endif

mkdir -p %buildroot/%_lib
# Relocate shared libraries from %_libdir/ to /%_lib/.
for f in %buildroot%_libdir/lib*.so; do
       t=`objdump -p "$f" |awk '/SONAME/ {print $2}'`
       [ -n "$t" ]
       ln -snf ../../%_lib/"$t" "$f"
done
mv %buildroot%_libdir/lib*.so.* %buildroot/%_lib/


%files
%doc CHANGELOG CREDITS README.md SUBMITTING_PATCHES
%_bindir/*
/%_lib/lib*.so.*
%_man1dir/*

%files devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*
%_man3dir/*

%files -n python-module-%oname
%python_sitelibdir/*

%if_with python3
%files -n python3-module-%oname
%python3_sitelibdir/*
%endif

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009