wireshark-vl.spec 14 KB

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