# Generated by go2rpm # https://github.com/oschwald/maxminddb-golang/issues/55 %bcond_with check # https://github.com/oschwald/maxminddb-golang %global goipath github.com/oschwald/maxminddb-golang Version: 1.3.0 # test data for the non-exported git submodule %global dataurl https://github.com/maxmind/MaxMind-DB %global dataref 2159aef4f87fab9fb418da00307e3afd8722a56e %gometa %global common_description %{expand: This is a Go reader for the MaxMind DB format. Although this can be used to read GeoLite2 and GeoIP2 databases, geoip2 provides a higher-level API for doing so.} %global golicenses LICENSE LICENSE-test-data %global godocs README.md test-data/MaxMind-DB-spec.md Name: %{goname} Release: 6%{?dist} Summary: MaxMind DB 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(golang.org/x/sys/unix) %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 mv test-data/LICENSE LICENSE-test-data %install %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog * Thu May 23 17:08:50 CEST 2019 Robert-André Mauchin - 1.3.0-6 - Update to new macros * Fri Feb 01 2019 Fedora Release Engineering - 1.3.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Oct 24 2018 Fabio Valentini - 1.3.0-4 - Use standard GitHub SourceURL again for consistency between releases. - Use forgeautosetup instead of gosetup. * Sun Sep 02 2018 Fabio Valentini - 1.3.0-3 - Update to use spec 3.0 and enable tests. * Fri Jul 13 2018 Fedora Release Engineering - 1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Feb 26 2018 Fabio Valentini - 1.3.0-1 - Update to version 1.3.0. * Wed Feb 07 2018 Fedora Release Engineering - 1.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jan 03 2018 Fabio Valentini - 1.2.1-1 - Update to version 1.2.1. * Wed Aug 02 2017 Fedora Release Engineering - 1.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun May 07 2017 Fabio Valentini - 1.2.0-1 - Update to version 1.2.0. * Mon Mar 13 2017 Fabio Valentini - 1.1.0-1.git697da80 - First package for Fedora