[packages/mmdbctl] Initial
arekm
arekm at pld-linux.org
Fri Aug 28 09:19:59 CEST 2026
commit 231fd1accbea1fa9b33bdd79777a20b842f655d9
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Aug 28 09:19:40 2026 +0200
Initial
mmdbctl.spec | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 66 insertions(+)
---
diff --git a/mmdbctl.spec b/mmdbctl.spec
new file mode 100644
index 0000000..2bfd158
--- /dev/null
+++ b/mmdbctl.spec
@@ -0,0 +1,66 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
+Summary: Command line tool for working with MaxMind DB (mmdb) files
+Summary(pl.UTF-8): Narzędzie wiersza poleceń do pracy z plikami MaxMind DB (mmdb)
+Name: mmdbctl
+Version: 1.4.10
+Release: 1
+License: Apache v2.0
+Group: Applications/Networking
+#Source0Download: https://github.com/ipinfo/mmdbctl/releases
+Source0: https://github.com/ipinfo/mmdbctl/archive/refs/tags/%{name}-%{version}/mmdbctl-%{version}.tar.gz
+# Source0-md5: f7fe5d21ca25ce510a3fa3197170b5ab
+# cd %{name}-%{name}-%{version}
+# go mod vendor
+# tar cJf ../%{name}-vendor-%{version}.tar.xz vendor
+Source1: %{name}-vendor-%{version}.tar.xz
+# Source1-md5: a5ae2906955b181d4be625702b32da1d
+URL: https://github.com/ipinfo/mmdbctl
+BuildRequires: golang >= 1.24
+BuildRequires: rpmbuild(macros) >= 2.009
+ExclusiveArch: %go_arches
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%undefine _debugsource_packages
+
+%description
+mmdbctl is a command line tool for working with MaxMind DB (.mmdb)
+files, such as the GeoIP2 and GeoLite2 databases from MaxMind or the
+DB-IP Lite databases. Besides looking up addresses, networks and
+ranges, it converts between the MMDB format and CSV, TSV or JSON in
+both directions, compares two databases and validates a file.
+
+%description -l pl.UTF-8
+mmdbctl to narzędzie wiersza poleceń do pracy z plikami MaxMind DB
+(.mmdb), takimi jak bazy GeoIP2 i GeoLite2 firmy MaxMind czy bazy
+DB-IP Lite. Oprócz wyszukiwania adresów, sieci i zakresów potrafi
+konwertować format MMDB na CSV, TSV lub JSON i z powrotem, porównywać
+dwie bazy oraz sprawdzać poprawność pliku.
+
+%prep
+%setup -q -n %{name}-%{name}-%{version} -a1
+
+%{__mkdir_p} .go-cache
+
+%build
+%__go build -v -mod=vendor -o bin/%{name} .
+
+%if %{with tests}
+%__go test -mod=vendor ./...
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+
+cp -p bin/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md LICENSE README.md
+%attr(755,root,root) %{_bindir}/%{name}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mmdbctl.git/commitdiff/231fd1accbea1fa9b33bdd79777a20b842f655d9
More information about the pld-cvs-commit
mailing list