libnet-vl.spec 5.9 KB

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