libnet-vl.spec 5.8 KB

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