wireshark.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. ##
  2. ## wireshark.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2016 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # package information
  24. Name: wireshark
  25. Summary: Network Sniffer & Decoder
  26. URL: http://www.wireshark.org/
  27. Vendor: Gerald Combs et al.
  28. Packager: OpenPKG Foundation e.V.
  29. Distribution: OpenPKG Community
  30. Class: PLUS
  31. Group: Networking
  32. License: GPL
  33. Version: 2.2.2
  34. Release: 20161117
  35. # list of sources
  36. Source0: http://wiresharkdownloads.riverbed.com/wireshark/src/wireshark-%{version}.tar.bz2
  37. Patch0: wireshark.patch
  38. # build information
  39. BuildPreReq: OpenPKG, openpkg >= 20160101
  40. PreReq: OpenPKG, openpkg >= 20160101
  41. BuildPreReq: libpcap, openssl, zlib, geoip, ares
  42. PreReq: libpcap, openssl, zlib, geoip, ares
  43. %description
  44. Wireshark is the world's foremost network protocol analyzer. It
  45. lets you capture and interactively browse the traffic running on a
  46. computer network. It is the de facto (and often de jure) standard
  47. across many industries and educational institutions. Notice: this
  48. OpenPKG package contains only the command-line interface based tools
  49. of Wireshark.
  50. %track
  51. prog wireshark = {
  52. version = %{version}
  53. url = http://www.wireshark.org/download.html
  54. regex = wireshark-(\d+\.\d+\.\d+)\.tar\.bz2
  55. }
  56. %prep
  57. %setup -q
  58. %patch -p0
  59. %build
  60. %{l_shtool} subst -e 's;-Werror;;g' \
  61. configure \
  62. Makefile.in */Makefile.in
  63. CC="%{l_cc}" \
  64. CFLAGS="%{l_cflags -O}" \
  65. CPPFLAGS="%{l_cppflags}" \
  66. LDFLAGS="%{l_ldflags}" \
  67. ./configure \
  68. --prefix=%{l_prefix} \
  69. --mandir=%{l_prefix}/man \
  70. --disable-wireshark \
  71. --with-pcap=%{l_prefix} \
  72. --with-zlib=%{l_prefix} \
  73. --with-ssl=%{l_prefix} \
  74. --with-c-ares=%{l_prefix} \
  75. --with-geoip=%{l_prefix} \
  76. --without-lua \
  77. --without-portaudio \
  78. --without-libcap \
  79. --without-gcrypt \
  80. --without-qt \
  81. --without-gtk3 \
  82. --without-libsmi \
  83. --without-krb5 \
  84. --without-adns \
  85. --without-python \
  86. --disable-shared \
  87. --disable-nls
  88. %{l_make} %{l_mflags -O}
  89. %install
  90. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  91. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  92. rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/charset.alias
  93. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/wireshark/radius
  94. rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/wireshark
  95. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  96. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  97. %files -f files
  98. %clean