wireshark-vl.spec 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  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.10
  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. * Tue Sep 23 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.10-1
  187. - new upstream release
  188. * Thu Aug 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.9-1
  189. - new upstream release
  190. * Fri Jun 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.8-1
  191. - new upstream release
  192. (including security fix for CVE-2014-4020)
  193. * Sat May 03 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.7-1
  194. - new upstream release
  195. (including security fix for CVE-2014-2907)
  196. * Sat Mar 15 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.6-1
  197. - new upstream release
  198. (including security fix for CVE-2014-2281,2282,2283,2299)
  199. * Sun Dec 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.5-1
  200. - new upstream release
  201. * Tue Nov 05 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.3-1
  202. - new upstream release
  203. (including security fix for CVE-2013-6336,6337,6338,6339,6340)
  204. * Mon Sep 16 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.2-1
  205. - new upstream release
  206. * Sun Jul 28 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.1-1
  207. - new upstream release
  208. (including security fix for CVE-2013-4083,4920,4921,4922,4923,4924,4925,4926,4927,4929,4930,4931,4932,4944,4934,4935,4936)
  209. * Sat Jun 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.0-1
  210. - new upstream release
  211. - update Patch5 (wireshark-1.10.0-lua-vine.patch)
  212. - remove Patch3 (wireshark-nfsv4-opts.patch)
  213. * Sat May 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.7-1
  214. - new upstream release
  215. (including security fix for CVE-2013-2486 - 2487)
  216. * Sun Mar 10 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.6-1
  217. - new upstream release
  218. (including security fix for CVE-2013-2475 - 2488)
  219. * Wed Jan 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.5-1
  220. - new upstream release
  221. * Tue Jan 01 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.4-1
  222. - new upstream release
  223. * Wed Oct 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.3-1
  224. - new upstream release
  225. (including security fix for CVE-2012-5237 - 5240)
  226. * Thu Aug 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.2-1
  227. - new upstream release
  228. (including security fix for CVE-2012-4285 - 4298)
  229. * Tue Jul 24 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.1-1
  230. - new upstream release
  231. * Fri Jun 22 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1
  232. - new upstream release
  233. * Wed May 23 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.8-1
  234. - new upstream release
  235. * Sun Apr 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.7-1
  236. - new upstream release
  237. * Thu Jan 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.5-1
  238. - new upstream release
  239. * Tue Nov 22 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.4-1
  240. - new upstream release
  241. * Sat Nov 05 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.3-1
  242. - new upstream release
  243. * Thu Sep 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.2-1
  244. - new upstream release
  245. * Sun Jul 31 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.1-1
  246. - new upstream release
  247. * Sun Jun 05 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.7-1
  248. - new upstream release
  249. (including security fix for CVE-2011-1957,1958,1959,2174,7175)
  250. * Sun Apr 24 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.6-1
  251. - new upstream release
  252. * Wed Mar 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.4-2
  253. - rebuild with krb5-libs-1.8.2
  254. * Wed Mar 02 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.4-1
  255. - new upstream release
  256. (including security fix for CVE-2011-0538 and CVE-2011-0713)
  257. * Sat Jan 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.3-1
  258. - new upstream release
  259. (including security fix for CVE-2010-4538)
  260. * Mon Jan 10 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.2-2
  261. - rebuild with openssl-1.0.0c
  262. * Sat Nov 20 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.2-1
  263. - new upstream release
  264. * Sat Oct 16 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.1-1
  265. - new upstream release
  266. (including security fix for CVE-2010-3445)
  267. * Sun Sep 19 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1
  268. - new upstream release
  269. - add Patch5 (wireshark-1.4.0-lua-vine.patch)
  270. * Mon Aug 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.10-1
  271. - new upstream release
  272. (including security fix for CVE-2010-2287 and CVE-2010-2284)
  273. * Wed Jul 07 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.9-1
  274. - new upstream release
  275. * Tue May 25 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.2.8-2
  276. - rebuilt with libpcap-1.1.1
  277. * Sat May 08 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.8-1
  278. - new upstream release
  279. (including security fix for CVE-2010-1455)
  280. * Thu Apr 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.7-1
  281. - new upstream release
  282. * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 1.2.5-3
  283. - rebuilt with python-2.6.4
  284. * Sun Dec 20 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.5-2
  285. - added --enable-wireshark instead of --enable-gtk2
  286. - added BR: bison, flex
  287. * Sat Dec 19 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.2.5-1
  288. - new upstream release with security fixes (SNA/SMB/IPMI issues)
  289. * Thu Oct 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.3-1
  290. - new upstream release
  291. (includeing security fix for CVE-2009-3549,3550 and 3551)
  292. * Wed Sep 23 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.2.2-2
  293. - add BR: lua-devel (Vine 5.0 and later)
  294. * Sat Sep 19 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.2-1
  295. - new upstream release
  296. * Tue Jul 21 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.1-1
  297. - new upstream release
  298. * Mon Jul 20 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-1
  299. - new upstream release
  300. * Sat May 23 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.8-1
  301. - new upstream release
  302. * Fri Apr 10 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.7-1
  303. - new upstream release
  304. * Mon Feb 9 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.6-1
  305. - new upstream release
  306. - used more macros
  307. * Sat Jan 24 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.5-1
  308. - new upstream release
  309. * Sun Nov 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.4-2vl5
  310. - rebuilt
  311. * Mon Oct 27 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.4-1
  312. - new upstream release with security fix
  313. - add BuildRequires krb5-devel
  314. - SPEC in UTF-8
  315. * Fri Sep 05 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.3-1
  316. - new upstream release with security update
  317. * Wed Apr 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.0-1
  318. - new upstream release with security update
  319. - add Vendor/Distribution tag
  320. - add BuildRequires: libcap-devel
  321. - new versioning policy
  322. * Tue Jan 8 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.99.7-0vl2
  323. - modified Source3 because of desktop-file-install error, like this:
  324. /var/tmp/wireshark-0.99.7-root/usr/share/applications/wireshark.desktop:
  325. error: value "wireshark.png" for key "Icon" in group "Desktop Entry" is
  326. an icon name with an extension, but there should be no extension as
  327. described in the Icon Theme Specification if the value is not an
  328. absolute path
  329. this warning/error occurs with desktop-file-utils >= 0.14
  330. * Wed Jan 2 2008 Satoshi MACHINO <machino@vinelinux.org> 0.99.7-0vl1
  331. - new upstream release
  332. - imported patch4 from fc9
  333. * Sun Sep 2 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.6-0vl2
  334. - rebuilt with libpcap-0.9.7
  335. - added --disable-warning-as-errors to %%configure for glib-2.14.0
  336. * Sat Jul 7 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.6-0vl1
  337. - new upstream release
  338. - rebuilt with libpcap-0.9.6
  339. - added --with-pcap, --with-pcre
  340. * Fri Jun 1 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.5-0vl2
  341. - rebuilt with new toolchain and environment
  342. * Thu Feb 8 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.5-0vl1
  343. - new upstream release
  344. * Mon Nov 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.4-0vl1
  345. - new upstream release
  346. * Wed Oct 4 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.3-0vl1
  347. - initial built for Vine Linux based on Fedora
  348. - Obsoletes: ethereal, Provides: ethereal
  349. * Fri Aug 25 2006 Radek Vokal <rvokal@redhat.com> 0.99.3-fc5.1
  350. - upgrade to 0.99.3-1
  351. - CVE-2006-4330 Wireshark security issues (CVE-2006-4333 CVE-2006-4332 CVE-2006-4331)
  352. * Wed Jul 26 2006 Radek Vokal <rvokal@redhat.com> 0.99.2-fc5.2
  353. - fix BuildRequires
  354. * Tue Jul 25 2006 Radek Vokal <rvokal@redhat.com> 0.99.2-fc5.1
  355. - build for FC5
  356. * Tue Jul 18 2006 Radek Vok叩l <rvokal@redhat.com> 0.99.2-1
  357. - upgrade to 0.99.2
  358. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.99.2-0.pre1.1
  359. - rebuild
  360. * Tue Jul 11 2006 Radek Vok叩l <rvokal@redhat.com> 0.99.2-0.pre1
  361. - upgrade to 0.99.2pre1, fixes (#198242)
  362. * Tue Jun 13 2006 Radek Vokal <rvokal@redhat.com> 0.99.1-0.pre1
  363. - spec file changes
  364. * Fri Jun 9 2006 Radek Vokal <rvokal@redhat.com> 0.99.1pre1-1
  365. - initial build for Fedora Core