]> git.pld-linux.org Git - packages/libnftnl.git/blob - libnftnl.spec
ad24da1b7c70db521348583a5e1eba6ffd1fea68
[packages/libnftnl.git] / libnftnl.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # API documentation
4 %bcond_without  static_libs     # static libraries
5
6 Summary:        Netfilter nf_tables infrastructure library
7 Summary(pl.UTF-8):      Biblioteka infrastruktury nf_tables netfiltra
8 Name:           libnftnl
9 Version:        1.1.8
10 Release:        1
11 License:        GPL v2+
12 Group:          Libraries
13 Source0:        https://netfilter.org/projects/libnftnl/files/%{name}-%{version}.tar.bz2
14 # Source0-md5:  b2b1623a281eb1f3287b490e22673369
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.4
20 BuildRequires:  libtool >= 2:2
21 BuildRequires:  linux-libc-headers >= 7:3.14
22 BuildRequires:  pkgconfig
23 BuildRequires:  rpmbuild(macros) >= 1.752
24 Requires:       libmnl >= 1.0.4
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 libnftnl is a userspace library providing a low-level netlink
29 programming interface (API) to the in-kernel nf_tables subsystem. The
30 library libnftnl has been previously known as libnftables. This
31 library is currently used by nftables.
32
33 %description -l pl.UTF-8
34 libnftnl to biblioteka przestrzeni użytkownika udostępniająca
35 niskopoziomowy interfejs programistyczny (API) netlink do podsystemu
36 nf_tables w jądrze. Wcześniej biblioteka nazywała się libnftables.
37 Jest obecnie używana przez narzędzie nftables.
38
39 %package devel
40 Summary:        Header files for libnftnl library
41 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libnftnl
42 Group:          Development/Libraries
43 Requires:       %{name} = %{version}-%{release}
44 Requires:       libmnl-devel >= 1.0.4
45
46 %description devel
47 Header files for libnftnl library.
48
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki libnftnl.
51
52 %package static
53 Summary:        Static libnftnl library
54 Summary(pl.UTF-8):      Statyczna biblioteka libnftnl
55 Group:          Development/Libraries
56 Requires:       %{name}-devel = %{version}-%{release}
57
58 %description static
59 Static libnftnl library.
60
61 %description static -l pl.UTF-8
62 Statyczna biblioteka libnftnl.
63
64 %package apidocs
65 Summary:        libnftnl API documentation
66 Summary(pl.UTF-8):      Dokumentacja API biblioteki libnftnl
67 Group:          Documentation
68 %{?noarchpackage}
69
70 %description apidocs
71 API and internal documentation for libnftnl library.
72
73 %description apidocs -l pl.UTF-8
74 Dokumentacja API biblioteki libnftnl.
75
76 %prep
77 %setup -q
78
79 %build
80 %{__libtoolize}
81 %{__aclocal} -I m4
82 %{__autoconf}
83 %{__autoheader}
84 %{__automake}
85 %configure \
86         --disable-silent-rules \
87         %{?with_static_libs:--enable-static}
88
89 %{__make}
90
91 %{?with_apidocs:doxygen doxygen.cfg}
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT
98
99 # obsoleted by pkg-config
100 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libnftnl.la
101
102 %clean
103 rm -rf $RPM_BUILD_ROOT
104
105 %post   -p /sbin/ldconfig
106 %postun -p /sbin/ldconfig
107
108 %files
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/libnftnl.so.*.*.*
111 %attr(755,root,root) %ghost %{_libdir}/libnftnl.so.11
112
113 %files devel
114 %defattr(644,root,root,755)
115 %attr(755,root,root) %{_libdir}/libnftnl.so
116 %{_includedir}/libnftnl
117 %{_pkgconfigdir}/libnftnl.pc
118
119 %if %{with static_libs}
120 %files static
121 %defattr(644,root,root,755)
122 %{_libdir}/libnftnl.a
123 %endif
124
125 %if %{with apidocs}
126 %files apidocs
127 %defattr(644,root,root,755)
128 %doc doxygen/html/*
129 %endif
This page took 0.073556 seconds and 2 git commands to generate.