]> git.pld-linux.org Git - packages/libnftnl.git/blob - libnftnl.spec
- updated to 1.1.6
[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.6
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:  0ddf6d952835f426f202984bbc0c58a6
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)
25
26 %description
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.
31
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.
37
38 %package devel
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
44
45 %description devel
46 Header files for libnftnl library.
47
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe biblioteki libnftnl.
50
51 %package static
52 Summary:        Static libnftnl library
53 Summary(pl.UTF-8):      Statyczna biblioteka libnftnl
54 Group:          Development/Libraries
55 Requires:       %{name}-devel = %{version}-%{release}
56
57 %description static
58 Static libnftnl library.
59
60 %description static -l pl.UTF-8
61 Statyczna biblioteka libnftnl.
62
63 %package apidocs
64 Summary:        libnftnl API documentation
65 Summary(pl.UTF-8):      Dokumentacja API biblioteki libnftnl
66 Group:          Documentation
67 %if "%{_rpmversion}" >= "5"
68 BuildArch:      noarch
69 %endif
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.066044 seconds and 3 git commands to generate.