libnet-vl.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. Summary: C library for portable packet creation and injection
  2. Name: libnet
  3. Version: 1.1.2.1
  4. Release: 3%{?_dist_release}
  5. License: BSD
  6. Group: System Environment/Libraries
  7. URL: http://www.packetfactory.net/libnet/
  8. Source0: http://www.packetfactory.net/libnet/dist/libnet-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. %description
  11. Libnet is an API to help with the construction and handling of network packets.
  12. It provides a portable framework for low-level network packet writing and
  13. handling (use libnet in conjunction with libpcap and you can write some really
  14. cool stuff). Libnet includes packet creation at the IP layer and at the link
  15. layer as well as a host of supplementary and complementary functionality.
  16. Libnet is very handy with which to write network tools and network test code.
  17. See the manpage and sample test code for more detailed information.
  18. %package devel
  19. Summary: Development files for libnet
  20. Group: Development/Libraries
  21. Provides: %{name} = %{version}-%{release}
  22. %description devel
  23. Libnet is an API to help with the construction and handling of network packets.
  24. It provides a portable framework for low-level network packet writing and
  25. handling (use libnet in conjunction with libpcap and you can write some really
  26. cool stuff). Libnet includes packet creation at the IP layer and at the link
  27. layer as well as a host of supplementary and complementary functionality.
  28. Libnet is very handy with which to write network tools and network test code.
  29. See the manpage and sample test code for more detailed information.
  30. %prep
  31. %setup -q -n libnet
  32. sed -i -e 's/\r$//' doc/CHANGELOG doc/CONTRIB
  33. find . -depth -type d -name CVS -exec rm -rf {} ';'
  34. rm -rf sample/win32
  35. rm -f sample/.\#* sample/.*.swp
  36. %build
  37. %configure --disable-static
  38. make %{?_smp_mflags}
  39. %install
  40. rm -rf %{buildroot}
  41. make DESTDIR=%{buildroot} install
  42. install -D --mode=0755 libnet-config %{buildroot}%{_bindir}/libnet-config
  43. install -d --mode=0755 %{buildroot}%{_mandir}/man3
  44. install -D --mode=0644 doc/man/man3/libnet*.3 %{buildroot}%{_mandir}/man3/
  45. make -C sample clean
  46. %clean
  47. rm -rf %{buildroot}
  48. %files devel
  49. %defattr(-,root,root,-)
  50. %doc README VERSION
  51. %doc doc/BUGS doc/CHANGELOG doc/CONTRIB doc/COPYING doc/DESIGN_NOTES
  52. %doc doc/MIGRATION doc/PACKET_BUILDING doc/PORTED doc/RAWSOCKET_NON_SEQUITUR
  53. %doc doc/TODO doc/html/ sample/
  54. %{_libdir}/*.so.*
  55. %files devel
  56. %defattr(-,root,root,-)
  57. %{_bindir}/libnet-config
  58. %{_includedir}/libnet/
  59. %{_includedir}/libnet.h
  60. %{_libdir}/*.so
  61. %{_mandir}/man3/libnet*
  62. %changelog
  63. * Tue May 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.2.1-3
  64. - add configure option (--disable-static)
  65. * Sat Apr 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.2.1-2
  66. - rebuilt with current VineSeed
  67. * Mon Sep 29 2008 Shu KONNO <owa@bg.wakwak.com> 1.1.2.1-1vl5
  68. - applied new versioning policy
  69. * Mon Oct 23 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.2.1-0vl1
  70. - initial build for Vine Linux based on FE package.
  71. * Tue Aug 29 2006 Patrice Dumas <dumas@centre-cired.fr> - 1.1.2.1-9
  72. - rebuild for FC6
  73. * Fri Feb 17 2006 Patrice Dumas <dumas@centre-cired.fr> - 1.1.2.1-8
  74. - rebuild for fc5
  75. * Thu Dec 22 2005 Patrice Dumas <dumas@centre-cired.fr> - 1.1.2.1-7
  76. - rebuild
  77. * Mon Sep 12 2005 Patrice Dumas <dumas@centre-cired.fr> 1.1.2.1-6
  78. - bump release and add dist tag
  79. * Tue Aug 30 2005 Paul Howarth <paul@city-fan.org> 1.1.2.1-5
  80. - spec file cleanup
  81. * Fri Aug 26 2005 Patrice Dumas <dumas@centre-cired.fr> 1.1.2.1-4
  82. - use pushd and popd (from Oliver Falk)
  83. * Mon Aug 22 2005 Patrice Dumas <dumas@centre-cired.fr> 1.1.2.1-3
  84. - Correct dos end of lines
  85. - add in devel: Provides: %%{name} = %%{version}-%%{release}
  86. * Fri Aug 12 2005 Patrice Dumas <dumas@centre-cired.fr> 1.1.2.1-2
  87. - put everything in a devel subpackage
  88. - add smpflags
  89. - clean in sample
  90. * Fri Aug 12 2005 Patrice Dumas <dumas@centre-cired.fr> 1.1.2.1-1
  91. - rebuild changing only name
  92. * Wed Jun 02 2004 Marcin Garski <garski@poczta.onet.pl> 1.1.2.1-2.fc2
  93. - Rebuild for Fedora Core 2
  94. * Sat May 08 2004 Marcin Garski <garski@poczta.onet.pl> 1.1.2.1-1
  95. - Initial specfile