libnet-vl.spec 3.8 KB

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