Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37605783
en ru br
ALT Linux repos
S:6.0.0-alt1

Group :: Networking/Other
RPM: geoipupdate

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1

Name: geoipupdate
Version: 6.0.0
Release: alt1

Summary: GeoIP update client code
Group: Networking/Other
License: Apache-2.0 or MIT
URL: https://github.com/maxmind/geoipupdate

Source0: %name-%version.tar
Source1: %name-%version-vendor.tar

BuildRequires(pre): rpm-build-golang rpm-macros-golang
BuildRequires: pandoc

%description
The GeoIP Update program performs automatic updates of GeoIP2 and
GeoIP Legacy binary databases. CSV databases are not supported.

%prep
%setup
%setup -a 1

%build
export BUILDDIR="$PWD/.build"
export IMPORT_PATH="github.com/maxmind/geoipupdate"
export GOPATH="%go_path"
export GOFLAGS="-mod=vendor"
%golang_prepare
%golang_build cmd/geoipupdate
rm -rf $BUILDDIR/src

%install
export BUILDDIR="$PWD/.build"
export GOPATH="%go_path"
%golang_install

%files
%doc README.md
%_bindir/geoipupdate

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin