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