|
|
4b7a1af |
# Generated by go2rpm
|
|
|
4bf63af |
%bcond_without check
|
|
|
4b7a1af |
|
|
|
4b7a1af |
# https://github.com/oschwald/maxminddb-golang
|
|
|
4b7a1af |
%global goipath github.com/oschwald/maxminddb-golang
|
|
|
f19ea5d |
Version: 1.8.0
|
|
|
4b7a1af |
# test data for the non-exported git submodule
|
|
|
4b7a1af |
%global dataurl https://github.com/maxmind/MaxMind-DB
|
|
|
b3e8f62 |
%global dataref c46c33c3c598c648013e2aa7458f8492f4ecfcce
|
|
|
4b7a1af |
|
|
|
4b7a1af |
%gometa
|
|
|
4b7a1af |
|
|
|
4b7a1af |
%global common_description %{expand:
|
|
|
4b7a1af |
This is a Go reader for the MaxMind DB format. Although this can be used to read
|
|
|
4b7a1af |
GeoLite2 and GeoIP2 databases, geoip2 provides a higher-level API for doing so.}
|
|
|
4b7a1af |
|
|
|
4b7a1af |
%global golicenses LICENSE LICENSE-test-data
|
|
|
4b7a1af |
%global godocs README.md test-data/MaxMind-DB-spec.md
|
|
|
4b7a1af |
|
|
|
4b7a1af |
Name: %{goname}
|
|
|
f19ea5d |
Release: 1%{?dist}
|
|
|
4b7a1af |
Summary: MaxMind DB Reader for Go
|
|
|
4b7a1af |
|
|
|
4b7a1af |
# Code: ISC; Test data: CC-BY-SA 3.0
|
|
|
4b7a1af |
License: ISC and CC-BY-SA
|
|
|
4b7a1af |
URL: %{gourl}
|
|
|
4b7a1af |
Source0: %{gosource}
|
|
|
4b7a1af |
Source1: %{dataurl}/archive/%{dataref}/MaxMind-DB-%{dataref}.tar.gz
|
|
|
4b7a1af |
|
|
|
4b7a1af |
BuildRequires: golang(golang.org/x/sys/unix)
|
|
|
4b7a1af |
|
|
|
4b7a1af |
%if %{with check}
|
|
|
4b7a1af |
# Tests
|
|
|
4b7a1af |
BuildRequires: golang(github.com/stretchr/testify/assert)
|
|
|
4b7a1af |
BuildRequires: golang(github.com/stretchr/testify/require)
|
|
|
4b7a1af |
%endif
|
|
|
4b7a1af |
|
|
|
4b7a1af |
%description
|
|
|
4b7a1af |
%{common_description}
|
|
|
4b7a1af |
|
|
|
4b7a1af |
%gopkg
|
|
|
4b7a1af |
|
|
|
4b7a1af |
%prep
|
|
|
4b7a1af |
%goprep
|
|
|
4b7a1af |
# extract test data to the right location
|
|
|
4b7a1af |
pushd test-data
|
|
|
4b7a1af |
tar -xzf %{SOURCE1}
|
|
|
4b7a1af |
mv MaxMind-DB-%{dataref}/* ./
|
|
|
4b7a1af |
rm -r MaxMind-DB-%{dataref}
|
|
|
4b7a1af |
popd
|
|
|
4b7a1af |
mv test-data/LICENSE LICENSE-test-data
|
|
|
4b7a1af |
|
|
|
4b7a1af |
%install
|
|
|
4b7a1af |
%gopkginstall
|
|
|
4b7a1af |
|
|
|
4b7a1af |
%if %{with check}
|
|
|
4b7a1af |
%check
|
|
|
4b7a1af |
%gocheck
|
|
|
4b7a1af |
%endif
|
|
|
4b7a1af |
|
|
|
4b7a1af |
%gopkgfiles
|
|
|
4b7a1af |
|
|
|
4b7a1af |
%changelog
|
|
|
f19ea5d |
* Mon Dec 21 09:32:14 CET 2020 Robert-André Mauchin <zebob.m@gmail.com> - 1.8.0-1
|
|
|
f19ea5d |
- Update to 1.8.0
|
|
|
f19ea5d |
- Close: rhbz#1900901
|
|
|
f19ea5d |
|
|
|
c5d7e88 |
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-2
|
|
|
c5d7e88 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
c5d7e88 |
|
|
|
b3e8f62 |
* Tue Jun 23 2020 Fabio Valentini <decathorpe@gmail.com> - 1.7.0-1
|
|
|
b3e8f62 |
- Update to version 1.7.0.
|
|
|
b3e8f62 |
- Fixes: RHBZ#1846912
|
|
|
b3e8f62 |
|
|
|
b43e10b |
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-2
|
|
|
b43e10b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
b43e10b |
|
|
|
f29f854 |
* Thu Jan 02 2020 Fabio Valentini <decathorpe@gmail.com> - 1.6.0-1
|
|
|
f29f854 |
- Update to version 1.6.0.
|
|
|
f29f854 |
|
|
|
54cb3c3 |
* Sat Sep 14 2019 Fabio Valentini <decathorpe@gmail.com> - 1.5.0-1
|
|
|
54cb3c3 |
- Update to version 1.5.0.
|
|
|
54cb3c3 |
|
|
|
4bf63af |
* Fri Sep 06 2019 Fabio Valentini <decathorpe@gmail.com> - 1.4.0-1
|
|
|
4bf63af |
- Update to version 1.4.0.
|
|
|
4bf63af |
|
|
|
bf793e4 |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
|
|
|
bf793e4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
bf793e4 |
|
|
|
ae8bb92 |
* Tue Jul 09 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.3.1-2
|
|
|
ae8bb92 |
- Add Obsoletes for old name
|
|
|
ae8bb92 |
|
|
|
4b7a1af |
* Thu May 23 17:08:50 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 1.3.1-1
|
|
|
4b7a1af |
- Release 1.3.1
|
|
|
4b7a1af |
|
|
|
4b7a1af |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-5
|
|
|
4b7a1af |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
4b7a1af |
|
|
|
4b7a1af |
* Wed Oct 24 2018 Fabio Valentini <decathorpe@gmail.com> - 1.3.0-4
|
|
|
4b7a1af |
- Use standard GitHub SourceURL again for consistency between releases.
|
|
|
4b7a1af |
- Use forgeautosetup instead of gosetup.
|
|
|
4b7a1af |
|
|
|
4b7a1af |
* Sun Sep 02 2018 Fabio Valentini <decathorpe@gmail.com> - 1.3.0-3
|
|
|
4b7a1af |
- Update to use spec 3.0 and enable tests.
|
|
|
4b7a1af |
|
|
|
4b7a1af |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
|
|
|
4b7a1af |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
4b7a1af |
|
|
|
4b7a1af |
* Mon Feb 26 2018 Fabio Valentini <decathorpe@gmail.com> - 1.3.0-1
|
|
|
4b7a1af |
- Update to version 1.3.0.
|
|
|
4b7a1af |
|
|
|
4b7a1af |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
|
|
|
4b7a1af |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
4b7a1af |
|
|
|
4b7a1af |
* Wed Jan 03 2018 Fabio Valentini <decathorpe@gmail.com> - 1.2.1-1
|
|
|
4b7a1af |
- Update to version 1.2.1.
|
|
|
4b7a1af |
|
|
|
4b7a1af |
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3
|
|
|
4b7a1af |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
4b7a1af |
|
|
|
4b7a1af |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
|
|
|
4b7a1af |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
4b7a1af |
|
|
|
4b7a1af |
* Sun May 07 2017 Fabio Valentini <decathorpe@gmail.com> - 1.2.0-1
|
|
|
4b7a1af |
- Update to version 1.2.0.
|
|
|
4b7a1af |
|
|
|
4b7a1af |
* Mon Mar 13 2017 Fabio Valentini <decathorpe@gmail.com> - 1.1.0-1.git697da80
|
|
|
4b7a1af |
- First package for Fedora
|
|
|
f29f854 |
|