libnl3-vl.spec 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. Name: libnl3
  2. Summary: Convenience library for kernel netlink sockets
  3. Summary(ja): Netlink ソケットの利用に便利なライブラリ
  4. Version: 3.2.14
  5. Release: 2%{?_dist_release}
  6. Group: System Environment/Libraries
  7. License: LGPLv2
  8. URL: http://www.infradead.org/~tgr/libnl/
  9. Source: http://www.infradead.org/~tgr/libnl/files/libnl-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}--root
  11. BuildRequires: flex
  12. BuildRequires: bison
  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. %package devel
  18. Summary: Libraries and headers for using libnl3
  19. Summary(ja): Libnl3 の開発用ファイル
  20. Group: Development/Libraries
  21. Requires: %{name} = %{version}-%{release}
  22. Requires: %{name}-cli = %{version}-%{release}
  23. Requires: kernel-headers
  24. %description devel
  25. This package contains various headers for using libnl3
  26. %package cli
  27. Summary: Command line interface utils for libnl3
  28. Summary(ja): Libnl3 のコマンドラインインターフェース
  29. Group: Development/Tools
  30. Requires: %{name} = %{version}-%{release}
  31. %description cli
  32. This package contains various libnl3 utils and additional
  33. libraries on which they depend
  34. %prep
  35. %setup -q -n libnl-%{version}
  36. %build
  37. %configure --disable-static
  38. make %{?_smp_mflags}
  39. %install
  40. make install DESTDIR=$RPM_BUILD_ROOT
  41. find $RPM_BUILD_ROOT -name \*.la -delete
  42. %post -p /sbin/ldconfig
  43. %post cli -p /sbin/ldconfig
  44. %postun -p /sbin/ldconfig
  45. %postun cli -p /sbin/ldconfig
  46. %files
  47. %defattr(-,root,root,-)
  48. %doc COPYING
  49. %exclude %{_libdir}/libnl-cli*.so.*
  50. %{_libdir}/libnl-*.so.*
  51. %config(noreplace) %{_sysconfdir}/*
  52. %files devel
  53. %defattr(-,root,root,-)
  54. %doc COPYING
  55. %{_includedir}/libnl3/netlink/
  56. %dir %{_includedir}/libnl3/
  57. %{_libdir}/*.so
  58. %{_libdir}/pkgconfig/*.pc
  59. %files cli
  60. %defattr(-,root,root,-)
  61. %doc COPYING
  62. %{_libdir}/libnl-cli*.so.*
  63. %{_libdir}/libnl/
  64. %{_sbindir}/*
  65. %{_mandir}/man8/*
  66. %changelog
  67. * Sat Oct 4 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.2.14-2
  68. - moved libnl3 to System Environment/Libraries Group
  69. - updated Japanese summary
  70. * Sun Oct 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.14-1
  71. - new upstream release
  72. * Tue Jun 19 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2.7-1
  73. - initial build for Vine Linux
  74. * Fri Feb 10 2012 Dan Williams <dcbw@redhat.com> - 3.2.7-1
  75. - Update to 3.2.7
  76. * Tue Jan 17 2012 Jiri Pirko <jpirko@redhat.com> - 3.2.6-1
  77. - Initial build