[packages/geoipupdate] Up to 7.1.1
arekm
arekm at pld-linux.org
Mon Jun 22 09:25:28 CEST 2026
commit bbc791721b606a224bedbb4cbd4917c9d2863b55
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Jun 22 09:24:14 2026 +0200
Up to 7.1.1
- drop go-vendor.patch: modern Go auto-enables vendor mode from vendor/modules.txt
- drop curl-devel/zlib-devel BuildRequires: pure Go, no cgo
- golang BR >= 1.23 to match go.mod toolchain
geoipupdate.spec | 19 +++++++------------
go-vendor.patch | 11 -----------
2 files changed, 7 insertions(+), 23 deletions(-)
---
diff --git a/geoipupdate.spec b/geoipupdate.spec
index e462205..8008757 100644
--- a/geoipupdate.spec
+++ b/geoipupdate.spec
@@ -1,26 +1,22 @@
Summary: GeoIP Update - automatically update GeoIP2 or GeoIP Legacy binary databases
Summary(pl.UTF-8): GeoIP Update - automatyczna aktualizacja binarnych baz danych GeoIP2 lub GeoIP Legacy
Name: geoipupdate
-Version: 4.9.0
+Version: 7.1.1
Release: 1
License: Apache v2.0
Group: Applications/Networking
#Source0Download: https://github.com/maxmind/geoipupdate/releases
Source0: https://github.com/maxmind/geoipupdate/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: edd364519222e99b1009aec7d7edfb40
-%if 0
-go mod vendor
-tar -caf ~/geoipupdate-vendor.tar.xz vendor
-%endif
+# Source0-md5: 8e17067fb6ad64d8c18ada2f62c58cb6
+# cd %{name}-%{version}
+# go mod vendor
+# tar cJf ../%{name}-vendor-%{version}.tar.xz vendor
Source1: %{name}-vendor-%{version}.tar.xz
-# Source1-md5: c232481778faf5d48bb9e6994d54ad82
-Patch0: go-vendor.patch
+# Source1-md5: e89edc2e821efbcd7ab9efab523b6883
URL: https://github.com/maxmind/geoipupdate
-BuildRequires: curl-devel
-BuildRequires: golang >= 1.3.1
+BuildRequires: golang >= 1.23
BuildRequires: pandoc
BuildRequires: rpmbuild(macros) >= 2.009
-BuildRequires: zlib-devel
Provides: GeoIP-update = %{version}-%{release}
Obsoletes: GeoIP-update <= 2.2.2-2
Conflicts: GeoIP < 1.6.0
@@ -41,7 +37,6 @@ Linuksie i innych systemach uniksowych.
%prep
%setup -q -a1
-%patch -P0 -p1
%build
%{__make} \
diff --git a/go-vendor.patch b/go-vendor.patch
deleted file mode 100644
index c2adb35..0000000
--- a/go-vendor.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- geoipupdate-4.9.0/Makefile~ 2022-02-16 00:25:37.000000000 +0200
-+++ geoipupdate-4.9.0/Makefile 2022-09-05 18:27:40.067617133 +0300
-@@ -41,7 +41,7 @@
- mkdir -p $(BUILDDIR)
-
- $(BUILDDIR)/geoipupdate: $(BUILDDIR)
-- (cd cmd/geoipupdate && go build -ldflags '-X main.defaultConfigFile=$(CONFFILE) -X main.defaultDatabaseDirectory=$(DATADIR) -X "main.version=$(VERSION)"')
-+ (cd cmd/geoipupdate && go build -mod=vendor -ldflags '-X main.defaultConfigFile=$(CONFFILE) -X main.defaultDatabaseDirectory=$(DATADIR) -X "main.version=$(VERSION)"')
- cp cmd/geoipupdate/geoipupdate $(BUILDDIR)
-
- $(BUILDDIR)/GeoIP.conf: $(BUILDDIR) conf/GeoIP.conf.default
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/geoipupdate.git/commitdiff/bbc791721b606a224bedbb4cbd4917c9d2863b55
More information about the pld-cvs-commit
mailing list