ethereal.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. ##
  2. ## ethereal.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package information
  26. Name: ethereal
  27. Summary: Graphical Realtime Network Protocol Analyzer
  28. URL: http://www.ethereal.com/
  29. Vendor: Gerald Combs
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG
  32. Class: PLUS
  33. Group: Network
  34. License: GPL
  35. Version: 0.10.2
  36. Release: 20040224
  37. # package options
  38. %option with_zlib yes
  39. %option with_adns yes
  40. %option with_pcre yes
  41. %option with_snmp yes
  42. %option with_ssl yes
  43. # list of sources
  44. Source0: http://www.ethereal.com/distribution/ethereal-%{version}.tar.bz2
  45. Patch0: ethereal.patch
  46. # build information
  47. Prefix: %{l_prefix}
  48. BuildRoot: %{l_buildroot}
  49. BuildPreReq: OpenPKG, openpkg >= 20040130, glib2, gtk2, libpcap, gcc, make, perl, sed
  50. PreReq: OpenPKG, openpkg >= 20040130, glib2, gtk2, libpcap
  51. %if "%{with_zlib}" == "yes"
  52. BuildPreReq: zlib
  53. PreReq: zlib
  54. %endif
  55. %if "%{with_ssl}" == "yes"
  56. BuildPreReq: openssl
  57. PreReq: openssl
  58. %endif
  59. %if "%{with_snmp}" == "yes"
  60. BuildPreReq: snmp
  61. PreReq: snmp
  62. %endif
  63. %if "%{with_adns}" == "yes"
  64. BuildPreReq: adns
  65. PreReq: adns
  66. %endif
  67. %if "%{with_pcre}" == "yes"
  68. BuildPreReq: pcre
  69. PreReq: pcre
  70. %endif
  71. AutoReq: no
  72. AutoReqProv: no
  73. %description
  74. Ethereal is a free network protocol analyzer for Unix and Windows.
  75. It allows you to examine data from a live network or from a capture
  76. file on disk. You can interactively browse the capture data, viewing
  77. summary and detail information for each packet. Ethereal has several
  78. powerful features, including a rich display filter language and the
  79. ability to view the reconstructed stream of a TCP session.
  80. %track
  81. prog ethereal = {
  82. comment = "rse: 0.10.1: missing files (.xpm) in distribution"
  83. version = %{version}
  84. url = http://www.ethereal.com/distribution/
  85. regex = ethereal-(__VER__)\.tar\.bz2
  86. }
  87. %prep
  88. %setup -q
  89. %patch -p0
  90. %build
  91. CC="%{l_cc}" \
  92. CFLAGS="%{l_cflags -O}" \
  93. CPPFLAGS="%{l_cppflags}" \
  94. LDFLAGS="%{l_ldflags}" \
  95. ./configure \
  96. --prefix=%{l_prefix} \
  97. --sysconfdir=%{l_prefix}/etc/ethereal \
  98. --with-plugins=%{l_prefix}/libexec/ethereal \
  99. --enable-ethereal \
  100. --enable-gtk2 \
  101. --with-glib-prefix=%{l_prefix} \
  102. --with-gtk-prefix=%{l_prefix} \
  103. --with-pcap=%{l_prefix} \
  104. %if "%{with_zlib}" == "yes"
  105. --with-zlib=%{l_prefix} \
  106. %else
  107. --without-zlib \
  108. %endif
  109. %if "%{with_ssl}" == "yes"
  110. --with-ssl=%{l_prefix} \
  111. %else
  112. --without-ssl \
  113. %endif
  114. %if "%{with_snmp}" == "yes"
  115. --with-net-snmp=%{l_prefix}/bin/net-snmp-config \
  116. %else
  117. --without-net-snmp \
  118. %endif
  119. %if "%{with_adns}" == "yes"
  120. --with-adns=%{l_prefix} \
  121. %else
  122. --without-adns \
  123. %endif
  124. %if "%{with_pcre}" == "yes"
  125. --with-pcre=%{l_prefix} \
  126. %else
  127. --without-pcre \
  128. %endif
  129. --disable-ipv6
  130. %{l_make} %{l_mflags}
  131. %install
  132. rm -rf $RPM_BUILD_ROOT
  133. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  134. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  135. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  136. %files -f files
  137. %clean
  138. rm -rf $RPM_BUILD_ROOT