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