wireshark-vl.spec 14 KB

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