Accepting request 882411 from home:rfrohl:branches:network:utilities

role back to old state

OBS-URL: https://build.opensuse.org/request/show/882411
OBS-URL: https://build.opensuse.org/package/show/network:utilities/wireshark?expand=0&rev=340
This commit is contained in:
2021-03-31 16:08:36 +00:00
committed by Git OBS Bridge
parent 6d21b1a7ff
commit 69781bf367
3 changed files with 2 additions and 329 deletions

View File

@@ -36,8 +36,6 @@ URL: https://www.wireshark.org/
Source: https://www.wireshark.org/download/src/%{name}-%{version}.tar.xz
Source2: https://www.wireshark.org/download/SIGNATURES-%{version}.txt#/%{name}-%{version}.tar.xz.asc
Source3: https://www.wireshark.org/download/gerald_at_wireshark_dot_org.gpg#/wireshark.keyring
# Source: https://src.fedoraproject.org/rpms/wireshark/blob/f8e39e79bf25d6c3fb3f333e58f27165cc959781/f/wireshark-0008-move-glib.patch
Patch8: wireshark-0008-move-glib.patch
Patch10: wireshark-0001-dumpcap-permission-denied.patch
BuildRequires: bison
BuildRequires: flex
@@ -173,12 +171,11 @@ This package contains the Qt based UI for Wireshark.
echo "`grep %{name}-%{version}.tar.xz %{SOURCE2} | grep SHA1 | head -n1 | cut -d= -f2` %{SOURCE0}" | sha1sum -c
echo "`grep %{name}-%{version}.tar.xz %{SOURCE2} | grep SHA256 | head -n1 | cut -d= -f2` %{SOURCE0}" | sha256sum -c
%autosetup -p1
%setup -q
sed -i 's/^Icon=wireshark.png$/Icon=wireshark/' wireshark*.desktop
%patch10 -p1
%build
export CFLAGS="%{optflags} -DGLIB_VERSION_MIN_REQUIRED=0x024200"
export CXXFLAGS="%{optflags} -DGLIB_VERSION_MIN_REQUIRED=0x024200"
%cmake -DCMAKE_INSTALL_LIBDIR='%{_lib}/'
%if 0%{?is_opensuse}
%cmake_build