]>
Commit | Line | Data |
---|---|---|
30be021d | 1 | Summary: Low-level library for netfilter related kernel/userspace communication |
aedf0473 | 2 | Summary(pl.UTF-8): Niskopoziomowa biblioteka do związanej z netfiltrem komunikacji między jądrem a przestrzenią użytkownika |
b56c3723 | 3 | Name: libnfnetlink |
c5bbfefd JP |
4 | Version: 1.0.2 |
5 | Release: 1 | |
69bec254 | 6 | License: GPL v2 |
b56c3723 | 7 | Group: Libraries |
dcffad50 | 8 | Source0: http://www.netfilter.org/projects/libnfnetlink/files/%{name}-%{version}.tar.bz2 |
c5bbfefd | 9 | # Source0-md5: 39d65185e2990562c64de05a08de8771 |
b56c3723 | 10 | URL: http://www.netfilter.org/projects/libnfnetlink/ |
5e002bd5 JB |
11 | BuildRequires: autoconf >= 2.50 |
12 | BuildRequires: automake >= 1.6 | |
a8f8a999 | 13 | BuildRequires: libtool |
74e09a1b | 14 | %define _llh_version 7:2.6.12.0-9 |
4b3a900d | 15 | BuildRequires: linux-libc-headers >= %{_llh_version} |
b56c3723 PS |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
19 | libnfnetlink is the low-level library for netfilter related | |
20 | kernel/userspace communication. It provides a generic messaging | |
21 | infrastructure for in-kernel netfilter subsystems (such as | |
22 | nfnetlink_log, nfnetlink_queue, nfnetlink_conntrack) and their | |
23 | respective users and/or management tools in userspace. This library is | |
24 | not meant as a public API for application developers. It is only used | |
25 | by other netfilter.org projects, such as libnetfilter_log, | |
26 | libnetfilter_queue or libnetfilter_conntrack. | |
27 | ||
067ecfc4 JR |
28 | %description -l pl.UTF-8 |
29 | libnfnetlink to niskopoziomowa biblioteka do związanej z netfiltrem | |
30 | komunikacji między jądrem a przestrzenią użytkownika. Udostępnia | |
31 | ogólną infrastrukturę komunikatów dla podsystemów netfiltra w jądrze | |
93fc634e | 32 | (takich jak nfnetlink_log, nfnetlink_queue, nfnetlink_conntrack) oraz |
067ecfc4 JR |
33 | ich użytkowników i/lub narzędzi zarządzających w przestrzeni |
34 | użytkownika. Ta biblioteka nie jest przeznaczona jako publiczne API | |
35 | dla twórców aplikacji; jest jedynie używana przez inne projekty | |
93fc634e JB |
36 | netfilter.org, takie jak libnetfilter_log, libnetfilter_queue czy |
37 | libnetfilter_conntrack. | |
38 | ||
b56c3723 PS |
39 | %package devel |
40 | Summary: Header files for libnfnetlink library | |
aedf0473 | 41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libnfnetlink |
b56c3723 PS |
42 | Group: Development/Libraries |
43 | Requires: %{name} = %{version}-%{release} | |
4b3a900d | 44 | Requires: linux-libc-headers >= %{_llh_version} |
b56c3723 PS |
45 | |
46 | %description devel | |
47 | Header files for libnfnetlink library. | |
48 | ||
067ecfc4 JR |
49 | %description devel -l pl.UTF-8 |
50 | Pliki nagłówkowe biblioteki libnfnetlink. | |
93fc634e | 51 | |
b56c3723 PS |
52 | %package static |
53 | Summary: Static libnfnetlink library | |
aedf0473 | 54 | Summary(pl.UTF-8): Statyczna biblioteka libnfnetlink |
b56c3723 PS |
55 | Group: Development/Libraries |
56 | Requires: %{name}-devel = %{version}-%{release} | |
57 | ||
58 | %description static | |
59 | Static libnfnetlink library. | |
60 | ||
067ecfc4 | 61 | %description static -l pl.UTF-8 |
93fc634e JB |
62 | Statyczna biblioteka libnfnetlink. |
63 | ||
b56c3723 PS |
64 | %prep |
65 | %setup -q | |
66 | ||
67 | %build | |
69bec254 | 68 | %{__libtoolize} |
b56c3723 PS |
69 | %{__aclocal} |
70 | %{__autoconf} | |
69bec254 | 71 | %{__automake} |
5e002bd5 JB |
72 | %configure \ |
73 | --disable-silent-rules \ | |
74 | --enable-static | |
b56c3723 PS |
75 | %{__make} |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %{__make} install \ | |
81 | DESTDIR=$RPM_BUILD_ROOT | |
82 | ||
83 | %clean | |
84 | rm -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 README | |
69bec254 | 92 | %attr(755,root,root) %{_libdir}/libnfnetlink.so.*.*.* |
f1d5dc6e | 93 | %ghost %{_libdir}/libnfnetlink.so.0 |
b56c3723 PS |
94 | |
95 | %files devel | |
96 | %defattr(644,root,root,755) | |
69bec254 JB |
97 | %attr(755,root,root) %{_libdir}/libnfnetlink.so |
98 | %{_libdir}/libnfnetlink.la | |
b56c3723 PS |
99 | %dir %{_includedir}/%{name} |
100 | %{_includedir}/%{name}/*.h | |
9b275099 | 101 | %{_pkgconfigdir}/%{name}.pc |
b56c3723 PS |
102 | |
103 | %files static | |
104 | %defattr(644,root,root,755) | |
69bec254 | 105 | %{_libdir}/libnfnetlink.a |