Version 2.2.2, Use %%license, spec cleanups, Put udev rules in right location (rhbz #1365581)

This commit is contained in:
Peter Robinson 2016-11-18 18:11:01 +00:00
parent 7658e2c5e3
commit 1f2c600f6e
4 changed files with 97 additions and 90 deletions

1
.gitignore vendored
View File

@ -49,3 +49,4 @@ wireshark-1.2.10.tar.bz2
/wireshark-2.0.3.tar.bz2 /wireshark-2.0.3.tar.bz2
/wireshark-2.1.0.tar.bz2 /wireshark-2.1.0.tar.bz2
/wireshark-2.1.1.tar.bz2 /wireshark-2.1.1.tar.bz2
/wireshark-2.2.2.tar.bz2

View File

@ -1 +1 @@
f67839cb60121ba80f60600b2bfd3c88 wireshark-2.1.1.tar.bz2 88bb55bcbc5249fee10bcea332a4fece wireshark-2.2.2.tar.bz2

View File

@ -145,12 +145,12 @@ diff --git a/wsutil/Makefile.am b/wsutil/Makefile.am
index 95c57d2..acd7837 100644 index 95c57d2..acd7837 100644
--- a/wsutil/Makefile.am --- a/wsutil/Makefile.am
+++ b/wsutil/Makefile.am +++ b/wsutil/Makefile.am
@@ -89,7 +89,8 @@ libwsutil_nonrepl_INCLUDES = \ @@ -90,7 +90,8 @@
utf8_entities.h \
ws_cpuid.h \ ws_cpuid.h \
ws_mempbrk.h \ ws_mempbrk.h \
- ws_mempbrk_int.h ws_mempbrk_int.h \
+ ws_mempbrk_int.h \ - ws_printf.h
+ ws_printf.h \
+ wstmpdir.h + wstmpdir.h
# Header files for functions in libwsutil's ABI on this platform. # Header files for functions in libwsutil's ABI on this platform.

View File

@ -6,13 +6,15 @@
Summary: Network traffic analyzer Summary: Network traffic analyzer
Name: wireshark Name: wireshark
Version: 2.1.1 Version: 2.2.2
Release: 3%{?dist} Release: 1%{?dist}
License: GPL+ License: GPL+
Group: Applications/Internet Group: Applications/Internet
Url: http://www.wireshark.org/ Url: http://www.wireshark.org/
Source0: http://wireshark.org/download/src/%{name}-%{version}.tar.bz2 Source0: http://wireshark.org/download/src/%{name}-%{version}.tar.bz2
Source1: 90-wireshark-usbmon.rules Source1: 90-wireshark-usbmon.rules
Requires: %{name}-cli = %{version}-%{release} Requires: %{name}-cli = %{version}-%{release}
# Fedora-specific # Fedora-specific
Patch1: wireshark-0001-enable-Lua-support.patch Patch1: wireshark-0001-enable-Lua-support.patch
@ -33,49 +35,68 @@ Patch9: wireshark-0009-Fix-paths-in-a-wireshark.desktop-file.patch
# Fedora-specific, see https://bugzilla.redhat.com/1274831 # Fedora-specific, see https://bugzilla.redhat.com/1274831
Patch10: wireshark-0010-Patch-fixing-the-wireshark-autoconf-macros.patch Patch10: wireshark-0010-Patch-fixing-the-wireshark-autoconf-macros.patch
BuildRequires: bzip2-devel
BuildRequires: c-ares-devel
BuildRequires: elfutils-devel
BuildRequires: gcc-c++
BuildRequires: glib2-devel
BuildRequires: gnutls-devel
BuildRequires: gtk3-devel
BuildRequires: krb5-devel
BuildRequires: libcap-devel
BuildRequires: libgcrypt-devel
BuildRequires: libnl3-devel
BuildRequires: libpcap-devel >= 0.9
BuildRequires: libselinux-devel
BuildRequires: libsmi-devel
BuildRequires: openssl-devel
BuildRequires: desktop-file-utils
BuildRequires: xdg-utils
BuildRequires: bison
BuildRequires: flex
BuildRequires: pcre-devel
BuildRequires: perl(Pod::Html)
BuildRequires: perl(Pod::Man)
BuildRequires: qt-devel >= 4.7.0
BuildRequires: zlib-devel
%if %{with_GeoIP}
BuildRequires: GeoIP-devel
%endif
%if %{with_lua}
BuildRequires: lua-devel
%endif
BuildRequires: libtool, automake, autoconf
%description
Metapackage with installs %{name}-cli and %{name}-qt.
%package cli %package cli
Summary: Network traffic analyzer Summary: Network traffic analyzer
Group: Applications/Internet Group: Applications/Internet
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
BuildRequires: libpcap-devel >= 0.9
BuildRequires: libsmi-devel
BuildRequires: zlib-devel, bzip2-devel
BuildRequires: openssl-devel
BuildRequires: glib2-devel
BuildRequires: elfutils-devel, krb5-devel
BuildRequires: pcre-devel, libselinux
BuildRequires: gnutls-devel
BuildRequires: desktop-file-utils
BuildRequires: xdg-utils
BuildRequires: flex, bison
BuildRequires: libcap-devel
BuildRequires: libnl3-devel
%if 0%{?fedora} > 18
BuildRequires: perl(Pod::Html)
BuildRequires: perl(Pod::Man)
%endif
BuildRequires: libgcrypt-devel
%if %{with_GeoIP}
BuildRequires: GeoIP-devel
%endif
BuildRequires: c-ares-devel
%if %{with_lua}
BuildRequires: lua-devel
%endif
BuildRequires: libtool, automake, autoconf
Requires(pre): shadow-utils Requires(pre): shadow-utils
Requires(post): systemd-udev Requires(post): systemd-udev
%description cli
Wireshark allows you to examine protocol data stored in files or as it is
captured from wired or wireless (WiFi or Bluetooth) networks, USB devices,
and many other sources. It supports dozens of protocol capture file formats
and understands more than a thousand protocols.
It has many powerful features including a rich display filter language
and the ability to reassemble multiple protocol packets in order to, for
example, view a complete TCP stream, save the contents of a file which was
transferred over HTTP or CIFS, or play back an RTP audio stream.
This package contains command-line utilities, plugins, and documentation for
Wireshark.
%package qt %package qt
Summary: Wireshark's Qt-based GUI Summary: Wireshark's Qt-based GUI
Group: Applications/Internet Group: Applications/Internet
Requires: %{name}-cli = %{version}-%{release} Requires: %{name}-cli = %{version}-%{release}
Requires: xdg-utils Requires: xdg-utils
Requires: hicolor-icon-theme Requires: hicolor-icon-theme
Requires: qt >= 4.7.0
BuildRequires: qt-devel >= 4.7.0
%if %{with_portaudio} %if %{with_portaudio}
Requires: portaudio Requires: portaudio
BuildRequires: portaudio-devel BuildRequires: portaudio-devel
@ -85,18 +106,19 @@ Requires: GeoIP
%endif %endif
Requires(post): /usr/sbin/update-alternatives Requires(post): /usr/sbin/update-alternatives
Requires(postun): /usr/sbin/update-alternatives Requires(postun): /usr/sbin/update-alternatives
BuildRequires: gcc-c++
%description qt
This package contains the Qt Wireshark GUI and desktop integration files.
%package gtk %package gtk
Summary: Wireshark's GTK+-based GUI Summary: Wireshark's GTK+-based GUI
Group: Applications/Internet Group: Applications/Internet
Requires: %{name}-cli = %{version}-%{release} Requires: %{name}-cli = %{version}-%{release}
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
# This package used to be called wireshark-gnome. # This package used to be called wireshark-gnome.
Provides: wireshark-gnome = %{version}-%{release} Provides: wireshark-gnome = %{version}-%{release}
Obsoletes: wireshark-gnome < 2.0.0 Obsoletes: wireshark-gnome < 2.0.0
Requires: gtk3 >= 3.0.0
BuildRequires: gtk3-devel > 3.0.0
%if %{with_portaudio} %if %{with_portaudio}
Requires: portaudio Requires: portaudio
BuildRequires: portaudio-devel BuildRequires: portaudio-devel
@ -111,35 +133,14 @@ Requires(post): desktop-file-utils
Requires(post): /usr/sbin/update-alternatives Requires(post): /usr/sbin/update-alternatives
Requires(postun): /usr/sbin/update-alternatives Requires(postun): /usr/sbin/update-alternatives
%description gtk
This package contains the GTK+ Wireshark GUI and desktop integration files.
%package devel %package devel
Summary: Development headers and libraries for wireshark Summary: Development headers and libraries for wireshark
Group: Development/Libraries Group: Development/Libraries
Requires: %{name} = %{version}-%{release} glibc-devel glib2-devel Requires: %{name} = %{version}-%{release} glibc-devel glib2-devel
%description
Metapackage with installs %{name}-cli and %{name}-qt.
%description cli
Wireshark allows you to examine protocol data stored in files or as it is
captured from wired or wireless (WiFi or Bluetooth) networks, USB devices,
and many other sources. It supports dozens of protocol capture file formats
and understands more than a thousand protocols.
It has many powerful features including a rich display filter language
and the ability to reassemble multiple protocol packets in order to, for
example, view a complete TCP stream, save the contents of a file which was
transferred over HTTP or CIFS, or play back an RTP audio stream.
This package contains command-line utilities, plugins, and documentation for
Wireshark. A Qt graphical user interface is packaged separately.
%description qt
This package contains the Qt Wireshark GUI and desktop integration files.
%description gtk
This package contains the GTK+ Wireshark GUI and desktop integration files.
%description devel %description devel
The wireshark-devel package contains the header files, developer The wireshark-devel package contains the header files, developer
documentation, and libraries required for development of wireshark scripts documentation, and libraries required for development of wireshark scripts
@ -164,15 +165,16 @@ and plugins.
%build %build
%ifarch s390 s390x sparcv9 sparc64 %ifarch s390 s390x sparcv9 sparc64
export PIECFLAGS="-fPIE" export PIECFLAGS="-fPIE -fPIC"
%else %else
export PIECFLAGS="-fpie" export PIECFLAGS="-fpie -fPIC"
%endif %endif
# FC5+ automatic -fstack-protector-all switch # FC5+ automatic -fstack-protector-all switch
export RPM_OPT_FLAGS=${RPM_OPT_FLAGS//-fstack-protector-strong/-fstack-protector-all} export RPM_OPT_FLAGS=${RPM_OPT_FLAGS//-fstack-protector-strong/-fstack-protector-all}
export CFLAGS="$RPM_OPT_FLAGS $CPPFLAGS $PIECFLAGS -D_LARGEFILE64_SOURCE" export CFLAGS="$RPM_OPT_FLAGS $CPPFLAGS $PIECFLAGS -D_LARGEFILE64_SOURCE"
export CXXFLAGS="$RPM_OPT_FLAGS $CPPFLAGS $PIECFLAGS -D_LARGEFILE64_SOURCE" export CXXFLAGS="$RPM_OPT_FLAGS $CPPFLAGS $PIECFLAGS -D_LARGEFILE64_SOURCE"
export LDFLAGS="$LDFLAGS -pie" export LDFLAGS="$LDFLAGS -pie -fPIC"
autoreconf -ivf autoreconf -ivf
@ -232,20 +234,20 @@ mkdir -p "${IDIR}/epan/dissectors"
mkdir -p "${IDIR}/epan/wmem" mkdir -p "${IDIR}/epan/wmem"
mkdir -p "${IDIR}/wiretap" mkdir -p "${IDIR}/wiretap"
mkdir -p "${IDIR}/wsutil" mkdir -p "${IDIR}/wsutil"
mkdir -p %{buildroot}/%{_sysconfdir}/udev/rules.d mkdir -p %{buildroot}%{_udevrulesdir}
install -m 644 config.h register.h "${IDIR}/" install -m 644 config.h register.h "${IDIR}/"
install -m 644 cfile.h file.h "${IDIR}/" install -m 644 cfile.h file.h "${IDIR}/"
install -m 644 ws_symbol_export.h "${IDIR}/" install -m 644 ws_symbol_export.h "${IDIR}/"
install -m 644 epan/*.h "${IDIR}/epan/" install -m 644 epan/*.h "${IDIR}/epan/"
install -m 644 epan/crypt/*.h "${IDIR}/epan/crypt" install -m 644 epan/crypt/*.h "${IDIR}/epan/crypt"
install -m 644 epan/ftypes/*.h "${IDIR}/epan/ftypes" install -m 644 epan/ftypes/*.h "${IDIR}/epan/ftypes"
install -m 644 epan/dfilter/*.h "${IDIR}/epan/dfilter" install -m 644 epan/dfilter/*.h "${IDIR}/epan/dfilter"
install -m 644 epan/dissectors/*.h "${IDIR}/epan/dissectors" install -m 644 epan/dissectors/*.h "${IDIR}/epan/dissectors"
install -m 644 epan/wmem/*.h "${IDIR}/epan/wmem" install -m 644 epan/wmem/*.h "${IDIR}/epan/wmem"
install -m 644 wiretap/*.h "${IDIR}/wiretap" install -m 644 wiretap/*.h "${IDIR}/wiretap"
install -m 644 wsutil/*.h "${IDIR}/wsutil" install -m 644 wsutil/*.h "${IDIR}/wsutil"
install -m 644 ws_diag_control.h "${IDIR}/" install -m 644 ws_diag_control.h "${IDIR}/"
install -m 644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/udev/rules.d/ install -m 644 %{SOURCE1} %{buildroot}%{_udevrulesdir}
# Change the program name for 'alternatives' # Change the program name for 'alternatives'
mv %{buildroot}%{_sbindir}/wireshark %{buildroot}%{_sbindir}/wireshark-qt mv %{buildroot}%{_sbindir}/wireshark %{buildroot}%{_sbindir}/wireshark-qt
@ -290,11 +292,8 @@ SentUpstream: 2014-09-18
</application> </application>
EOF EOF
# Remove .la files # Remove libtool archives and static libs
rm -f %{buildroot}%{_libdir}/%{name}/plugins/*.la find %{buildroot} -type f -name "*.la" -delete
# Remove .la files in libdir
rm -f %{buildroot}%{_libdir}/*.la
# Remove idl2wrs # Remove idl2wrs
rm -f %{buildroot}%{_sbindir}/idl2wrs rm -f %{buildroot}%{_sbindir}/idl2wrs
@ -370,7 +369,9 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
%files %files
%files cli %files cli
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README* %{!?_licensedir:%global license %%doc}
%license COPYING
%doc AUTHORS INSTALL NEWS README*
%{_sbindir}/editcap %{_sbindir}/editcap
%{_sbindir}/tshark %{_sbindir}/tshark
%{_sbindir}/mergecap %{_sbindir}/mergecap
@ -382,7 +383,7 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
%{_sbindir}/reordercap %{_sbindir}/reordercap
%attr(0750, root, wireshark) %caps(cap_net_raw,cap_net_admin=ep) %{_sbindir}/dumpcap %attr(0750, root, wireshark) %caps(cap_net_raw,cap_net_admin=ep) %{_sbindir}/dumpcap
%{_sbindir}/rawshark %{_sbindir}/rawshark
%{_sysconfdir}/udev/rules.d/90-wireshark-usbmon.rules %{_udevrulesdir}/90-wireshark-usbmon.rules
%{python_sitearch}/*.py* %{python_sitearch}/*.py*
%{_libdir}/lib*.so.* %{_libdir}/lib*.so.*
%dir %{_libdir}/wireshark %dir %{_libdir}/wireshark
@ -429,16 +430,21 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
%ghost %{_sbindir}/wireshark %ghost %{_sbindir}/wireshark
%files devel %files devel
%doc doc/README.* %doc doc/README.* ChangeLog
%if %{with_lua} %if %{with_lua}
%config(noreplace) %{_datadir}/wireshark/init.lua %config(noreplace) %{_datadir}/wireshark/init.lua
%endif %endif
%{_includedir}/wireshark %{_includedir}/wireshark
%{_libdir}/lib*.so %{_libdir}/lib*.so
%{_libdir}/pkgconfig/* %{_libdir}/pkgconfig/*
#%{_datadir}/aclocal/*
%changelog %changelog
* Fri Nov 18 2016 Peter Robinson <pbrobinson@fedoraproject.org> 2.2.2-1
- Version 2.2.2
- See https://www.wireshark.org/docs/relnotes/wireshark-2.2.2.html
- Use %%license, spec cleanups
- Put udev rules in right location (rhbz #1365581)
* Wed Nov 2 2016 Peter Lemenkov <lemenkov@gmail.com> - 2.1.1-3 * Wed Nov 2 2016 Peter Lemenkov <lemenkov@gmail.com> - 2.1.1-3
- No longer uses adns ( https://github.com/wireshark/wireshark/commit/7a1d3f6 ) - No longer uses adns ( https://github.com/wireshark/wireshark/commit/7a1d3f6 )
- Remove --with-ipv6 switch ( https://github.com/wireshark/wireshark/commit/fad1565 ) - Remove --with-ipv6 switch ( https://github.com/wireshark/wireshark/commit/fad1565 )