diff options
author | Dario Lombardo <lomato@gmail.com> | 2018-06-07 17:40:51 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-06-09 05:08:09 +0000 |
commit | b296168874d3024e7d5c86e9a14ae1a1540868f8 (patch) | |
tree | 630698e4838cc44d51dde6364a9e777863e786c2 /packaging/rpm | |
parent | 43a88c230f2861d11a21dab5c6260255cea86a9d (diff) |
rpm: fix compilation on centos (uses cmake3).
Change-Id: Ia0319658a0e8c9d8e13595d6773dcd6438228bda
Reviewed-on: https://code.wireshark.org/review/28112
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'packaging/rpm')
-rw-r--r-- | packaging/rpm/wireshark.spec.in | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/packaging/rpm/wireshark.spec.in b/packaging/rpm/wireshark.spec.in index dd975d7820..8e8a98b2a0 100644 --- a/packaging/rpm/wireshark.spec.in +++ b/packaging/rpm/wireshark.spec.in @@ -52,7 +52,11 @@ Obsoletes: wireshark-devel BuildRoot: /tmp/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: cmake >= 3.5 or cmake3 >= 3.5 +%if 0%{?rhel} +BuildRequires: cmake3 >= 3.5 +%else +BuildRequires: cmake >= 3.5 +%endif BuildRequires: gcc BuildRequires: python BuildRequires: perl @@ -214,7 +218,11 @@ Requires: libmaxminddb # the prefix and everything else too. If you need to change the prefix # set _prefix (note the underscore) either in this file or on rpmbuild's # command-line. +%if 0%{?rhel} +cmake3 \ +%else %cmake \ +%endif %if %{with qt5} -DBUILD_wireshark=ON \ %else |