libnet-vl.spec 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. Summary: C library for portable packet creation and injection
  2. Name: libnet
  3. Version: 1.1.6
  4. Release: 2%{?_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. autoreconf -ivf
  32. # Keep the sample directory untouched by make
  33. rm -rf __dist_sample
  34. mkdir -p __dist_sample
  35. cp -a sample __dist_sample
  36. %build
  37. %configure
  38. make %{?_smp_mflags}
  39. %install
  40. rm -rf $RPM_BUILD_ROOT
  41. make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
  42. rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.{a,la}
  43. # Prepare samples directory and perform some fixes
  44. rm -rf __dist_sample/sample/win32
  45. rm -f __dist_sample/sample/Makefile.{am,in}
  46. sed -e 's@#include "../include/libnet.h"@#include <libnet.h>@' \
  47. __dist_sample/sample/libnet_test.h > __dist_sample/sample/libnet_test.h.new
  48. touch -c -r __dist_sample/sample/libnet_test.h{,.new}
  49. mv -f __dist_sample/sample/libnet_test.h{.new,}
  50. # Remove makefile relics from documentation
  51. rm -f doc/html/Makefile*
  52. %clean
  53. rm -rf $RPM_BUILD_ROOT
  54. %post -p /sbin/ldconfig
  55. %postun -p /sbin/ldconfig
  56. %files
  57. %defattr(-,root,root,-)
  58. %doc README doc/CHANGELOG doc/CONTRIB doc/COPYING
  59. %{_libdir}/%{name}.so.*
  60. %files devel
  61. %defattr(-,root,root,-)
  62. %doc doc/CHANGELOG doc/CONTRIB doc/COPYING doc/DESIGN_NOTES doc/MIGRATION doc/PACKET_BUILDING
  63. %doc doc/RAWSOCKET_NON_SEQUITUR doc/TODO doc/html/ __dist_sample/sample/
  64. %{_bindir}/%{name}-config
  65. %{_libdir}/%{name}.so
  66. %{_includedir}/libnet.h
  67. %{_includedir}/%{name}/
  68. %{_mandir}/man3/%{name}*.3*
  69. %changelog
  70. * Wed Oct 30 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.1.6-2
  71. - rebuilt with current environment.
  72. * Thu Feb 26 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.1.6-1
  73. - updated to 1.1.6
  74. * Thu Mar 15 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.1.5-1
  75. - updated to 1.1.5; spec revamped
  76. - Sat Apr 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.2.1-2
  77. - rebuilt with current VineSeed
  78. - Mon Sep 29 2008 Shu KONNO <owa@bg.wakwak.com> 1.1.2.1-1vl5
  79. - applied new versioning policy
  80. - Mon Oct 23 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.2.1-0vl1
  81. - initial build for Vine Linux based on FE package.
  82. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-3
  83. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  84. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-2
  85. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  86. * Tue Dec 28 2010 Robert Scheck <robert@fedoraproject.org> 1.1.5-1
  87. - Upgrade to 1.1.5
  88. * Fri Jul 09 2010 Robert Scheck <robert@fedoraproject.org> 1.1.4-4
  89. - Added patch for capability support rather UID check (#589770)
  90. * Fri Aug 21 2009 Robert Scheck <robert@fedoraproject.org> 1.1.4-3
  91. - Move libnet.so.* to /lib[64] to avoid static linking (#518150)
  92. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-2
  93. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  94. * Thu Jun 11 2009 Robert Scheck <robert@fedoraproject.org> 1.1.4-1
  95. - Upgrade to 1.1.4
  96. * Sat Jun 06 2009 Robert Scheck <robert@fedoraproject.org> 1.1.3-2
  97. - Added upstream patch to solve HAVE_CONFIG_H (#501633, #502400)
  98. * Sat May 16 2009 Robert Scheck <robert@fedoraproject.org> 1.1.3-1
  99. - Upgrade to 1.1.3
  100. * Sun Apr 19 2009 Robert Scheck <robert@fedoraproject.org> 1.1.2.1-14
  101. - Enabled a shared library and made lots of spec file cleanups
  102. * Mon Feb 23 2009 Robert Scheck <robert@fedoraproject.org> 1.1.2.1-13
  103. - Rebuild against gcc 4.4 and rpm 4.6
  104. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.2.1-12
  105. - Autorebuild for GCC 4.3
  106. * Wed Aug 1 2007 Patrice Dumas <pertusus@free.fr> 1.1.2.1-11
  107. - build with -fPIC (#250296)
  108. * Fri Jan 12 2007 Patrice Dumas <pertusus@free.fr> 1.1.2.1-10
  109. - add debian patch to correct bad checksums
  110. * Tue Aug 29 2006 Patrice Dumas <pertusus@free.fr> 1.1.2.1-9
  111. - rebuild for FC6
  112. * Fri Feb 17 2006 Patrice Dumas <pertusus@free.fr> 1.1.2.1-8
  113. - rebuild for fc5
  114. * Thu Dec 22 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-7
  115. - rebuild
  116. * Mon Sep 12 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-6
  117. - bump release and add dist tag
  118. * Tue Aug 30 2005 Paul Howarth <paul@city-fan.org> 1.1.2.1-5
  119. - spec file cleanup
  120. * Fri Aug 26 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-4
  121. - use pushd and popd (from Oliver Falk)
  122. * Mon Aug 22 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-3
  123. - Correct dos end of lines
  124. - add in devel: Provides: %%{name} = %%{version}-%%{release}
  125. * Fri Aug 12 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-2
  126. - put everything in a devel subpackage
  127. - add smpflags
  128. - clean in sample
  129. * Fri Aug 12 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-1
  130. - rebuild changing only name
  131. * Wed Jun 02 2004 Marcin Garski <garski@poczta.onet.pl> 1.1.2.1-2.fc2
  132. - Rebuild for Fedora Core 2
  133. * Sat May 08 2004 Marcin Garski <garski@poczta.onet.pl> 1.1.2.1-1
  134. - Initial specfile