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