summaryrefslogtreecommitdiff
path: root/packaging/libnfnetlink.spec
blob: 5d68596132cac6a687aac2ec58c7c46224afa930 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Name:           libnfnetlink
%define libsoname	%{name}
Version:        1.0.1
Release:        2
License:        GPL-2.0
Url:            http://netfilter.org/projects/libnfnetlink/
Group:          Productivity/Networking/Security

Summary:        Low-level library for Netfilter-related kernel/userspace communication
Source:         %{name}-%{version}.tar.bz2
Source2:        baselibs.conf
Source1001: 	libnfnetlink.manifest
BuildRequires:  autoconf
BuildRequires:  automake >= 1.6
BuildRequires:  libtool
BuildRequires:  pkgconfig >= 0.23
BuildRequires:  xz

%description
libnfnetlink is the low-level library for netfilter related
kernel/userspace communication. It provides a generic messaging
infrastructure for in-kernel netfilter subsystems (such as
nfnetlink_log, nfnetlink_queue, nfnetlink_conntrack) and their
respective users and/or management tools in userspace.

This library is not meant as a public API for application developers.
It is only used by other netfilter.org projects, such as
libnetfilter_log, libnetfilter_queue or libnetfilter_conntrack.

%package devel
Summary:        Low-level library for Netfilter-related kernel/userspace communication
Group:          Development/Libraries/C and C++
Requires:       %libsoname = %{version}

%description devel
libnfnetlink is the low-level library for netfilter related
kernel/userspace communication. It provides a generic messaging
infrastructure for in-kernel netfilter subsystems (such as
nfnetlink_log, nfnetlink_queue, nfnetlink_conntrack) and their
respective users and/or management tools in userspace.

This library is not meant as a public API for application developers.
It is only used by other netfilter.org projects, such as
libnetfilter_log, libnetfilter_queue or libnetfilter_conntrack.

%prep
%setup -q
cp %{SOURCE1001} .

%build
%configure --disable-static --includedir=%{_includedir}/%{name}-%{version}
make %{?_smp_mflags}

%install
%make_install

%post  -p /sbin/ldconfig

%postun  -p /sbin/ldconfig

%files
%manifest %{name}.manifest
%license COPYING
%defattr(-,root,root)
%doc COPYING
%{_libdir}/libnfnetlink.so.*

%files devel
%manifest %{name}.manifest
%defattr(-,root,root)
%{_includedir}/libnfnetlink*
%{_libdir}/libnfnetlink.so
%{_libdir}/pkgconfig/libnfnetlink.pc

%changelog