public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/geoipupdate] epel10.3: Convert to new vendoring guidelines
Date: Wed, 25 Nov 2026 19:42:36 GMT [thread overview]
Message-ID: <179563575609.1.2941534022348380301.rpms-geoipupdate-a8733a47edc7@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/geoipupdate
Branch : epel10.3
Commit : a8733a47edc703472ec5e4707aacb572e5cd6573
Author : Robert-André Mauchin <eclipseo@mauchin.fr>
Date : 2025-10-19T09:20:42+02:00
Stats : +60/-40 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/geoipupdate/c/a8733a47edc703472ec5e4707aacb572e5cd6573?branch=epel10.3
Log:
Convert to new vendoring guidelines
---
diff --git a/.gitignore b/.gitignore
index e476557..c37416d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -28,3 +28,4 @@
/geoipupdate-7.0.1.tar.gz
/geoipupdate-7.1.0.tar.gz
/geoipupdate-7.1.1.tar.gz
+/geoipupdate-7.1.1-vendor.tar.bz2
diff --git a/geoipupdate.spec b/geoipupdate.spec
index 04c8013..5778bc8 100644
--- a/geoipupdate.spec
+++ b/geoipupdate.spec
@@ -1,27 +1,33 @@
-%bcond_without check
+# Generated by go2rpm 1.18.0
+%bcond check 1
# https://github.com/maxmind/geoipupdate
-%global goipath github.com/maxmind/geoipupdate
-Version: 7.1.1
+%global goipath github.com/maxmind/geoipupdate/v7
+Version: 7.1.1
-%gometa
+%gometa -L -f
Name: geoipupdate
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Update GeoIP2 binary databases from MaxMind
-License: Apache-2.0 OR MIT
-URL: http://dev.maxmind.com/geoip/geoipupdate/
-Source0: %{gosource}
-Source1: geoipupdate.cron
+Name: geoipupdate
+Release: %autorelease
+Summary: Update GeoIP2 binary databases from MaxMind
+
+# Generated by go-vendor-tools
+License: Apache-2.0 AND BSD-3-Clause AND ISC AND MIT
+URL: %{gourl}
+Source0: %{gosource}
+# Generated by go-vendor-tools
+Source1: %{archivename}-vendor.tar.bz2
+Source2: go-vendor-tools.toml
+Source3: geoipupdate.cron
+
BuildRequires: coreutils
BuildRequires: crontabs
-BuildRequires: golang(github.com/cenkalti/backoff/v5)
-BuildRequires: golang(github.com/gofrs/flock)
-BuildRequires: golang(github.com/spf13/pflag)
-BuildRequires: golang(golang.org/x/net/http2)
-BuildRequires: golang(golang.org/x/sync/errgroup)
+BuildRequires: go-vendor-tools
BuildRequires: make
BuildRequires: pandoc
BuildRequires: perl-interpreter
@@ -32,19 +38,13 @@ BuildRequires: sed
# Legacy databases fetched by cron6 sub-package no longer available
Obsoletes: geoipupdate-cron6 < %{version}-%{release}
-%if %{with check}
-# Tests
-BuildRequires: golang(github.com/stretchr/testify/assert)
-BuildRequires: golang(github.com/stretchr/testify/require)
-%endif
-
%description
The GeoIP Update program performs automatic updates of GeoIP2 binary databases.
%package cron
Summary: Cron job to do weekly updates of GeoIP databases
BuildArch: noarch
-Requires: %{name} = %{version}-%{release}
+Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: crontabs
Obsoletes: GeoIP-update < 1.6.0
Provides: GeoIP-update = 1.6.0
@@ -53,9 +53,15 @@ Provides: GeoIP-update = 1.6.0
Cron job for weekly updates to GeoIP2 binary databases from MaxMind.
%prep
-%goprep
+%goprep -A
+%setup -q -T -D -a1 %{forgesetupargs}
+%autopatch -p1
+
+%generate_buildrequires
+%go_vendor_license_buildrequires -c %{S:2}
%build
+%global gomodulesmode GO111MODULE=on
export LDFLAGS='-X main.defaultConfigFile=%{_sysconfdir}/GeoIP.conf -X main.defaultDatabaseDirectory=%{_datadir}/GeoIP '
%gobuild -o %{gobuilddir}/bin/geoipupdate %{goipath}/cmd/geoipupdate
@@ -66,39 +72,40 @@ ln -s %{gobuilddir} build
make BUILDDIR=%{gobuilddir} CONFFILE=%{_sysconfdir}/GeoIP.conf DATADIR=%{_datadir}/GeoIP data
%install
-# Install the geoipupdate program
-install -d %{buildroot}%{_bindir}
-install -p -m 0755 %{gobuilddir}/bin/geoipupdate %{buildroot}%{_bindir}/geoipupdate
+%go_vendor_license_install -c %{S:2}
+install -m 0755 -vd %{buildroot}%{_bindir}
+install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
# Install the configuration file
# By default we just use the free GeoIP2 databases
-install -d %{buildroot}%{_sysconfdir}
-install -p -m 0644 conf/GeoIP.conf.default %{buildroot}%{_sysconfdir}/GeoIP.conf
+install -m 0755 -vd %{buildroot}%{_sysconfdir}
+install -m 0644 -vp conf/GeoIP.conf.default %{buildroot}%{_sysconfdir}/GeoIP.conf
# Ensure the GeoIP data directory exists
# Note: not using %%ghost files for default databases to avoid issues when co-existing with the geolite2 package
-install -d %{buildroot}%{_datadir}/GeoIP
+install -m 0755 -vd %{buildroot}%{_datadir}/GeoIP
# Install the cron script for fetching weekly updates
-install -D -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/cron.weekly/geoipupdate
+install -m 0755 -vd %{buildroot}%{_sysconfdir}/cron.weekly
+install -m 0755 -vp %{S:3} %{buildroot}%{_sysconfdir}/cron.weekly/geoipupdate
# Install the manpages
-install -d %{buildroot}%{_mandir}/man1
-install -p -m 0644 _build/geoipupdate.1 %{buildroot}%{_mandir}/man1/geoipupdate.1
-install -d %{buildroot}%{_mandir}/man5
-install -p -m 0644 _build/GeoIP.conf.5 %{buildroot}%{_mandir}/man5/GeoIP.conf.5
+install -m 0755 -vd %{buildroot}%{_mandir}/man1
+install -m 0644 -vp _build/geoipupdate.1 %{buildroot}%{_mandir}/man1/geoipupdate.1
+install -m 0755 -vd %{buildroot}%{_mandir}/man5
+install -m 0644 -vp _build/GeoIP.conf.5 %{buildroot}%{_mandir}/man5/GeoIP.conf.5
-%if %{with check}
%check
-%gocheck
+%go_vendor_license_check -c %{S:2}
+%if %{with check}
+%gotest ./...
%endif
-%files
-%license LICENSE-APACHE LICENSE-MIT
-%doc conf/GeoIP.conf.default README.md CHANGELOG.md
-%doc doc/GeoIP.conf.md doc/geoipupdate.md
-%config(noreplace) %{_sysconfdir}/GeoIP.conf
+%files -f %{go_vendor_license_filelist}
+%license vendor/modules.txt
+%doc doc CHANGELOG.md README.dev.md README.md
%{_bindir}/geoipupdate
+%config(noreplace) %{_sysconfdir}/GeoIP.conf
%dir %{_datadir}/GeoIP/
%{_mandir}/man1/geoipupdate.1*
%{_mandir}/man5/GeoIP.conf.5*
@@ -107,6 +114,9 @@ install -p -m 0644 _build/GeoIP.conf.5 %{buildroot}%{_mandir}/man5/GeoIP.conf.5
%config(noreplace) %{_sysconfdir}/cron.weekly/geoipupdate
%changelog
+* Sun Oct 19 2025 Robert-André Mauchin <eclipseo@mauchin.fr> - 7.1.1-5
+- Convert to new vendoring guidelines
+
* Fri Oct 10 2025 Alejandro Sáez <asm@redhat.com> - 7.1.1-4
- rebuild
diff --git a/go-vendor-tools.toml b/go-vendor-tools.toml
new file mode 100644
index 0000000..2c22c5e
--- /dev/null
+++ b/go-vendor-tools.toml
@@ -0,0 +1,8 @@
+[archive]
+
+[licensing]
+detector = "askalono"
+[[licensing.licenses]]
+path = "vendor/gopkg.in/yaml.v3/LICENSE"
+sha256sum = "d18f6323b71b0b768bb5e9616e36da390fbd39369a81807cca352de4e4e6aa0b"
+expression = "MIT AND (MIT AND Apache-2.0)"
diff --git a/sources b/sources
index 9f3552b..d7f4e69 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
+SHA512 (geoipupdate-7.1.1-vendor.tar.bz2) = 7a107d8158416f9a42c6df7ac542aa7609183717e88bce9f40c6dc4b151a5eec0783cccc53403b0fef15c8bdf78724bf2b85f4242d939e90f3a09689971faf05
SHA512 (geoipupdate-7.1.1.tar.gz) = 9be4c7db231b453d3583f9130edb3f8eafac73af44a82bf4778e59592a105c6ccd48446ae9193046bd427c178fef9a9a3ea36baee1d4b04389450b5fbad4dc7e
reply other threads:[~2026-11-25 19:42 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=179563575609.1.2941534022348380301.rpms-geoipupdate-a8733a47edc7@fedoraproject.org \
--to=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