3 %bcond_without apidocs # API documentation
4 %bcond_without static_libs # static libraries
6 Summary: Netfilter nf_tables infrastructure library
7 Summary(pl.UTF-8): Biblioteka infrastruktury nf_tables netfiltra
13 Source0: https://netfilter.org/projects/libnftnl/files/%{name}-%{version}.tar.bz2
14 # Source0-md5: a72ae260f7da9c223ad5d4fa036a8f84
15 URL: https://netfilter.org/projects/libnftnl/
16 BuildRequires: autoconf >= 2.50
17 BuildRequires: automake >= 1.6
18 %{?with_apidocs:BuildRequires: doxygen}
19 BuildRequires: libmnl-devel >= 1.0.3
20 BuildRequires: libtool >= 2:2
21 BuildRequires: linux-libc-headers >= 7:3.14
22 BuildRequires: pkgconfig
23 Requires: libmnl >= 1.0.3
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 libnftnl is a userspace library providing a low-level netlink
28 programming interface (API) to the in-kernel nf_tables subsystem. The
29 library libnftnl has been previously known as libnftables. This
30 library is currently used by nftables.
32 %description -l pl.UTF-8
33 libnftnl to biblioteka przestrzeni użytkownika udostępniająca
34 niskopoziomowy interfejs programistyczny (API) netlink do podsystemu
35 nf_tables w jądrze. Wcześniej biblioteka nazywała się libnftables.
36 Jest obecnie używana przez narzędzie nftables.
39 Summary: Header files for libnftnl library
40 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libnftnl
41 Group: Development/Libraries
42 Requires: %{name} = %{version}-%{release}
43 Requires: libmnl-devel >= 1.0.3
46 Header files for libnftnl library.
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe biblioteki libnftnl.
52 Summary: Static libnftnl library
53 Summary(pl.UTF-8): Statyczna biblioteka libnftnl
54 Group: Development/Libraries
55 Requires: %{name}-devel = %{version}-%{release}
58 Static libnftnl library.
60 %description static -l pl.UTF-8
61 Statyczna biblioteka libnftnl.
64 Summary: libnftnl API documentation
65 Summary(pl.UTF-8): Dokumentacja API biblioteki libnftnl
67 %if "%{_rpmversion}" >= "5"
72 API and internal documentation for libnftnl library.
74 %description apidocs -l pl.UTF-8
75 Dokumentacja API biblioteki libnftnl.
87 --disable-silent-rules \
88 %{?with_static_libs:--enable-static}
92 %{?with_apidocs:doxygen doxygen.cfg}
95 rm -rf $RPM_BUILD_ROOT
98 DESTDIR=$RPM_BUILD_ROOT
100 # obsoleted by pkg-config
101 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libnftnl.la
104 rm -rf $RPM_BUILD_ROOT
106 %post -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
110 %defattr(644,root,root,755)
111 %attr(755,root,root) %{_libdir}/libnftnl.so.*.*.*
112 %attr(755,root,root) %ghost %{_libdir}/libnftnl.so.11
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_libdir}/libnftnl.so
117 %{_includedir}/libnftnl
118 %{_pkgconfigdir}/libnftnl.pc
120 %if %{with static_libs}
122 %defattr(644,root,root,755)
123 %{_libdir}/libnftnl.a
128 %defattr(644,root,root,755)