libnl-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. Summary: Convenience library for kernel netlink sockets
  2. Summary(ja): Kernel の netlink ソケットを利用するための便利ライブラリ
  3. Group: Development/Libraries
  4. License: LGPLv2
  5. Name: libnl
  6. Version: 1.1
  7. Release: 1%{?_dist_release}
  8. URL: http://people.suug.ch/~tgr/libnl/
  9. Source: http://people.suug.ch/~tgr/libnl/files/libnl-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildRequires: doxygen
  12. Patch1: libnl-1.0-pre5-static.patch
  13. Patch2: libnl-1.0-pre5-debuginfo.patch
  14. Patch3: libnl-1.0-pre8-use-vasprintf-retval.patch
  15. Patch4: libnl-1.0-pre8-more-build-output.patch
  16. Patch5: libnl-1.1-include-limits-h.patch
  17. Patch6: libnl-1.1-doc-inlinesrc.patch
  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 libnl
  24. Summary(ja): Libraries and headers for using libnl
  25. Group: Development/Libraries
  26. Requires: %{name} = %{version}-%{release}
  27. Requires: kernel-headers
  28. %description devel
  29. This package contains various headers for using libnl
  30. %prep
  31. %setup -q -n %{name}-%{version}
  32. %patch1 -p1 -b .build-static
  33. %patch2 -p1 -b .debuginfo
  34. %patch3 -p1 -b .use-vasprintf-retval
  35. %patch4 -p1 -b .more-build-output
  36. %patch5 -p1 -b .limits
  37. %patch6 -p1 -b .doc-inlinesrc
  38. # a quick hack to make doxygen stripping builddir from html outputs.
  39. sed -i.org -e "s,^STRIP_FROM_PATH.*,STRIP_FROM_PATH = `pwd`," doc/Doxyfile.in
  40. %build
  41. %configure
  42. make
  43. make gendoc
  44. %install
  45. %{__rm} -rf $RPM_BUILD_ROOT
  46. make install DESTDIR=$RPM_BUILD_ROOT
  47. %clean
  48. %{__rm} -rf $RPM_BUILD_ROOT
  49. %post -p /sbin/ldconfig
  50. %postun -p /sbin/ldconfig
  51. %files
  52. %defattr(-,root,root)
  53. %{_libdir}/%{name}.so.*
  54. %doc COPYING
  55. %files devel
  56. %defattr(-,root,root,0755)
  57. %{_includedir}/netlink/
  58. %doc doc/html
  59. %{_libdir}/%{name}.so
  60. %{_libdir}/%{name}.a
  61. %{_libdir}/pkgconfig/%{name}-1.pc
  62. %changelog
  63. * Wed Jul 30 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-1
  64. - initial build for Vine Linux
  65. * Fri Jun 27 2008 Dan Williams <dcbw@redhat.com> - 1.1-5
  66. - Build documentation in -devel package (rh #452646)
  67. * Thu May 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1-4
  68. - fix license tag
  69. * Fri Feb 22 2008 Dan Williams <dcbw@redhat.com> - 1.1-3
  70. - Include limits.h to fix gcc 4.3 rebuild issues (rh #434055)
  71. * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1-2
  72. - Autorebuild for GCC 4.3
  73. * Wed Jan 23 2008 Dan Williams <dcbw@redhat.com> - 1.1-1
  74. - Update to version 1.1
  75. * Tue Dec 18 2007 Dan Williams <dcbw@redhat.com> - 1.0-0.15.pre8.git20071218
  76. - Handle removal of include/linux/ip_mp_alg.h in 2.6.24
  77. * Tue Dec 18 2007 Dan Williams <dcbw@redhat.com> - 1.0-0.14.pre8.git20071217
  78. - devel package should require kernel-headers
  79. * Mon Dec 17 2007 Dan Williams <dcbw@redhat.com> - 1.0-0.13.pre8.git20071217
  80. - Add dist tag to revision
  81. * Mon Dec 17 2007 Dan Williams <dcbw@redhat.com> - 1.0-0.12.pre8.git20071217
  82. - Update to -pre8 + fixes (rh #401761)
  83. * Mon Aug 14 2006 Peter Jones <pjones@redhat.com> - 1.0-0.10.pre5.4
  84. - Fix nl_recv() for ppc64
  85. * Mon Jul 31 2006 Jeremy Katz <katzj@redhat.com> - 1.0-0.10.pre5.3
  86. - unbreak the pkgconfig file
  87. * Wed Jul 26 2006 Matthias Clasen <mclasen@redhat.com> - 1.0-0.10.pre5.2
  88. - Fix the pkgconfig file on 64-bit systems (#197176)
  89. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.0-0.10.pre5.1
  90. - rebuild
  91. * Thu Jun 15 2006 Peter Jones <pjones@redhat.com> 1.0-0.10.pre5
  92. - Fix debuginfo generation.
  93. * Fri May 26 2006 Jason Vas Dias <jvdias@redhat.com> 1.0-0.9.pre5
  94. - Allow build to succeed with new gcc / glibc-kernheaders
  95. (compile failed on __u64 redefinition on x86_64).
  96. - Add a static %{_libdir}/libnl.a library to libnl-devel for
  97. programs that might need to do a static link to libnl.
  98. Added after consultation with Christopher Aillon.
  99. * Tue Feb 12 2006 Christopher Aillon <caillon@redhat.com> 1.0-0.8.pre5
  100. - Rebuild
  101. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> 1.0-0.7.pre5.1
  102. - rebuilt for new gcc4.1 snapshot and glibc changes
  103. * Mon Jan 16 2006 Christopher Aillon <caillon@redhat.com> 1.0-0.7.pre5
  104. - Add patch to not chown files to root.root during make install; it
  105. happens normally.
  106. * Mon Jan 9 2006 Christopher Aillon <caillon@redhat.com> 1.0-0.6.pre5
  107. - Correctly install the pkgconfig file
  108. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  109. - rebuilt
  110. * Wed Nov 2 2005 Christopher Aillon <caillon@redhat.com> 1.0-0.5.pre5
  111. - Fix 64bit LIBDIR issue; use $LIBDIR instead of $PREFIX/lib
  112. * Wed Nov 2 2005 Christopher Aillon <caillon@redhat.com> 1.0-0.4.pre5
  113. - Update to 1.0-pre5
  114. * Tue Nov 1 2005 Christopher Aillon <caillon@redhat.com> 1.0-0.3.pre4
  115. - Update to 1.0-pre4
  116. * Tue Nov 1 2005 Christopher Aillon <caillon@redhat.com> 1.0-0.2.pre3
  117. - Minor specfile cleanup
  118. * Thu Oct 27 2005 Dan Williams <dcbw@redhat.com> 1.0-0.1.pre3
  119. - Split into main and devel packages
  120. * Thu Oct 27 2005 Dan Williams <dcbw@redhat.com> 1.0-0.0.pre3
  121. - initial build