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