diff --git a/geoip2-2.8.0.tar.gz b/geoip2-2.8.0.tar.gz deleted file mode 100644 index ca22f22..0000000 --- a/geoip2-2.8.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:762e5ea1400d40772249c0778328b6fc82b82503092ceb48c00a7500d7ce4a64 -size 460415 diff --git a/geoip2-2.9.0.tar.gz b/geoip2-2.9.0.tar.gz new file mode 100644 index 0000000..daad1b6 --- /dev/null +++ b/geoip2-2.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f7ffe9d258e71a42cf622ce6350d976de1d0312b9f2fbce3975c7d838b57ecf0 +size 459342 diff --git a/python-geoip2.changes b/python-geoip2.changes index bbc284b..1aebe72 100644 --- a/python-geoip2.changes +++ b/python-geoip2.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Sun May 27 08:28:33 UTC 2018 - sebix+novell.com@sebix.at + +- update to version 2.9.0: + * You may now pass in the database via a file descriptor rather than a file + name when creating a new ``geoip2.database.Reader`` object using ``MODE_FD``. + This will read the database from the file descriptor into memory. Pull + request by nkinkade. GitHub #53. + ------------------------------------------------------------------- Wed May 2 12:02:32 UTC 2018 - tchvatal@suse.com diff --git a/python-geoip2.spec b/python-geoip2.spec index ae73f6c..3a2b740 100644 --- a/python-geoip2.spec +++ b/python-geoip2.spec @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without test Name: python-geoip2 -Version: 2.8.0 +Version: 2.9.0 Release: 0 Summary: MaxMind GeoIP2 Python API License: Apache-2.0 @@ -28,20 +28,16 @@ URL: http://www.maxmind.com/ Source: https://files.pythonhosted.org/packages/source/g/geoip2/geoip2-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-maxminddb >= 1.2.1 -Requires: python-requests >= 2.9 -BuildArch: noarch -%if %{with test} +# SECTION test requirements BuildRequires: %{python_module maxminddb >= 1.2.1} BuildRequires: %{python_module requests >= 2.9} -%endif -# SECTION test requirements -BuildRequires: fdupes -%if %{with test} BuildRequires: %{python_module requests-mock >= 0.5} -%endif # /SECTION +Requires: python-maxminddb >= 1.4.0 +Requires: python-requests >= 2.9 +BuildArch: noarch %ifpython2 Recommends: python2-ipaddress %endif @@ -61,10 +57,8 @@ The API also works with MaxMind's free GeoLite2 databases. %python_install %python_expand %fdupes %{buildroot}%{$sitearch} -%if %{with test} %check %python_exec setup.py test -%endif %files %{python_files} %license LICENSE