1 | Summary: Convenience library for kernel netlink sockets |
---|
2 | Group: Development/Libraries |
---|
3 | License: LGPLv2 |
---|
4 | Name: libnl3 |
---|
5 | Version: 3.2.7 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | URL: http://www.infradead.org/~tgr/libnl/ |
---|
8 | Source: http://www.infradead.org/~tgr/libnl/files/libnl-%{version}.tar.gz |
---|
9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
10 | #BuildRequires: doxygen |
---|
11 | #BuildRequires: xmlstarlet |
---|
12 | BuildRequires: flex bison |
---|
13 | #BuildRequires: texlive-latex texlive-dvips |
---|
14 | BuildRequires: graphviz |
---|
15 | BuildRequires: python |
---|
16 | #BuildRequires: asciidoc |
---|
17 | #BuildRequires: source-highlight |
---|
18 | |
---|
19 | %description |
---|
20 | This package contains a convenience library to simplify |
---|
21 | using the Linux kernel's netlink sockets interface for |
---|
22 | network manipulation |
---|
23 | |
---|
24 | %package devel |
---|
25 | Summary: Libraries and headers for using libnl3 |
---|
26 | Summary(ja): Libraries and headers for using libnl3 |
---|
27 | Group: Development/Libraries |
---|
28 | Requires: %{name} = %{version}-%{release} |
---|
29 | Requires: %{name}-cli = %{version}-%{release} |
---|
30 | Requires: kernel-headers |
---|
31 | |
---|
32 | %description devel |
---|
33 | This package contains various headers for using libnl3 |
---|
34 | |
---|
35 | %package cli |
---|
36 | Summary: Command line interface utils for libnl3 |
---|
37 | Summary(ja): Command line interface utils for libnl3 |
---|
38 | Group: Development/Libraries |
---|
39 | Requires: %{name} = %{version}-%{release} |
---|
40 | |
---|
41 | %description cli |
---|
42 | This package contains various libnl3 utils and additional |
---|
43 | libraries on which they depend |
---|
44 | %prep |
---|
45 | %setup -q -n libnl-%{version} |
---|
46 | |
---|
47 | %build |
---|
48 | %configure --disable-static |
---|
49 | make %{?_smp_mflags} |
---|
50 | #pushd doc |
---|
51 | # # docs aren't parallel-make safe |
---|
52 | # make gendoc |
---|
53 | #popd |
---|
54 | |
---|
55 | %install |
---|
56 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
57 | |
---|
58 | find $RPM_BUILD_ROOT -name \*.la -delete |
---|
59 | |
---|
60 | %post -p /sbin/ldconfig |
---|
61 | %post cli -p /sbin/ldconfig |
---|
62 | %postun -p /sbin/ldconfig |
---|
63 | %postun cli -p /sbin/ldconfig |
---|
64 | |
---|
65 | %files |
---|
66 | %defattr(-,root,root,-) |
---|
67 | %doc COPYING |
---|
68 | %exclude %{_libdir}/libnl-cli*.so.* |
---|
69 | %{_libdir}/libnl-*.so.* |
---|
70 | %config(noreplace) %{_sysconfdir}/* |
---|
71 | |
---|
72 | %files devel |
---|
73 | %defattr(-,root,root,-) |
---|
74 | %doc COPYING |
---|
75 | %{_includedir}/libnl3/netlink/ |
---|
76 | %dir %{_includedir}/libnl3/ |
---|
77 | %{_libdir}/*.so |
---|
78 | %{_libdir}/pkgconfig/*.pc |
---|
79 | |
---|
80 | %files cli |
---|
81 | %defattr(-,root,root,-) |
---|
82 | %doc COPYING |
---|
83 | %{_libdir}/libnl-cli*.so.* |
---|
84 | %{_libdir}/libnl/ |
---|
85 | %{_sbindir}/* |
---|
86 | %{_mandir}/man8/* |
---|
87 | |
---|
88 | %changelog |
---|
89 | * Tue Jun 19 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2.7-1 |
---|
90 | - initial build for Vine Linux |
---|
91 | |
---|
92 | * Fri Feb 10 2012 Dan Williams <dcbw@redhat.com> - 3.2.7-1 |
---|
93 | - Update to 3.2.7 |
---|
94 | |
---|
95 | * Tue Jan 17 2012 Jiri Pirko <jpirko@redhat.com> - 3.2.6-1 |
---|
96 | - Initial build |
---|