wireshark-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
  2. Summary: Network traffic analyzer
  3. Summary(ja): ネットワークトラフィック解析プログラム
  4. Name: wireshark
  5. Version: 1.8.4
  6. Release: 1%{_dist_release}
  7. License: GPLv2
  8. Group: Applications/System
  9. Source0: http://www.wireshark.org/download/src/%{name}-%{version}.tar.bz2
  10. Source1: wireshark.pam
  11. Source2: wireshark.console
  12. Source3: wireshark.desktop
  13. Patch1: wireshark-0.99.7-pie.patch
  14. Patch3: wireshark-nfsv4-opts.patch
  15. Patch4: wireshark-0.99.7-path.patch
  16. Patch5: wireshark-1.4.0-lua-vine.patch
  17. URL: http://www.wireshark.org/
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. BuildRequires: libcap-devel
  20. BuildRequires: net-snmp-devel >= 5.0
  21. BuildRequires: net-snmp-utils >= 5.0
  22. BuildRequires: zlib-devel, bzip2-devel
  23. BuildRequires: openssl-devel
  24. BuildRequires: glib2-devel, gtk2-devel
  25. BuildRequires: libelf-devel
  26. BuildRequires: python, pcre-devel
  27. BuildRequires: gnutls-devel
  28. BuildRequires: desktop-file-utils, automake, libtool
  29. BuildRequires: bison, flex
  30. BuildRequires: krb5-devel
  31. BuildRequires: libpcap-devel
  32. BuildRequires: lua-devel
  33. Requires: usermode >= 1.37
  34. Requires(post): desktop-file-utils
  35. Requires(postun): desktop-file-utils
  36. Obsoletes: ethereal
  37. Obsoletes: ethereal-base ethereal-gnome ethereal-gtk+
  38. Obsoletes: ethereal-kde ethereal-usermode
  39. Provides: ethereal ethereal-gnome
  40. Vendor: Project Vine
  41. Distribution: Vine Linux
  42. Packager: inagaki, Takemikaduchi
  43. %description
  44. Wireshark is a network traffic analyzer for Unix-ish operating systems.
  45. This package lays base for libpcap, a packet capture and filtering
  46. library, contains command-line utilities, contains plugins and
  47. documentation for wireshark. A graphical user interface is also
  48. included with this package.
  49. %description -l ja
  50. Wireshark は,UNIX 系 OS 用のネットワークトラフィック解析プログラムです.
  51. このパッケージは,パケットキャプチャ/フィルタリングライブラリである
  52. libpcap を使ったコマンドラインツールと,プラグイン,ドキュメント等が
  53. 収められています.GUI もこのパッケージに収められています.
  54. %prep
  55. %setup -q -n %{name}-%{version}
  56. #patch1 -p1 -b .pie
  57. %patch3 -p1
  58. %patch4 -p1
  59. %patch5 -p1 -b .lua-vine
  60. %build
  61. %ifarch s390 s390x
  62. export PIECFLAGS="-fPIE"
  63. %else
  64. export PIECFLAGS="-fpie"
  65. %endif
  66. # FC5+ automatic -fstack-protector-all switch
  67. export RPM_OPT_FLAGS=${RPM_OPT_FLAGS//-fstack-protector/-fstack-protector-all}
  68. ## export CFLAGS="$RPM_OPT_FLAGS $CPPFLAGS -I%{_includedir}/pcap -I%{_includedir}/pcre"
  69. export CFLAGS="$RPM_OPT_FLAGS $CPPFLAGS -I%{_includedir}/pcre"
  70. export CXXFLAGS="$RPM_OPT_FLAGS $CPPFLAGS"
  71. export LDFLAGS="$LDFLAGS -lm -lcrypto"
  72. export PATH="$PATH:/usr/kerberos/bin"
  73. ./autogen.sh
  74. # --disable-warning-as-erros needs for compiling with glib 2.14.0
  75. %configure \
  76. --bindir=%{_sbindir} \
  77. --enable-ipv6 \
  78. --with-gnu-ld \
  79. --disable-static \
  80. --disable-usr-local \
  81. --enable-wireshark \
  82. --with-pic \
  83. --with-ssl \
  84. --with-pcap \
  85. --with-pcre \
  86. %if %{?_dist_release} != "vl4"
  87. --with-krb5 \
  88. %else
  89. --without-krb5 \
  90. %endif
  91. --with-plugins=%{_libdir}/%{name}/plugins/%{version} \
  92. --disable-warnings-as-errors
  93. time make %{?_smp_mflags}
  94. %install
  95. rm -rf $RPM_BUILD_ROOT
  96. # The evil plugins hack
  97. perl -pi -e 's|-L../../epan|-L../../epan/.libs|' plugins/*/*.la
  98. make DESTDIR=$RPM_BUILD_ROOT install
  99. #symlink tshark to tethereal
  100. ln -s tshark $RPM_BUILD_ROOT%{_sbindir}/tethereal
  101. #empty?!
  102. rm -f $RPM_BUILD_ROOT%{_sbindir}/idl2wrs
  103. # install support files for usermode, gnome and kde
  104. mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d
  105. install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/wireshark
  106. mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/security/console.apps
  107. install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/security/console.apps/wireshark
  108. mkdir -p $RPM_BUILD_ROOT/%{_bindir}
  109. ln -s consolehelper $RPM_BUILD_ROOT/%{_bindir}/wireshark
  110. # install man
  111. ## mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
  112. ## install -m 644 *.1 $RPM_BUILD_ROOT/%{_mandir}/man1
  113. # Install python stuff.
  114. mkdir -p $RPM_BUILD_ROOT%{python_sitelib}
  115. install -m 644 tools/wireshark_be.py tools/wireshark_gen.py $RPM_BUILD_ROOT%{python_sitelib}
  116. desktop-file-install --vendor= \
  117. --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
  118. %{SOURCE3}
  119. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pixmaps
  120. install -m 644 image/wsicon48.png $RPM_BUILD_ROOT/%{_datadir}/pixmaps/wireshark.png
  121. # Remove .la files
  122. rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}/plugins/%{version}/*.la
  123. # Remove .la files in libdir
  124. rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
  125. %clean
  126. rm -rf $RPM_BUILD_ROOT
  127. %post
  128. /sbin/ldconfig
  129. update-desktop-database -q
  130. %postun
  131. /sbin/ldconfig
  132. update-desktop-database -q
  133. %files
  134. %defattr(-,root,root)
  135. %doc AUTHORS COPYING ChangeLog INSTALL NEWS README*
  136. %{_sbindir}/editcap
  137. %{_sbindir}/tshark
  138. %{_sbindir}/mergecap
  139. %{_sbindir}/text2pcap
  140. %{_sbindir}/dftest
  141. %{_sbindir}/capinfos
  142. %{_sbindir}/randpkt
  143. %{_sbindir}/dumpcap
  144. %{_sbindir}/tethereal
  145. %{_sbindir}/rawshark
  146. %{python_sitelib}/*
  147. %{_libdir}/lib*
  148. %{_mandir}/man1/editcap.*
  149. %{_mandir}/man1/tshark.*
  150. %{_mandir}/man1/mergecap.*
  151. %{_mandir}/man1/text2pcap.*
  152. %{_mandir}/man1/capinfos.*
  153. %{_mandir}/man1/dumpcap.*
  154. %{_mandir}/man4/wireshark-filter.*
  155. %{_libdir}/wireshark
  156. %config(noreplace) %{_sysconfdir}/pam.d/wireshark
  157. %config(noreplace) %{_sysconfdir}/security/console.apps/wireshark
  158. %config(noreplace) %{_datadir}/%{name}/init.lua
  159. %{_datadir}/%{name}/AUTHORS-SHORT
  160. %{_datadir}/%{name}/COPYING
  161. %{_datadir}/%{name}/*.html
  162. %{_datadir}/%{name}/*.css
  163. %{_datadir}/%{name}/cfilters
  164. %{_datadir}/%{name}/colorfilters
  165. %{_datadir}/%{name}/console.lua
  166. %{_datadir}/%{name}/dfilters
  167. %{_datadir}/%{name}/diameter
  168. %{_datadir}/%{name}/dtd_gen.lua
  169. %{_datadir}/%{name}/dtds
  170. %{_datadir}/%{name}/help
  171. %{_datadir}/%{name}/manuf
  172. %{_datadir}/%{name}/pdml2html.xsl
  173. %{_datadir}/%{name}/radius
  174. %{_datadir}/%{name}/services
  175. %{_datadir}/%{name}/smi_modules
  176. %{_datadir}/%{name}/tpncp
  177. %{_datadir}/%{name}/wimaxasncp
  178. %{_datadir}/applications/*.desktop
  179. %{_datadir}/pixmaps/wireshark.png
  180. %{_bindir}/wireshark
  181. %{_sbindir}/wireshark
  182. %{_mandir}/man1/wireshark.*
  183. %{_mandir}/man1/rawshark.*
  184. %{_mandir}/man1/dftest.*
  185. %{_mandir}/man1/randpkt.*
  186. %changelog
  187. * Tue Jan 01 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.4-1
  188. - new upstream release
  189. * Wed Oct 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.3-1
  190. - new upstream release
  191. (including security fix for CVE-2012-5237 - 5240)
  192. * Thu Aug 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.2-1
  193. - new upstream release
  194. (including security fix for CVE-2012-4285 - 4298)
  195. * Tue Jul 24 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.1-1
  196. - new upstream release
  197. * Fri Jun 22 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1
  198. - new upstream release
  199. * Wed May 23 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.8-1
  200. - new upstream release
  201. * Sun Apr 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.7-1
  202. - new upstream release
  203. * Thu Jan 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.5-1
  204. - new upstream release
  205. * Tue Nov 22 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.4-1
  206. - new upstream release
  207. * Sat Nov 05 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.3-1
  208. - new upstream release
  209. * Thu Sep 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.2-1
  210. - new upstream release
  211. * Sun Jul 31 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.1-1
  212. - new upstream release
  213. * Sun Jun 05 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.7-1
  214. - new upstream release
  215. (including security fix for CVE-2011-1957,1958,1959,2174,7175)
  216. * Sun Apr 24 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.6-1
  217. - new upstream release
  218. * Wed Mar 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.4-2
  219. - rebuild with krb5-libs-1.8.2
  220. * Wed Mar 02 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.4-1
  221. - new upstream release
  222. (including security fix for CVE-2011-0538 and CVE-2011-0713)
  223. * Sat Jan 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.3-1
  224. - new upstream release
  225. (including security fix for CVE-2010-4538)
  226. * Mon Jan 10 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.2-2
  227. - rebuild with openssl-1.0.0c
  228. * Sat Nov 20 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.2-1
  229. - new upstream release
  230. * Sat Oct 16 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.1-1
  231. - new upstream release
  232. (including security fix for CVE-2010-3445)
  233. * Sun Sep 19 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1
  234. - new upstream release
  235. - add Patch5 (wireshark-1.4.0-lua-vine.patch)
  236. * Mon Aug 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.10-1
  237. - new upstream release
  238. (including security fix for CVE-2010-2287 and CVE-2010-2284)
  239. * Wed Jul 07 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.9-1
  240. - new upstream release
  241. * Tue May 25 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.2.8-2
  242. - rebuilt with libpcap-1.1.1
  243. * Sat May 08 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.8-1
  244. - new upstream release
  245. (including security fix for CVE-2010-1455)
  246. * Thu Apr 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.7-1
  247. - new upstream release
  248. * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 1.2.5-3
  249. - rebuilt with python-2.6.4
  250. * Sun Dec 20 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.5-2
  251. - added --enable-wireshark instead of --enable-gtk2
  252. - added BR: bison, flex
  253. * Sat Dec 19 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.2.5-1
  254. - new upstream release with security fixes (SNA/SMB/IPMI issues)
  255. * Fri Oct 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.3-1
  256. - new upstream release
  257. (includeing security fix for CVE-2009-3549,3550 and 3551)
  258. * Wed Sep 23 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.2.2-2
  259. - add BR: lua-devel (Vine 5.0 and later)
  260. * Sat Sep 19 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.2-1
  261. - new upstream release
  262. * Tue Jul 21 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.1-1
  263. - new upstream release
  264. * Mon Jul 20 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-1
  265. - new upstream release
  266. * Sat May 23 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.8-1
  267. - new upstream release
  268. * Fri Apr 10 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.7-1
  269. - new upstream release
  270. * Sun Feb 9 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.6-1
  271. - new upstream release
  272. - used more macros
  273. * Sat Jan 24 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.5-1
  274. - new upstream release
  275. * Sun Nov 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.4-2vl5
  276. - rebuilt
  277. * Mon Oct 27 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.4-1
  278. - new upstream release with security fix
  279. - add BuildRequires krb5-devel
  280. - SPEC in UTF-8
  281. * Fri Sep 05 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.3-1
  282. - new upstream release with security update
  283. * Wed Apr 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.0-1
  284. - new upstream release with security update
  285. - add Vendor/Distribution tag
  286. - add BuildRequires: libcap-devel
  287. - new versioning policy
  288. * Tue Jan 8 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.99.7-0vl2
  289. - modified Source3 because of desktop-file-install error, like this:
  290. /var/tmp/wireshark-0.99.7-root/usr/share/applications/wireshark.desktop:
  291. error: value "wireshark.png" for key "Icon" in group "Desktop Entry" is
  292. an icon name with an extension, but there should be no extension as
  293. described in the Icon Theme Specification if the value is not an
  294. absolute path
  295. this warning/error occurs with desktop-file-utils >= 0.14
  296. * Wed Jan 2 2008 Satoshi MACHINO <machino@vinelinux.org> 0.99.7-0vl1
  297. - new upstream release
  298. - imported patch4 from fc9
  299. * Sun Sep 2 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.6-0vl2
  300. - rebuilt with libpcap-0.9.7
  301. - added --disable-warning-as-errors to %%configure for glib-2.14.0
  302. * Sat Jul 7 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.6-0vl1
  303. - new upstream release
  304. - rebuilt with libpcap-0.9.6
  305. - added --with-pcap, --with-pcre
  306. * Fri Jun 1 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.5-0vl2
  307. - rebuilt with new toolchain and environment
  308. * Thu Feb 8 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.5-0vl1
  309. - new upstream release
  310. * Mon Nov 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.4-0vl1
  311. - new upstream release
  312. * Wed Oct 4 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.3-0vl1
  313. - initial built for Vine Linux based on Fedora
  314. - Obsoletes: ethereal, Provides: ethereal
  315. * Fri Aug 25 2006 Radek Vokal <rvokal@redhat.com> 0.99.3-fc5.1
  316. - upgrade to 0.99.3-1
  317. - CVE-2006-4330 Wireshark security issues (CVE-2006-4333 CVE-2006-4332 CVE-2006-4331)
  318. * Wed Jul 26 2006 Radek Vokal <rvokal@redhat.com> 0.99.2-fc5.2
  319. - fix BuildRequires
  320. * Tue Jul 25 2006 Radek Vokal <rvokal@redhat.com> 0.99.2-fc5.1
  321. - build for FC5
  322. * Tue Jul 18 2006 Radek Vok叩l <rvokal@redhat.com> 0.99.2-1
  323. - upgrade to 0.99.2
  324. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.99.2-0.pre1.1
  325. - rebuild
  326. * Tue Jul 11 2006 Radek Vok叩l <rvokal@redhat.com> 0.99.2-0.pre1
  327. - upgrade to 0.99.2pre1, fixes (#198242)
  328. * Tue Jun 13 2006 Radek Vokal <rvokal@redhat.com> 0.99.1-0.pre1
  329. - spec file changes
  330. * Fri Jun 9 2006 Radek Vokal <rvokal@redhat.com> 0.99.1pre1-1
  331. - initial build for Fedora Core