SHA256
1
0
forked from pool/libseccomp
libseccomp/libseccomp.spec
Marcus Meissner d43bb0df0c Accepting request 141290 from home:msmeissn:branches:security
- updated to 1.0.1 release
  - The header file is now easier to use with C++ compilers
  - Minor documentation fixes
  - Minor memory leak fixes
  - Corrected x86 filter generation on x86_64 systems
  - Corrected problems with small filters and filters with arguments
- use public downloadable tarball

OBS-URL: https://build.opensuse.org/request/show/141290
OBS-URL: https://build.opensuse.org/package/show/security/libseccomp?expand=0&rev=5
2012-11-14 14:18:55 +00:00

98 lines
3.4 KiB
RPMSpec

#
# 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 libseccomp1
Version: 1.0.1
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-%{version}.tar.gz
#Git-Clone: git://git.code.sf.net/p/libseccomp/libseccomp
Source: http://downloads.sf.net/libseccomp/libseccomp-%{version}.tar.gz
Patch1: 0001-build-use-ac-variables-in-pkgconfig-file.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkgconfig
%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
%setup -q
%patch -P 1 -p1
%build
%configure --includedir=%_includedir/%name-%version
make V=1 %{?_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*
/usr/include/seccomp.h
%_libdir/%name.so
%_libdir/pkgconfig/%name.pc
%changelog