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