Radek Vokál 0fc81e
%define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
Radek Vokál 54b7d1
#define to 0 for final version
Radek Vokál 46dfdb
%define svn_version 0
Radek Vokál 0fc81e
Radek Vokál 0fc81e
Summary: 	Network traffic analyzer
Radek Vokál 0fc81e
Name: 		wireshark
Radek Vokál 18cc0f
Version:	0.99.6
Radek Vokál 9f7911
Release: 	2%{?dist}
Radek Vokál 9f7911
License: 	GPL+
Radek Vokál 0fc81e
Group: 		Applications/Internet
Radek Vokál 54b7d1
%if %{svn_version}
Radek Vokál 54b7d1
Source0:	http://www.wireshark.org/download/prerelease/%{name}-%{version}-SVN-%{svn_version}.tar.gz
Radek Vokál 54b7d1
%else
Radek Vokál 7755bf
Source0:	http://www.wireshark.org/download/prerelease/%{name}-%{version}.tar.gz
Radek Vokál 54b7d1
%endif
Radek Vokál 0fc81e
Source1:	wireshark.pam
Radek Vokál 0fc81e
Source2:	wireshark.console
Radek Vokál 0fc81e
Source3:	wireshark.desktop
Radek Vokál e08989
Patch1:		wireshark-0.99.5-pie.patch
Radek Vokál 0fc81e
Patch3:		wireshark-nfsv4-opts.patch
Radek Vokál 0fc81e
Url: 		http://www.wireshark.org/
Radek Vokál 0fc81e
BuildRoot: 	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Radek Vokál 5742d5
BuildRequires:	libpcap-devel >= 0.9
Radek Vokál 5742d5
BuildRequires: 	net-snmp-devel >= 5.4
Radek Vokál 5742d5
BuildRequires: 	net-snmp-utils >= 5.4
Radek Vokál 0fc81e
BuildRequires: 	zlib-devel, bzip2-devel
Radek Vokál 0fc81e
BuildRequires:  openssl-devel
Radek Vokál 0fc81e
BuildRequires:	glib2-devel, gtk2-devel
Radek Vokál 0fc81e
BuildRequires:  elfutils-devel, krb5-devel
Radek Vokál 0fc81e
BuildRequires:  python, pcre-devel, libselinux
Radek Vokál 0fc81e
BuildRequires:  gnutls-devel
Radek Vokál 0fc81e
BuildRequires:  desktop-file-utils, automake, libtool
Radek Vokál 7ae600
BuildRequires:	htmlview, adns-devel
Radek Vokál 0fc81e
Obsoletes:	ethereal
Radek Vokál 0fc81e
Provides:	ethereal
Radek Vokál 0fc81e
Radek Vokál 0fc81e
Radek Vokál 0fc81e
%package	gnome
Radek Vokál 0fc81e
Summary:	Gnome desktop integration for wireshark and wireshark-usermode
Radek Vokál 0fc81e
Group:		Applications/Internet
Radek Vokál 0fc81e
Requires: 	gtk2
Radek Vokál 0fc81e
Requires:	usermode >= 1.37
Radek Vokál 0fc81e
Requires:	wireshark = %{version}-%{release}
Radek Vokál 5742d5
Requires:	net-snmp >= 5.4, net-snmp-libs >= 5.4
Radek Vokál 7ae600
Requires:	htmlview, adns
Radek Vokál 0fc81e
Obsoletes:	ethereal-gnome
Radek Vokál 0fc81e
Provides:	ethereal-gnome
Radek Vokál 0fc81e
Radek Vokál 0fc81e
Radek Vokál 0fc81e
%description
Radek Vokál 0fc81e
Wireshark is a network traffic analyzer for Unix-ish operating systems.
Radek Vokál 0fc81e
Radek Vokál 0fc81e
This package lays base for libpcap, a packet capture and filtering 
Radek Vokál 0fc81e
library, contains command-line utilities, contains plugins and 
Radek Vokál 0fc81e
documentation for wireshark. A graphical user interface is packaged 
Radek Vokál 0fc81e
separately to GTK+ package.
Radek Vokál 0fc81e
Radek Vokál 0fc81e
%description gnome
Radek Vokál 0fc81e
Contains wireshark for Gnome 2 and desktop integration file
Radek Vokál 0fc81e
Radek Vokál 0fc81e
Radek Vokál 0fc81e
%prep
Radek Vokál 54b7d1
%if %{svn_version}
Radek Vokál 54b7d1
%setup -q -n %{name}-%{version}-SVN-%{svn_version}
Radek Vokál 54b7d1
%else
Radek Vokál 7755bf
%setup -q -n %{name}-%{version}
Radek Vokál 54b7d1
%endif
Radek Vokál 0fc81e
%patch1 -p1 -b .pie
Radek Vokál 0fc81e
%patch3 -p1 
Radek Vokál 0fc81e
Radek Vokál 0fc81e
%build
Radek Vokál 0fc81e
%ifarch s390 s390x
Radek Vokál 0fc81e
export PIECFLAGS="-fPIE"
Radek Vokál 0fc81e
%else
Radek Vokál 0fc81e
export PIECFLAGS="-fpie"
Radek Vokál 0fc81e
%endif
Radek Vokál 0fc81e
# FC5+ automatic -fstack-protector-all switch
Radek Vokál 0fc81e
export RPM_OPT_FLAGS=${RPM_OPT_FLAGS//-fstack-protector/-fstack-protector-all}
Radek Vokál 0fc81e
export CFLAGS="$RPM_OPT_FLAGS $CPPFLAGS"
Radek Vokál 0fc81e
export CXXFLAGS="$RPM_OPT_FLAGS $CPPFLAGS"
Radek Vokál 0fc81e
export LDFLAGS="$LDFLAGS -lm -lcrypto"
Radek Vokál 0fc81e
./autogen.sh
Radek Vokál 0fc81e
%configure \
Radek Vokál 0fc81e
   --bindir=%{_sbindir} \
Radek Vokál 0fc81e
   --enable-zlib \
Radek Vokál 0fc81e
   --enable-ipv6 \
Radek Vokál 0fc81e
   --with-net-snmp \
Radek Vokál 0fc81e
   --with-gnu-ld \
Radek Vokál 0fc81e
   --disable-static \
Radek Vokál 0fc81e
   --disable-usr-local \
Radek Vokál 0fc81e
   --enable-gtk2 \
Radek Vokál 0fc81e
   --with-pic \
Radek Vokál 7ae600
   --with-adns \
Radek Vokál 0fc81e
   --with-ssl \
Radek Vokál 18cc0f
   --disable-warnings-as-errors \
Radek Vokál 0fc81e
   --with-plugindir=%{_libdir}/%{name}/plugins/%{version}
Radek Vokál 0fc81e
time make %{?_smp_mflags}
Radek Vokál 0fc81e
Radek Vokál 0fc81e
%install
Radek Vokál 0fc81e
rm -rf $RPM_BUILD_ROOT
Radek Vokál 0fc81e
Radek Vokál 0fc81e
# The evil plugins hack
Radek Vokál 0fc81e
perl -pi -e 's|-L../../epan|-L../../epan/.libs|' plugins/*/*.la
Radek Vokál 0fc81e
Radek Vokál 0fc81e
make DESTDIR=$RPM_BUILD_ROOT install
Radek Vokál 0fc81e
Radek Vokál 0fc81e
#symlink tshark to tethereal
Radek Vokál 0fc81e
ln -s tshark $RPM_BUILD_ROOT%{_sbindir}/tethereal
Radek Vokál 0fc81e
Radek Vokál 0fc81e
#empty?!
Radek Vokál 0fc81e
rm -f $RPM_BUILD_ROOT%{_sbindir}/idl2wrs
Radek Vokál 0fc81e
Radek Vokál 0fc81e
# install support files for usermode, gnome and kde
Radek Vokál 0fc81e
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d
Radek Vokál 0fc81e
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/wireshark
Radek Vokál 0fc81e
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/security/console.apps
Radek Vokál 0fc81e
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/security/console.apps/wireshark
Radek Vokál 0fc81e
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
Radek Vokál 0fc81e
ln -s consolehelper $RPM_BUILD_ROOT/%{_bindir}/wireshark
Radek Vokál 0fc81e
Radek Vokál 0fc81e
# install man
Radek Vokál 0fc81e
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
Radek Vokál 0fc81e
install -m 644 *.1 $RPM_BUILD_ROOT/%{_mandir}/man1
Radek Vokál 0fc81e
Radek Vokál 0fc81e
# Install python stuff.
Radek Vokál 0fc81e
mkdir -p $RPM_BUILD_ROOT%{python_sitelib}
Radek Vokál 0fc81e
install -m 644 tools/wireshark_be.py tools/wireshark_gen.py  $RPM_BUILD_ROOT%{python_sitelib}
Radek Vokál 0fc81e
Radek Vokál 0fc81e
desktop-file-install --vendor fedora                            \
Radek Vokál 0fc81e
        --dir ${RPM_BUILD_ROOT}%{_datadir}/applications         \
Radek Vokál 0fc81e
        --add-category X-Fedora                                 \
Radek Vokál 0fc81e
        %{SOURCE3}
Radek Vokál 0fc81e
Radek Vokál 0fc81e
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pixmaps
Radek Vokál 0fc81e
install -m 644 image/wsicon48.png $RPM_BUILD_ROOT/%{_datadir}/pixmaps/wireshark.png
Radek Vokál 0fc81e
Radek Vokál 0fc81e
Radek Vokál 0fc81e
# Remove .la files
Radek Vokál 0fc81e
rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}/plugins/%{version}/*.la
Radek Vokál 0fc81e
Radek Vokál 0fc81e
# Remove .la files in libdir
Radek Vokál 0fc81e
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
Radek Vokál 0fc81e
Radek Vokál 0fc81e
%clean
Radek Vokál 0fc81e
rm -rf $RPM_BUILD_ROOT
Radek Vokál 0fc81e
Radek Vokál 0fc81e
%post -p /sbin/ldconfig
Radek Vokál 0fc81e
Radek Vokál 0fc81e
%postun -p /sbin/ldconfig
Radek Vokál 0fc81e
Radek Vokál 0fc81e
%files
Radek Vokál 0fc81e
%defattr(-,root,root)
Radek Vokál 0fc81e
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README* 
Radek Vokál 0fc81e
%{_sbindir}/editcap
Radek Vokál 0fc81e
#%{_sbindir}/idl2wrs
Radek Vokál 0fc81e
%{_sbindir}/tshark
Radek Vokál 0fc81e
%{_sbindir}/mergecap
Radek Vokál 0fc81e
%{_sbindir}/text2pcap
Radek Vokál 0fc81e
%{_sbindir}/dftest
Radek Vokál 0fc81e
%{_sbindir}/capinfos
Radek Vokál 0fc81e
%{_sbindir}/randpkt
Radek Vokál 0fc81e
%{_sbindir}/dumpcap
Radek Vokál 0fc81e
%{_sbindir}/tethereal
Radek Vokál 0fc81e
%{python_sitelib}/*
Radek Vokál 0fc81e
%{_libdir}/lib*
Radek Vokál 0fc81e
%{_mandir}/man1/editcap.*
Radek Vokál 0fc81e
%{_mandir}/man1/tshark.*
Radek Vokál 0fc81e
%{_mandir}/man1/idl2wrs.*
Radek Vokál 0fc81e
%{_mandir}/man1/mergecap.*
Radek Vokál 0fc81e
%{_mandir}/man1/text2pcap.*
Radek Vokál 0fc81e
%{_mandir}/man1/capinfos.*
Radek Vokál 0fc81e
%{_mandir}/man1/dumpcap.*
Radek Vokál 0fc81e
%{_mandir}/man4/wireshark-filter.*
Radek Vokál 0fc81e
%{_libdir}/wireshark
Radek Vokál 0fc81e
%config(noreplace) %{_sysconfdir}/pam.d/wireshark
Radek Vokál 0fc81e
%config(noreplace) %{_sysconfdir}/security/console.apps/wireshark
Radek Vokál 0fc81e
%{_datadir}/wireshark
Radek Vokál 0fc81e
Radek Vokál 0fc81e
%files gnome
Radek Vokál 0fc81e
%defattr(-,root,root)
Radek Vokál 0fc81e
%{_datadir}/applications/fedora-wireshark.desktop
Radek Vokál 0fc81e
%{_datadir}/pixmaps/wireshark.png
Radek Vokál 0fc81e
%{_bindir}/wireshark
Radek Vokál 0fc81e
%{_sbindir}/wireshark
Radek Vokál 0fc81e
%{_mandir}/man1/wireshark.*
Radek Vokál 0fc81e
Radek Vokál 0fc81e
Radek Vokál 0fc81e
%changelog
Radek Vokál 9f7911
* Thu Aug 23 2007 Radek Vokál <rvokal@redhat.com> 0.99.6-2
Radek Vokál 9f7911
- rebuilt
Radek Vokál 9f7911
Radek Vokál 46dfdb
* Mon Jul  9 2007 Radek Vokal <rvokal@redhat.com> 0.99.6-1
Radek Vokál 46dfdb
- upgrade to 0.99.6 final
Radek Vokál 46dfdb
Radek Vokál 7ae600
* Fri Jun 15 2007 Radek Vokál <rvokal@redhat.com> 0.99.6-0.pre2
Radek Vokál 7ae600
- another pre-release
Radek Vokál 7ae600
- turn on ADNS support
Radek Vokál 7ae600
Radek Vokál 18cc0f
* Wed May 23 2007 Radek Vokál <rvokal@redhat.com> 0.99.6-0.pre1
Radek Vokál 18cc0f
- update to pre1 of 0.99.6 release
Radek Vokál 18cc0f
Radek Vokál 646e1c
* Mon Feb  5 2007 Radek Vokál <rvokal@redhat.com> 0.99.5-1
Radek Vokál 646e1c
- multiple security issues fixed (#227140)
Radek Vokál 646e1c
- CVE-2007-0459 - The TCP dissector could hang or crash while reassembling HTTP packets
Radek Vokál 646e1c
- CVE-2007-0459 - The HTTP dissector could crash.
Radek Vokál 646e1c
- CVE-2007-0457 - On some systems, the IEEE 802.11 dissector could crash.
Radek Vokál 646e1c
- CVE-2007-0456 - On some systems, the LLT dissector could crash.
Radek Vokál 646e1c
Radek Vokál e08989
* Mon Jan 15 2007 Radek Vokal <rvokal@redhat.com> 0.99.5-0.pre2
Radek Vokál e08989
- another 0.99.5 prerelease, fix build bug and pie flags
Radek Vokál e08989
Radek Vokál 54b7d1
* Tue Dec 12 2006 Radek Vokal <rvokal@redhat.com> 0.99.5-0.pre1
Radek Vokál 54b7d1
- update to 0.99.5 prerelease
Radek Vokál 54b7d1
Jeremy Katz 258f8a
* Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 0.99.4-5
Jeremy Katz 258f8a
- rebuild for python 2.5 
Jeremy Katz 258f8a
Radek Vokál 5742d5
* Tue Nov 28 2006 Radek Vokal <rvokal@redhat.com> 0.99.4-4
Radek Vokál 5742d5
- rebuilt for new libpcap and net-snmp
Radek Vokál 5742d5
Radek Vokál 91ba1b
* Thu Nov 23 2006 Radek Vokal <rvokal@redhat.com> 0.99.4-3
Radek Vokál 91ba1b
- add htmlview to Buildrequires to be picked up by configure scripts (#216918)
Radek Vokál 91ba1b
Radek Vokál 7fdec1
* Tue Nov  7 2006 Radek Vokal <rvokal@redhat.com> 0.99.4-2.fc7
Radek Vokál 7fdec1
- Requires: net-snmp for the list of MIB modules 
Radek Vokál 7fdec1
Radek Vokál 7755bf
* Wed Nov  1 2006 Radek Vokál <rvokal@redhat.com> 0.99.4-1
Radek Vokál 7755bf
- upgrade to 0.99.4 final
Radek Vokál 7755bf
Radek Vokál 7a60ed
* Tue Oct 31 2006 Radek Vokál <rvokal@redhat.com> 0.99.4-0.pre2
Radek Vokál 7a60ed
- upgrade to 0.99.4pre2
Radek Vokál 7a60ed
Radek Vokál 7926b6
* Tue Oct 10 2006 Radek Vokal <rvokal@redhat.com> 0.99.4-0.pre1
Radek Vokál 7926b6
- upgrade to 0.99.4-0.pre1
Radek Vokál 7926b6
Radek Vokál 6ec5a0
* Fri Aug 25 2006 Radek Vokál <rvokal@redhat.com> 0.99.3-1
Radek Vokál 6ec5a0
- upgrade to 0.99.3
Radek Vokál 6ec5a0
- Wireshark 0.99.3 fixes the following vulnerabilities:
Radek Vokál 6ec5a0
- the SCSI dissector could crash. Versions affected: CVE-2006-4330
Radek Vokál 6ec5a0
- the IPsec ESP preference parser was susceptible to off-by-one errors. CVE-2006-4331
Radek Vokál 6ec5a0
- a malformed packet could make the Q.2931 dissector use up available memory. CVE-2006-4333 
Radek Vokál 6ec5a0
Radek Vokál 7ba31d
* Tue Jul 18 2006 Radek Vokál <rvokal@redhat.com> 0.99.2-1
Radek Vokál 7ba31d
- upgrade to 0.99.2
Radek Vokál 7ba31d
Jesse Keating c3efff
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.99.2-0.pre1.1
Jesse Keating c3efff
- rebuild
Jesse Keating c3efff
Radek Vokál 02c444
* Tue Jul 11 2006 Radek Vokál <rvokal@redhat.com> 0.99.2-0.pre1
Radek Vokál 02c444
- upgrade to 0.99.2pre1, fixes (#198242)
Radek Vokál 02c444
Radek Vokál 0fc81e
* Tue Jun 13 2006 Radek Vokal <rvokal@redhat.com> 0.99.1-0.pre1
Radek Vokál 0fc81e
- spec file changes
Radek Vokál 0fc81e
Radek Vokál 0fc81e
* Fri Jun  9 2006 Radek Vokal <rvokal@redhat.com> 0.99.1pre1-1
Radek Vokál 0fc81e
- initial build for Fedora Core