# Generated by go2rpm %bcond_without check # https://github.com/oschwald/geoip2-golang %global goipath github.com/oschwald/geoip2-golang Version: 1.3.0 # test data for the non-exported git submodule %global dataurl https://github.com/maxmind/MaxMind-DB %global dataref 5d78487a1ba8df568ff000a0d3bdb22162db5851 %gometa %global common_description %{expand: This library reads MaxMind GeoLite2 and GeoIP2 databases. This library is built using the Go maxminddb reader. All data for the database record is decoded using this library. If you only need several fields, you may get superior performance by using maxminddb's Lookup directly with a result struct that only contains the required fields. (See example_test.go in the maxminddb repository for an example of this.)} %global golicenses LICENSE test-data/LICENSE %global godocs README.md Name: %{goname} Release: 1%{?dist} Summary: Unofficial MaxMind GeoIP2 Reader for Go # Code: ISC; Test data: CC-BY-SA 3.0 License: ISC and CC-BY-SA URL: %{gourl} Source0: %{gosource} Source1: %{dataurl}/archive/%{dataref}/MaxMind-DB-%{dataref}.tar.gz BuildRequires: golang(github.com/oschwald/maxminddb-golang) %if %{with check} # Tests BuildRequires: golang(github.com/stretchr/testify/assert) BuildRequires: golang(github.com/stretchr/testify/require) %endif %description %{common_description} %gopkg %prep %goprep # extract test data to the right location pushd test-data tar -xzf %{SOURCE1} mv MaxMind-DB-%{dataref}/* ./ rm -r MaxMind-DB-%{dataref} popd %install %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog * Mon Jun 03 17:01:49 CEST 2019 Robert-André Mauchin - 1.3.0-1 - Release 1.3.0 * Fri Feb 01 2019 Fedora Release Engineering - 1.2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Oct 24 2018 Fabio Valentini - 1.2.1-4 - Use standard GitHub SourceURL again for consistency between releases. - Use forgeautosetup instead of gosetup. * Sun Sep 02 2018 Fabio Valentini - 1.2.1-3 - Update to spec 3.0 and enable tests. * Fri Jul 13 2018 Fedora Release Engineering - 1.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Feb 26 2018 Fabio Valentini - 1.2.1-1 - Update to version 1.2.1. * Tue Feb 20 2018 Fabio Valentini - 1.2.0-1 - Update to version 1.2.0. * Wed Feb 07 2018 Fedora Release Engineering - 1.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Aug 02 2017 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Apr 24 2017 Fabio Valentini - 1.1.0-1 - Update to version 1.1.0. * Mon Mar 13 2017 Fabio Valentini - 1.0.0-1.20170314.git0fd242d - First package for Fedora