public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ipcalc] rawhide: Switch to use dbip-lite geoip databases
Date: Tue, 17 Nov 2026 17:49:36 GMT	[thread overview]
Message-ID: <179493777626.1.11540036944331830939.rpms-ipcalc-1a48c02bdc30@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-11-17 17:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179493777626.1.11540036944331830939.rpms-ipcalc-1a48c02bdc30@fedoraproject.org \
    --to=n.mavrogiannopoulos@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox