libnl3-vl.spec 2.2 KB

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