| |
@@ -33,7 +33,7 @@
|
| |
Requires: xdg-utils
|
| |
Requires: hicolor-icon-theme
|
| |
|
| |
- %if %{with_maxminddb} && 0%{?fedora}
|
| |
+ %if %{with_maxminddb}
|
| |
Requires: libmaxminddb
|
| |
%endif
|
| |
|
| |
@@ -64,10 +64,10 @@
|
| |
BuildRequires: qt5-qtmultimedia-devel
|
| |
BuildRequires: qt5-qtsvg-devel
|
| |
BuildRequires: zlib-devel
|
| |
- %if %{with_maxminddb} && 0%{?fedora}
|
| |
+ %if %{with_maxminddb}
|
| |
BuildRequires: libmaxminddb-devel
|
| |
%endif
|
| |
- %if %{with_lua} && 0%{?fedora}
|
| |
+ %if %{with_lua}
|
| |
BuildRequires: compat-lua-devel
|
| |
%endif
|
| |
Buildrequires: git
|
| |
@@ -115,15 +115,15 @@
|
| |
%autosetup -S git
|
| |
|
| |
%build
|
| |
- %cmake -G "Unix Makefiles" \
|
| |
+ %cmake \
|
| |
-DDISABLE_WERROR=ON \
|
| |
-DBUILD_wireshark=ON \
|
| |
- %if %{with_lua} && 0%{?fedora}
|
| |
+ %if %{with_lua}
|
| |
-DENABLE_LUA=ON \
|
| |
%else
|
| |
-DENABLE_LUA=OFF \
|
| |
%endif
|
| |
- %if %{with_maxminddb} && 0%{?fedora}
|
| |
+ %if %{with_maxminddb}
|
| |
-DBUILD_mmdbresolve=ON \
|
| |
%else
|
| |
-DBUILD_mmdbresolve=OFF \
|
| |
@@ -206,7 +206,7 @@
|
| |
%{_bindir}/sharkd
|
| |
%{_bindir}/text2pcap
|
| |
%{_bindir}/tshark
|
| |
- %if %{with_maxminddb} && 0%{?fedora}
|
| |
+ %if %{with_maxminddb}
|
| |
%{_bindir}/mmdbresolve
|
| |
%endif
|
| |
%attr(0750, root, wireshark) %caps(cap_net_raw,cap_net_admin=ep) %{_bindir}/dumpcap
|
| |
@@ -252,7 +252,7 @@
|
| |
%{_mandir}/man1/dpauxmon.*
|
| |
%{_mandir}/man1/sdjournal.*
|
| |
%{_mandir}/man4/extcap.*
|
| |
- %if %{with_maxminddb} && 0%{?fedora}
|
| |
+ %if %{with_maxminddb}
|
| |
%{_mandir}/man1/mmdbresolve.*
|
| |
%endif
|
| |
%dir %{_datadir}/wireshark
|
| |