Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:aevseev
wireshark
wireshark.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File wireshark.spec of Package wireshark
%define realname wireshark %define realver 4.2.0 %define srcext tar.xz %bcond_without ninja %bcond_without systemd %define qt_req_ver 5.6 # turn off the generation of debuginfo rpm (RH9) ?? %global debug_package %{nil} # Python 3.x support %if 0%{?rhel} == 8 %define python3_pkg platform-python %define python3 %{_libexecdir}/platform-python %else %define python3_pkg python3 %define python3 %{_bindir}/python3 %endif # Common info Name: %{realname} Version: %{realver} Release: %{?extraver:0.}1%{?dist} License: GPL-2.0 and BSD-2-Clause and BSD-3-Clause Group: Productivity/Networking/Diagnostic URL: https://www.wireshark.org/ Summary: Network protocol analyzer # Packages needed to define _unitdir %if %{with systemd} BuildRequires: systemd-devel Requires: systemd %endif # Install-time parameters Requires: libcap-progs Provides: libwireshark11 Provides: libwiretap8 Provides: libwscodecs0 Provides: libwsutil9 # Build-time parameters BuildRequires: xz BuildRequires: pkg-config >= 0.7 BuildRequires: cmake >= 3.5 %if %{with ninja} BuildRequires: ninja %endif BuildRequires: bison flex BuildRequires: gcc-c++ binutils-gold BuildRequires: gettext >= 0.19.2 BuildRequires: perl%{?suse_version:-base} %{python3_pkg}%{?suse_version:-base} BuildRequires: desktop-file-utils BuildRequires: xdg-utils BuildRequires: pkgconfig(glib-2.0) >= 2.38.0 BuildRequires: pkgconfig(gmodule-2.0) BuildRequires: pkgconfig(gthread-2.0) BuildRequires: pkgconfig(libpcre2-posix) ### BuildRequires: pkgconfig(libpcap) BuildRequires: pkgconfig(Qt5Core) >= %{qt_req_ver} BuildRequires: pkgconfig(Qt5Multimedia) >= %{qt_req_ver} BuildRequires: pkgconfig(Qt5PrintSupport) >= %{qt_req_ver} BuildRequires: pkgconfig(Qt5Svg) >= %{qt_req_ver} BuildRequires: pkgconfig(Qt5Widgets) >= %{qt_req_ver} BuildRequires: pkgconfig(Qt5Concurrent) >= %{qt_req_ver} BuildRequires: pkgconfig(libmaxminddb) BuildRequires: pkgconfig(gnutls) >= 3.2.0 BuildRequires: pkgconfig(krb5) BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(liblz4) ### BuildRequires: pkgconfig(libsnappy) BuildRequires: pkgconfig(libzstd) >= 1.0.0 BuildRequires: pkgconfig(libnghttp2) BuildRequires: pkgconfig(libnl-3.0) BuildRequires: pkgconfig(spandsp) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(libcap) libcap%{?suse_version:-progs} BuildRequires: pkgconfig(speexdsp) BuildRequires: libgcrypt-devel >= 1.5.0 libgpg-error-devel BuildRequires: libssh-devel >= 0.6.0 BuildRequires: libpcap-devel BuildRequires: libsmi-devel BuildRequires: libsnappy-devel BuildRequires: sbc-devel BuildRequires: lua-devel <= 5.2.99 %if 0%{?suse_version} BuildRequires: libqt5-linguist-devel >= %{qt_req_ver} BuildRequires: libcares-devel BuildRequires: libbrotli-devel libbrotlidec1 BuildRequires: libxslt-tools BuildRequires: libxml2-tools BuildRequires: update-desktop-files %else BuildRequires: qt5-linguist >= %{qt_req_ver} BuildRequires: c-ares-devel BuildRequires: brotli-devel BuildRequires: libxslt BuildRequires: libxml2 %endif BuildRequires: doxygen BuildRoot: %{_tmppath}/%{name}-root Source: https://1.na.dl.wireshark.org/src/%{realname}-%{realver}%{?extraver}.%{srcext} %description Wireshark is a network traffic analyzer, or "sniffer", for Unix and Unix-like operating systems. It uses Qt, a graphical user interface library, and libpcap, a packet capture and filtering library. The Wireshark distribution also comes with TShark, which is a line-oriented sniffer (similar to Sun's snoop, or tcpdump) that uses the same dissection, capture-file reading and writing, and packet filtering code as Wireshark, and with editcap, which is a program to read capture files and write the packets from that capture file, possibly in a different capture file format, and with some packets possibly removed from the capture. %package ui-qt Group: Productivity/Networking/Diagnostic Summary: Qt GUI for Wireshark - Network protocol analyzer Requires: xdg-utils %description ui-qt Wireshark is a network traffic analyzer, or "sniffer", for Unix and Unix-like operating systems. It uses Qt, a graphical user interface library, and libpcap, a packet capture and filtering library. The Wireshark distribution also comes with TShark, which is a line-oriented sniffer (similar to Sun's snoop, or tcpdump) that uses the same dissection, capture-file reading and writing, and packet filtering code as Wireshark, and with editcap, which is a program to read capture files and write the packets from that capture file, possibly in a different capture file format, and with some packets possibly removed from the capture. This package containg Qt5 GUI for Wireshark. %package devel Group: Development/Languages/C and C++ Summary: Development files for %{name} Requires: %{name} = %{version} %description devel Development files for %{name} # Preparation step (unpackung and patching if necessary) %prep %setup -q -n %{realname}-%{realver}%{?extraver} sed -ri '/libdir.+exec_prefix/ s/".+"/"${CMAKE_INSTALL_LIBDIR}"/' CMakeLists.txt %build # Note, build fails with LTO enabled _CFLAGS='%{optflags}' _LDFLAGS='-Wl,--as-needed -Wl,--strip-all -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro' mkdir build cd build cmake .. \ %if %{with ninja} -G Ninja \ %endif -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_INSTALL_LIBDIR=%{_libdir} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS_RELEASE="$_CFLAGS" \ -DCMAKE_C_FLAGS_RELEASE="$_CFLAGS" \ -DCMAKE_EXE_LINKER_FLAGS_RELEASE="$_LDFLAGS" \ -DCMAKE_MODULE_LINKER_FLAGS_RELEASE="$_LDFLAGS" \ -DCMAKE_SHARED_LINKER_FLAGS_RELEASE="$_LDFLAGS" \ -DCMAKE_VERBOSE_MAKEFILE=YES \ \ -DUSE-qt6=NO \ -DDISABLE_DEBUG=YES \ -DDISABLE_ASSERT=YES \ -DENABLE_LTO=YES \ -DDUMPCAP_INSTALL_OPTION=capabilities \ \ -DCMAKE_INSTALL_DOCDIR=%{_defaultdocdir}/%{realname} %if %{with ninja} ninja -v %{?_smp_mflags} %else %{__make} %{?_smp_mflags} %endif %install %if %{with ninja} DESTDIR=%{buildroot} ninja -v -C build install %else %{__make} -C build install DESTDIR=%{buildroot} %endif # Install headers %{__install} -m644 build/config.h %{buildroot}%{_includedir}/wireshark/ %{__install} -m644 tools/lemon/cppmagic.h %{buildroot}%{_includedir}/wireshark/epan/dfilter/cppmagic.h # Localizations %{__install} -d -m755 %{buildroot}%{_datadir}/%{name}/languages %{__install} -m0644 build/ui/qt/*.qm %{buildroot}%{_datadir}/%{name}/languages/ %find_lang %{name} --with-qt --without-mo # Update/fix desktop files %if "%{expand:%_vendor}" == "suse" %suse_update_desktop_file org.wireshark.Wireshark System Monitor Qt %else desktop-file-validate %{buildroot}%{_datadir}/applications/org.wireshark.Wireshark.desktop %endif %clean [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root) %license COPYING %doc AUTHORS NEWS README.md README.DECT README.%{_os} %{_bindir}/* %caps(cap_net_admin,cap_net_raw+eip) %attr(0750, root, root) %{_bindir}/dumpcap %{_libdir}/*.so.* %dir %{_libdir}/wireshark/extcap %dir %{_libdir}/wireshark/plugins %dir %{_libdir}/wireshark %{_libdir}/wireshark/extcap/* %{_libdir}/wireshark/plugins/* %dir %{_datadir}/%{name}/ %{_datadir}/%{name}/* %{_datadir}/applications/org.wireshark.Wireshark.desktop %{_datadir}/icons/hicolor/*/apps/org.wireshark.Wireshark.png %{_datadir}/icons/hicolor/*/mimetypes/org.wireshark.Wireshark-mimetype.png %{_datadir}/icons/hicolor/scalable/apps/org.wireshark.Wireshark.svg %{_datadir}/metainfo/org.wireshark.Wireshark.metainfo.xml %{_datadir}/mime/packages/org.wireshark.Wireshark.xml # Development stuff %files devel %defattr(-,root,root) %doc doc/README* %dir %{_includedir}/wireshark/ %{_includedir}/wireshark/* %{_libdir}/pkgconfig/%{name}.pc %{_libdir}/*.so %{_libdir}/%{name}/cmake/*.cmake %post /sbin/ldconfig update-desktop-database %{_datadir}/applications &> /dev/null || : update-mime-database %{_datadir}/mime &> /dev/null || : touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun /sbin/ldconfig update-desktop-database %{_datadir}/applications &> /dev/null ||: update-mime-database %{_datadir}/mime &> /dev/null || : %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor