123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346 |
- %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
- Summary: Network traffic analyzer
- Summary(ja): ネットワークトラフィック解析プログラム
- Name: wireshark
- Version: 1.4.2
- Release: 1%{_dist_release}
- License: GPLv2
- Group: Applications/System
- Source0: http://www.wireshark.org/download/src/%{name}-%{version}.tar.bz2
- Source1: wireshark.pam
- Source2: wireshark.console
- Source3: wireshark.desktop
- Patch1: wireshark-0.99.7-pie.patch
- Patch3: wireshark-nfsv4-opts.patch
- Patch4: wireshark-0.99.7-path.patch
- Patch5: wireshark-1.4.0-lua-vine.patch
- URL: http://www.wireshark.org/
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- BuildRequires: libcap-devel
- BuildRequires: net-snmp-devel >= 5.0
- BuildRequires: net-snmp-utils >= 5.0
- BuildRequires: zlib-devel, bzip2-devel
- BuildRequires: openssl-devel
- BuildRequires: glib2-devel, gtk2-devel
- BuildRequires: libelf-devel
- BuildRequires: python, pcre-devel
- BuildRequires: gnutls-devel
- BuildRequires: desktop-file-utils, automake, libtool
- BuildRequires: bison, flex
- %if %{?_dist_release} != "vl4"
- BuildRequires: krb5-devel
- BuildRequires: libpcap-devel
- BuildRequires: lua-devel
- %else
- BuildRequires: libpcap
- %endif
- Requires: usermode >= 1.37
- Requires(post): desktop-file-utils
- Requires(postun): desktop-file-utils
- Obsoletes: ethereal
- Obsoletes: ethereal-base ethereal-gnome ethereal-gtk+
- Obsoletes: ethereal-kde ethereal-usermode
- Provides: ethereal ethereal-gnome
- Vendor: Project Vine
- Distribution: Vine Linux
- Packager: inagaki
- %description
- Wireshark is a network traffic analyzer for Unix-ish operating systems.
- This package lays base for libpcap, a packet capture and filtering
- library, contains command-line utilities, contains plugins and
- documentation for wireshark. A graphical user interface is also
- included with this package.
- %description -l ja
- Wireshark は,UNIX 系 OS 用のネットワークトラフィック解析プログラムです.
- このパッケージは,パケットキャプチャ/フィルタリングライブラリである
- libpcap を使ったコマンドラインツールと,プラグイン,ドキュメント等が
- 収められています.GUI もこのパッケージに収められています.
- %prep
- %setup -q -n %{name}-%{version}
- #patch1 -p1 -b .pie
- %patch3 -p1
- %patch4 -p1
- %patch5 -p1 -b .lua-vine
- %build
- %ifarch s390 s390x
- export PIECFLAGS="-fPIE"
- %else
- export PIECFLAGS="-fpie"
- %endif
- # FC5+ automatic -fstack-protector-all switch
- export RPM_OPT_FLAGS=${RPM_OPT_FLAGS//-fstack-protector/-fstack-protector-all}
- ## export CFLAGS="$RPM_OPT_FLAGS $CPPFLAGS -I%{_includedir}/pcap -I%{_includedir}/pcre"
- export CFLAGS="$RPM_OPT_FLAGS $CPPFLAGS -I%{_includedir}/pcre"
- export CXXFLAGS="$RPM_OPT_FLAGS $CPPFLAGS"
- export LDFLAGS="$LDFLAGS -lm -lcrypto"
- export PATH="$PATH:/usr/kerberos/bin"
- ./autogen.sh
- # --disable-warning-as-erros needs for compiling with glib 2.14.0
- %configure \
- --bindir=%{_sbindir} \
- --enable-ipv6 \
- --with-gnu-ld \
- --disable-static \
- --disable-usr-local \
- --enable-wireshark \
- --with-pic \
- --with-ssl \
- --with-pcap \
- --with-pcre \
- %if %{?_dist_release} != "vl4"
- --with-krb5 \
- %else
- --without-krb5 \
- %endif
- --with-plugins=%{_libdir}/%{name}/plugins/%{version} \
- --disable-warnings-as-errors
- time make %{?_smp_mflags}
- %install
- rm -rf $RPM_BUILD_ROOT
- # The evil plugins hack
- perl -pi -e 's|-L../../epan|-L../../epan/.libs|' plugins/*/*.la
- make DESTDIR=$RPM_BUILD_ROOT install
- #symlink tshark to tethereal
- ln -s tshark $RPM_BUILD_ROOT%{_sbindir}/tethereal
- #empty?!
- rm -f $RPM_BUILD_ROOT%{_sbindir}/idl2wrs
- # install support files for usermode, gnome and kde
- mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d
- install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/wireshark
- mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/security/console.apps
- install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/security/console.apps/wireshark
- mkdir -p $RPM_BUILD_ROOT/%{_bindir}
- ln -s consolehelper $RPM_BUILD_ROOT/%{_bindir}/wireshark
- # install man
- ## mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
- ## install -m 644 *.1 $RPM_BUILD_ROOT/%{_mandir}/man1
- # Install python stuff.
- mkdir -p $RPM_BUILD_ROOT%{python_sitelib}
- install -m 644 tools/wireshark_be.py tools/wireshark_gen.py $RPM_BUILD_ROOT%{python_sitelib}
- desktop-file-install --vendor= \
- --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
- %{SOURCE3}
- mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pixmaps
- install -m 644 image/wsicon48.png $RPM_BUILD_ROOT/%{_datadir}/pixmaps/wireshark.png
- # Remove .la files
- rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}/plugins/%{version}/*.la
- # Remove .la files in libdir
- rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
- %clean
- rm -rf $RPM_BUILD_ROOT
- %post
- /sbin/ldconfig
- update-desktop-database -q
- %postun
- /sbin/ldconfig
- update-desktop-database -q
- %files
- %defattr(-,root,root)
- %doc AUTHORS COPYING ChangeLog INSTALL NEWS README*
- %{_sbindir}/editcap
- #%{_sbindir}/idl2wrs
- %{_sbindir}/tshark
- %{_sbindir}/mergecap
- %{_sbindir}/text2pcap
- %{_sbindir}/dftest
- %{_sbindir}/capinfos
- %{_sbindir}/randpkt
- %{_sbindir}/dumpcap
- %{_sbindir}/tethereal
- %{_sbindir}/rawshark
- %{python_sitelib}/*
- %{_libdir}/lib*
- %{_mandir}/man1/editcap.*
- %{_mandir}/man1/tshark.*
- %{_mandir}/man1/idl2wrs.*
- %{_mandir}/man1/mergecap.*
- %{_mandir}/man1/text2pcap.*
- %{_mandir}/man1/capinfos.*
- %{_mandir}/man1/dumpcap.*
- %{_mandir}/man4/wireshark-filter.*
- %{_libdir}/wireshark
- %config(noreplace) %{_sysconfdir}/pam.d/wireshark
- %config(noreplace) %{_sysconfdir}/security/console.apps/wireshark
- %{_datadir}/wireshark
- %{_datadir}/applications/*.desktop
- %{_datadir}/pixmaps/wireshark.png
- %{_bindir}/wireshark
- %{_sbindir}/wireshark
- %{_mandir}/man1/wireshark.*
- %{_mandir}/man1/rawshark.*
- %{_mandir}/man1/dftest.*
- %{_mandir}/man1/randpkt.*
- %changelog
- * Sat Nov 20 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.2-1
- - new upstream release
- * Sat Oct 16 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.1-1
- - new upstream release
- (including security fix for CVE-2010-3445)
- * Sun Sep 19 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1
- - new upstream release
- - add Patch5 (wireshark-1.4.0-lua-vine.patch)
- * Mon Aug 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.10-1
- - new upstream release
- (including security fix for CVE-2010-2287 and CVE-2010-2284)
- * Wed Jul 07 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.9-1
- - new upstream release
- * Tue May 25 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.2.8-2
- - rebuilt with libpcap-1.1.1
- * Sat May 08 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.8-1
- - new upstream release
- (including security fix for CVE-2010-1455)
- * Thu Apr 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.7-1
- - new upstream release
- * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 1.2.5-3
- - rebuilt with python-2.6.4
- * Sun Dec 20 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.5-2
- - added --enable-wireshark instead of --enable-gtk2
- - added BR: bison, flex
- * Sat Dec 19 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.2.5-1
- - new upstream release with security fixes (SNA/SMB/IPMI issues)
- * Fri Oct 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.3-1
- - new upstream release
- (includeing security fix for CVE-2009-3549,3550 and 3551)
- * Wed Sep 23 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.2.2-2
- - add BR: lua-devel (Vine 5.0 and later)
- * Sat Sep 19 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.2-1
- - new upstream release
- * Tue Jul 21 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.1-1
- - new upstream release
- * Mon Jul 20 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-1
- - new upstream release
- * Sat May 23 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.8-1
- - new upstream release
- * Fri Apr 10 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.7-1
- - new upstream release
- * Sun Feb 9 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.6-1
- - new upstream release
- - used more macros
- * Sat Jan 24 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.5-1
- - new upstream release
- * Sun Nov 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.4-2vl5
- - rebuilt
- * Mon Oct 27 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.4-1
- - new upstream release with security fix
- - add BuildRequires krb5-devel
- - SPEC in UTF-8
- * Fri Sep 05 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.3-1
- - new upstream release with security update
- * Wed Apr 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.0-1
- - new upstream release with security update
- - add Vendor/Distribution tag
- - add BuildRequires: libcap-devel
- - new versioning policy
- * Tue Jan 8 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.99.7-0vl2
- - modified Source3 because of desktop-file-install error, like this:
- /var/tmp/wireshark-0.99.7-root/usr/share/applications/wireshark.desktop:
- error: value "wireshark.png" for key "Icon" in group "Desktop Entry" is
- an icon name with an extension, but there should be no extension as
- described in the Icon Theme Specification if the value is not an
- absolute path
- this warning/error occurs with desktop-file-utils >= 0.14
- * Wed Jan 2 2008 Satoshi MACHINO <machino@vinelinux.org> 0.99.7-0vl1
- - new upstream release
- - imported patch4 from fc9
- * Sun Sep 2 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.6-0vl2
- - rebuilt with libpcap-0.9.7
- - added --disable-warning-as-errors to %%configure for glib-2.14.0
- * Sat Jul 7 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.6-0vl1
- - new upstream release
- - rebuilt with libpcap-0.9.6
- - added --with-pcap, --with-pcre
- * Fri Jun 1 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.5-0vl2
- - rebuilt with new toolchain and environment
- * Thu Feb 8 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.5-0vl1
- - new upstream release
- * Mon Nov 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.4-0vl1
- - new upstream release
- * Wed Oct 4 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.3-0vl1
- - initial built for Vine Linux based on Fedora
- - Obsoletes: ethereal, Provides: ethereal
- * Fri Aug 25 2006 Radek Vokal <rvokal@redhat.com> 0.99.3-fc5.1
- - upgrade to 0.99.3-1
- - CVE-2006-4330 Wireshark security issues (CVE-2006-4333 CVE-2006-4332 CVE-2006-4331)
- * Wed Jul 26 2006 Radek Vokal <rvokal@redhat.com> 0.99.2-fc5.2
- - fix BuildRequires
- * Tue Jul 25 2006 Radek Vokal <rvokal@redhat.com> 0.99.2-fc5.1
- - build for FC5
- * Tue Jul 18 2006 Radek Vok叩l <rvokal@redhat.com> 0.99.2-1
- - upgrade to 0.99.2
- * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.99.2-0.pre1.1
- - rebuild
- * Tue Jul 11 2006 Radek Vok叩l <rvokal@redhat.com> 0.99.2-0.pre1
- - upgrade to 0.99.2pre1, fixes (#198242)
- * Tue Jun 13 2006 Radek Vokal <rvokal@redhat.com> 0.99.1-0.pre1
- - spec file changes
- * Fri Jun 9 2006 Radek Vokal <rvokal@redhat.com> 0.99.1pre1-1
- - initial build for Fedora Core
|