public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ipcalc] rawhide: Switch to use dbip-lite geoip databases
@ 2026-11-17 17:49 Nikos Mavrogiannopoulos
  0 siblings, 0 replies; only message in thread
From: Nikos Mavrogiannopoulos @ 2026-11-17 17:49 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/ipcalc
Branch : rawhide
Commit : 1a48c02bdc30f5401e1cdbecf81c3f7cf53c9186
Author : Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
Date   : 2026-11-17T18:43:48+01:00
Stats  : +8/-2 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/ipcalc/c/1a48c02bdc30f5401e1cdbecf81c3f7cf53c9186?branch=rawhide

Log:
Switch to use dbip-lite geoip databases

---
diff --git a/ipcalc.spec b/ipcalc.spec
index 1be8914..0939194 100644
--- a/ipcalc.spec
+++ b/ipcalc.spec
@@ -14,7 +14,7 @@ BuildRequires: gcc, libmaxminddb-devel, meson, rubygem-ronn-ng
 BuildRequires: openpgpverify
 # for the test suite (JsonEscapeHostname)
 BuildRequires: jq
-Recommends:    libmaxminddb, geolite2-city, geolite2-country, geolite2-asn
+Recommends:    libmaxminddb, dbip-lite-city, dbip-lite-country, dbip-lite-asn
 
 # Explicitly conflict with older initscript packages that ship ipcalc
 Conflicts: initscripts < 9.63
@@ -34,7 +34,13 @@ or check the validity of an address.
 %autosetup
 
 %build
-%meson -Duse_maxminddb=enabled -Duse_runtime_linking=enabled
+# Default to the DB-IP Lite databases (dbip-lite-*) instead of GeoLite2.
+# -Dc_args replaces $CFLAGS, so the distro flags are passed explicitly.
+%meson -Duse_maxminddb=enabled -Duse_runtime_linking=enabled \
+  -Dc_args="%{build_cflags} \
+    -DMAXMINDDB_LOCATION_COUNTRY='\"%{_datadir}/GeoIP/dbip-country-lite.mmdb\"' \
+    -DMAXMINDDB_LOCATION_CITY='\"%{_datadir}/GeoIP/dbip-city-lite.mmdb\"' \
+    -DMAXMINDDB_LOCATION_ASN='\"%{_datadir}/GeoIP/dbip-asn-lite.mmdb\"'"
 %meson_build
 
 %install

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-17 17:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-17 17:49 [rpms/ipcalc] rawhide: Switch to use dbip-lite geoip databases Nikos Mavrogiannopoulos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox