libnl3-vl.spec 2.3 KB

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