libnet-vl.spec 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. Summary: C library for portable packet creation and injection
  2. Name: libnet
  3. Version: 1.1.6
  4. Release: 1%{?_dist_release}
  5. License: BSD
  6. Group: System Environment/Libraries
  7. URL: http://www.sourceforge.net/projects/libnet-dev/
  8. Source0: http://downloads.sourceforge.net/libnet-dev/%{name}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  12. %description
  13. Libnet is an API to help with the construction and handling of network
  14. packets. It provides a portable framework for low-level network packet
  15. writing and handling (use libnet in conjunction with libpcap and you can
  16. write some really cool stuff). Libnet includes packet creation at the IP
  17. layer and at the link layer as well as a host of supplementary and
  18. complementary functionality.
  19. %package devel
  20. Summary: Development files for the libnet library
  21. Summary(ja): libnet ライブラリの開発用ファイル
  22. Group: Development/Libraries
  23. Requires: %{name} = %{version}-%{release}
  24. %description devel
  25. The libnet-devel package includes header files and libraries necessary
  26. for developing programs which use the libnet library. Libnet is very handy
  27. with which to write network tools and network test code. See the manpage
  28. and sample test code for more detailed information.
  29. %prep
  30. %setup -q
  31. # Keep the sample directory untouched by make
  32. rm -rf __dist_sample
  33. mkdir -p __dist_sample
  34. cp -a sample __dist_sample
  35. %build
  36. %configure
  37. make %{?_smp_mflags}
  38. %install
  39. rm -rf $RPM_BUILD_ROOT
  40. make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
  41. rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.{a,la}
  42. # Prepare samples directory and perform some fixes
  43. rm -rf __dist_sample/sample/win32
  44. rm -f __dist_sample/sample/Makefile.{am,in}
  45. sed -e 's@#include "../include/libnet.h"@#include <libnet.h>@' \
  46. __dist_sample/sample/libnet_test.h > __dist_sample/sample/libnet_test.h.new
  47. touch -c -r __dist_sample/sample/libnet_test.h{,.new}
  48. mv -f __dist_sample/sample/libnet_test.h{.new,}
  49. # Remove makefile relics from documentation
  50. rm -f doc/html/Makefile*
  51. %clean
  52. rm -rf $RPM_BUILD_ROOT
  53. %post -p /sbin/ldconfig
  54. %postun -p /sbin/ldconfig
  55. %files
  56. %defattr(-,root,root,-)
  57. %doc README doc/CHANGELOG doc/CONTRIB doc/COPYING
  58. %{_libdir}/%{name}.so.*
  59. %files devel
  60. %defattr(-,root,root,-)
  61. %doc doc/CHANGELOG doc/CONTRIB doc/COPYING doc/DESIGN_NOTES doc/MIGRATION doc/PACKET_BUILDING
  62. %doc doc/RAWSOCKET_NON_SEQUITUR doc/TODO doc/html/ __dist_sample/sample/
  63. %{_bindir}/%{name}-config
  64. %{_libdir}/%{name}.so
  65. %{_includedir}/libnet.h
  66. %{_includedir}/%{name}/
  67. %{_mandir}/man3/%{name}*.3*
  68. %changelog
  69. * Thu Feb 26 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.1.6-1
  70. - updated to 1.1.6
  71. * Thu Mar 15 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.1.5-1
  72. - updated to 1.1.5; spec revamped
  73. - Sat Apr 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.2.1-2
  74. - rebuilt with current VineSeed
  75. - Mon Sep 29 2008 Shu KONNO <owa@bg.wakwak.com> 1.1.2.1-1vl5
  76. - applied new versioning policy
  77. - Mon Oct 23 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.2.1-0vl1
  78. - initial build for Vine Linux based on FE package.
  79. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-3
  80. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  81. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-2
  82. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  83. * Tue Dec 28 2010 Robert Scheck <robert@fedoraproject.org> 1.1.5-1
  84. - Upgrade to 1.1.5
  85. * Fri Jul 09 2010 Robert Scheck <robert@fedoraproject.org> 1.1.4-4
  86. - Added patch for capability support rather UID check (#589770)
  87. * Fri Aug 21 2009 Robert Scheck <robert@fedoraproject.org> 1.1.4-3
  88. - Move libnet.so.* to /lib[64] to avoid static linking (#518150)
  89. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-2
  90. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  91. * Thu Jun 11 2009 Robert Scheck <robert@fedoraproject.org> 1.1.4-1
  92. - Upgrade to 1.1.4
  93. * Sat Jun 06 2009 Robert Scheck <robert@fedoraproject.org> 1.1.3-2
  94. - Added upstream patch to solve HAVE_CONFIG_H (#501633, #502400)
  95. * Sat May 16 2009 Robert Scheck <robert@fedoraproject.org> 1.1.3-1
  96. - Upgrade to 1.1.3
  97. * Sun Apr 19 2009 Robert Scheck <robert@fedoraproject.org> 1.1.2.1-14
  98. - Enabled a shared library and made lots of spec file cleanups
  99. * Mon Feb 23 2009 Robert Scheck <robert@fedoraproject.org> 1.1.2.1-13
  100. - Rebuild against gcc 4.4 and rpm 4.6
  101. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.2.1-12
  102. - Autorebuild for GCC 4.3
  103. * Wed Aug 1 2007 Patrice Dumas <pertusus@free.fr> 1.1.2.1-11
  104. - build with -fPIC (#250296)
  105. * Fri Jan 12 2007 Patrice Dumas <pertusus@free.fr> 1.1.2.1-10
  106. - add debian patch to correct bad checksums
  107. * Tue Aug 29 2006 Patrice Dumas <pertusus@free.fr> 1.1.2.1-9
  108. - rebuild for FC6
  109. * Fri Feb 17 2006 Patrice Dumas <pertusus@free.fr> 1.1.2.1-8
  110. - rebuild for fc5
  111. * Thu Dec 22 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-7
  112. - rebuild
  113. * Mon Sep 12 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-6
  114. - bump release and add dist tag
  115. * Tue Aug 30 2005 Paul Howarth <paul@city-fan.org> 1.1.2.1-5
  116. - spec file cleanup
  117. * Fri Aug 26 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-4
  118. - use pushd and popd (from Oliver Falk)
  119. * Mon Aug 22 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-3
  120. - Correct dos end of lines
  121. - add in devel: Provides: %%{name} = %%{version}-%%{release}
  122. * Fri Aug 12 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-2
  123. - put everything in a devel subpackage
  124. - add smpflags
  125. - clean in sample
  126. * Fri Aug 12 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-1
  127. - rebuild changing only name
  128. * Wed Jun 02 2004 Marcin Garski <garski@poczta.onet.pl> 1.1.2.1-2.fc2
  129. - Rebuild for Fedora Core 2
  130. * Sat May 08 2004 Marcin Garski <garski@poczta.onet.pl> 1.1.2.1-1
  131. - Initial specfile