libnet-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. Summary: C library for portable packet creation and injection
  2. Name: libnet
  3. Version: 1.1.2.1
  4. Release: 2%{?_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
  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. %{_bindir}/libnet-config
  55. %{_includedir}/libnet/
  56. %{_includedir}/libnet.h
  57. %{_libdir}/libnet.a
  58. %{_mandir}/man3/libnet*
  59. %changelog
  60. * Sat Apr 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.2.1-2
  61. - rebuilt with current VineSeed
  62. * Mon Sep 29 2008 Shu KONNO <owa@bg.wakwak.com> 1.1.2.1-1vl5
  63. - applied new versioning policy
  64. * Mon Oct 23 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.2.1-0vl1
  65. - initial build for Vine Linux based on FE package.
  66. * Tue Aug 29 2006 Patrice Dumas <dumas@centre-cired.fr> - 1.1.2.1-9
  67. - rebuild for FC6
  68. * Fri Feb 17 2006 Patrice Dumas <dumas@centre-cired.fr> - 1.1.2.1-8
  69. - rebuild for fc5
  70. * Thu Dec 22 2005 Patrice Dumas <dumas@centre-cired.fr> - 1.1.2.1-7
  71. - rebuild
  72. * Mon Sep 12 2005 Patrice Dumas <dumas@centre-cired.fr> 1.1.2.1-6
  73. - bump release and add dist tag
  74. * Tue Aug 30 2005 Paul Howarth <paul@city-fan.org> 1.1.2.1-5
  75. - spec file cleanup
  76. * Fri Aug 26 2005 Patrice Dumas <dumas@centre-cired.fr> 1.1.2.1-4
  77. - use pushd and popd (from Oliver Falk)
  78. * Mon Aug 22 2005 Patrice Dumas <dumas@centre-cired.fr> 1.1.2.1-3
  79. - Correct dos end of lines
  80. - add in devel: Provides: %%{name} = %%{version}-%%{release}
  81. * Fri Aug 12 2005 Patrice Dumas <dumas@centre-cired.fr> 1.1.2.1-2
  82. - put everything in a devel subpackage
  83. - add smpflags
  84. - clean in sample
  85. * Fri Aug 12 2005 Patrice Dumas <dumas@centre-cired.fr> 1.1.2.1-1
  86. - rebuild changing only name
  87. * Wed Jun 02 2004 Marcin Garski <garski@poczta.onet.pl> 1.1.2.1-2.fc2
  88. - Rebuild for Fedora Core 2
  89. * Sat May 08 2004 Marcin Garski <garski@poczta.onet.pl> 1.1.2.1-1
  90. - Initial specfile