]> git.pld-linux.org Git - packages/wireshark.git/blobdiff - wireshark.spec
- rel. 1
[packages/wireshark.git] / wireshark.spec
index b1948269408929173b179b62c35008ade52c7a07..a20568a7ec1c8d8b0db64e78a157b0215022505e 100644 (file)
@@ -1,7 +1,10 @@
+# TODO: unpackaged files:
+#   /usr/bin/rawshark
+#   /usr/share/man/man1/rawshark.1.gz
 #
 # Conditional build:
 %bcond_with    gtk1            # build gtk+1 (not gtk+2) based wireshark binary
-%bcond_without krb5            # build without kerberos5 support (via heimdal)
+%bcond_without kerberos5       # build without Kerberos V support
 %bcond_without snmp            # build without snmp support
 #
 Summary:       Network traffic and protocol analyzer
@@ -11,31 +14,35 @@ Summary(pt_BR.UTF-8):       Analisador de tráfego de rede
 Summary(ru.UTF-8):     Анализатор сетевого траффика
 Summary(uk.UTF-8):     Аналізатор мережевого трафіку
 Name:          wireshark
-Version:       0.99.5
+Version:       1.0.0
 Release:       1
 License:       GPL
 Group:         Networking
 Source0:       http://www.wireshark.org/download/src/%{name}-%{version}.tar.bz2
-# Source0-md5: ff067e0f2a0e0e53362bc6a943ff8622
+# Source0-md5: 90e58c595f082da3ad9390d714f16116
 Source1:       %{name}.desktop
 Source2:       %{name}.su-start-script
-URL:           http://www.wireshark.org/
 Patch0:                %{name}-0.99.5-hip-base05.patch
+Patch1:                %{name}-as_needed.patch
+Patch2:                %{name}-Werror.patch
+URL:           http://www.wireshark.org/
 BuildRequires: adns-devel
-BuildRequires: autoconf
+BuildRequires: autoconf >= 2.52
 BuildRequires: automake
 BuildRequires: elfutils-devel
 BuildRequires: flex
-BuildRequires: gnutls-devel >= 2.0.0
+BuildRequires: gnutls-devel >= 1.0.0
 %if %{with gtk1}
 BuildRequires: gtk+-devel >= 1.2
 %else
 BuildRequires: gtk+2-devel >= 1:2.0.0
 %endif
-%{?with_krb5:BuildRequires:    heimdal-devel >= 0.7}
+%{?with_kerberos5:BuildRequires:       krb5-devel}
+BuildRequires: libcap-devel
 BuildRequires: libgcrypt-devel >= 1.1.42
 BuildRequires: libpcap-devel >= 0.4
 BuildRequires: libtool
+BuildRequires: libxslt-progs
 BuildRequires: lua51-devel
 %{?with_snmp:BuildRequires:    net-snmp-devel}
 BuildRequires: pcre-devel
@@ -46,6 +53,7 @@ BuildRequires:        zlib-devel
 Requires:      %{name}-common = %{version}-%{release}
 Requires:      %{name}-tools = %{version}-%{release}
 Requires:      libpcap >= 0.4
+Suggests:      xterm
 Provides:      ethereal
 Provides:      ethereal-gnome
 Obsoletes:     ethereal
@@ -215,25 +223,22 @@ pakietów.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
 perl -pi -e 's/lua5\.1/lua51/g' acinclude.m4
+find -name Makefile.am | xargs perl -pi -e 's/-Werror//g'
 
 %build
 %{__libtoolize}
 %{__aclocal} -I aclocal-fallback
 %{__autoconf}
 %{__automake}
-cd wiretap
-%{__aclocal} -I ../aclocal-fallback
-%{__autoconf}
-# don't use --force here
-%{__automake}
-cd ..
 %configure \
        --enable-randpkt \
        --enable-dftest \
        --enable-threads \
        %{!?with_gtk1:--enable-gtk2} \
-%if %{with krb5}
+%if %{with kerberos5}
        --with-krb5 \
        --with-ssl \
 %endif
@@ -289,6 +294,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog FAQ NEWS README{,.[lv]*} doc/{randpkt.txt,README.*}
 %attr(755,root,root) %{_libdir}/libwireshark.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libwireshark.so.0
 %{_mandir}/man4/wireshark-filter.4*
 
 %files tools
@@ -315,8 +321,9 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -n libwiretap
 %defattr(644,root,root,755)
-%doc wiretap/{README*,AUTHORS,NEWS,ChangeLog}
+%doc wiretap/{README*,AUTHORS}
 %attr(755,root,root) %{_libdir}/libwiretap.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libwiretap.so.0
 
 %files -n libwiretap-devel
 %defattr(644,root,root,755)
This page took 0.03815 seconds and 4 git commands to generate.