RPM packaging: maxminddb is optional.

Don't require the RPM to include maxminddb if we couldn't find it.  Treat it
like the other optional packages: enable it in the RPM iff we found it.

IOW if cmake ran and will build Wireshark [without maxminddb] you'll also be
able to build an RPM [without maxminddb].

Change-Id: I012b75ae44e9289275b68db2eb804fc45bb0d330
Reviewed-on: https://code.wireshark.org/review/29807
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
This commit is contained in:
Jeff Morriss 2018-09-24 11:42:48 -04:00
parent 3b34b286ab
commit 4b4c11944c
1 changed files with 1 additions and 1 deletions

View File

@ -2663,7 +2663,7 @@ if(RPMBUILD_EXECUTABLE)
if (BUILD_wireshark)
list(APPEND _rpmbuild_with_args --with qt5)
endif()
if (BUILD_mmdbresolve)
if (MAXMINDDB_FOUND)
list(APPEND _rpmbuild_with_args --with mmdbresolve)
endif()
if (LUA_FOUND)