]> git.pld-linux.org Git - packages/libseccomp.git/blame - libseccomp.spec
python bindings
[packages/libseccomp.git] / libseccomp.spec
CommitLineData
3fa3c5e8 1#
1b31ba42 2# Conditional build:
3fa3c5e8 3%bcond_without tests
1b31ba42 4%bcond_without static_libs # don't build static libraries
9f228da8 5%bcond_with python # build Python bindings
bc3b5c7e 6
98e97d35
JB
7Summary: Enhanced Seccomp (mode 2) Helper library
8Summary(pl.UTF-8): Rozszerzona biblioteka pomocnicza Seccomp (trybu 2)
9Name: libseccomp
1b31ba42
ER
10Version: 2.2.3
11Release: 1
98e97d35
JB
12License: LGPL v2.1
13Group: Libraries
1b31ba42
ER
14Source0: https://github.com/seccomp/libseccomp/releases/download/v%{version}/%{name}-%{version}.tar.gz
15# Source0-md5: 7db418d35d7a6168400bf6b05502f8bf
16URL: https://github.com/seccomp/libseccomp
bc3b5c7e 17BuildRequires: bash
9f228da8
ER
18%if %{with python}
19BuildRequires: python-Cython >= 0.16
20%endif
98e97d35
JB
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24The libseccomp library provides and easy to use, platform independent,
25interface to the Linux Kernel's syscall filtering mechanism: seccomp.
26The libseccomp API is designed to abstract away the underlying BPF
27based syscall filter language and present a more conventional
28function-call based filtering interface that should be familiar to,
29and easily adopted by application developers.
30
31%description -l pl.UTF-8
32Biblioteka libseccomp udostępnia łatwy w użyciu, niezależny od
33platformy interfejs do mechanizmu filtrowania wywołań systemowych
bc3b5c7e
ER
34jądra Linuksa - seccomp. API libseccomp jest zaprojektowane tak, żeby
35wyabstrahować język filtrowania wywołań BPF niższego poziomu i
98e97d35
JB
36zaprezentować bardziej konwencjonalny interfejs filtrowania w oparciu
37o wywołania funkcji, który powinien być bardziej przyjazny i łatwiej
38adaptowalny dla programistów aplikacji.
39
40%package devel
41Summary: Header files for Seccomp library
42Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Seccomp
43Group: Development/Libraries
44Requires: %{name} = %{version}-%{release}
45
46%description devel
47Header files for Seccomp library.
48
49%description devel -l pl.UTF-8
50Pliki nagłówkowe biblioteki Seccomp.
51
52%package static
53Summary: Static Seccomp library
54Summary(pl.UTF-8): Statyczna biblioteka Seccomp
55Group: Development/Libraries
56Requires: %{name}-devel = %{version}-%{release}
57
58%description static
59Static Seccomp library.
60
61%description static -l pl.UTF-8
62Statyczna biblioteka Seccomp.
63
64%prep
65%setup -q
98e97d35
JB
66
67%build
1b31ba42
ER
68%configure \
69 --disable-silent-rules \
9f228da8 70 %{?with_python:--enable-python} \
1b31ba42
ER
71 %{!?with_static_libs:--disable-static}
72%{__make}
98e97d35 73
1b31ba42 74%{?with_tests:%{__make} check}
3fa3c5e8 75
98e97d35
JB
76%install
77rm -rf $RPM_BUILD_ROOT
98e97d35
JB
78%{__make} install \
79 DESTDIR=$RPM_BUILD_ROOT
80
1b31ba42
ER
81# obsoleted by pkg-config file
82%{__rm} $RPM_BUILD_ROOT%{_libdir}/libseccomp.la
98e97d35
JB
83
84%clean
85rm -rf $RPM_BUILD_ROOT
86
87%post -p /sbin/ldconfig
88%postun -p /sbin/ldconfig
89
90%files
91%defattr(644,root,root,755)
92%doc CHANGELOG CREDITS README
d24f42eb 93%attr(755,root,root) %{_bindir}/scmp_sys_resolver
98e97d35 94%attr(755,root,root) %{_libdir}/libseccomp.so.*.*.*
c86f6298 95%attr(755,root,root) %ghost %{_libdir}/libseccomp.so.2
d24f42eb 96%{_mandir}/man1/scmp_sys_resolver.1*
98e97d35
JB
97
98%files devel
99%defattr(644,root,root,755)
100%attr(755,root,root) %{_libdir}/libseccomp.so
101%{_includedir}/seccomp.h
102%{_pkgconfigdir}/libseccomp.pc
103%{_mandir}/man3/seccomp_*.3*
104
1b31ba42 105%if %{with static_libs}
98e97d35
JB
106%files static
107%defattr(644,root,root,755)
108%{_libdir}/libseccomp.a
1b31ba42 109%endif
This page took 0.043512 seconds and 4 git commands to generate.