Accepting request 538853 from devel:languages:python

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/538853
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=2
This commit is contained in:
2017-11-04 18:30:28 +00:00
committed by Git OBS Bridge
parent 10b9798da7
commit e58a088519
4 changed files with 22 additions and 15 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:73cac570c028cf685dbd8a8c10c1aa0a8b2924ca37b5c039bc010330c94cc580
size 371328

3
geoip2-2.6.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f441671eb8faa0eaaac16903760fce71130865f14370d56d49512b11029f3ead
size 364901

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Oct 27 21:10:06 UTC 2017 - sebix+novell.com@sebix.at
- update to version 2.6.0:
* The following new anonymizer attributes were added to ``geoip2.record.Traits``
for use with GeoIP2 Precision Insights: ``is_anonymous``,
``is_anonymous_vpn``, ``is_hosting_provider``, ``is_public_proxy``, and
``is_tor_exit_node``.
-------------------------------------------------------------------
Thu May 25 16:30:03 UTC 2017 - sebix+novell.com@sebix.at

View File

@@ -13,39 +13,38 @@
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-geoip2
Version: 2.5.0
Version: 2.6.0
Release: 0
License: Apache-2.0
Summary: MaxMind GeoIP2 Python API
Url: http://www.maxmind.com/
License: Apache-2.0
Group: Development/Languages/Python
Url: http://www.maxmind.com/
Source: https://files.pythonhosted.org/packages/source/g/geoip2/geoip2-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
Requires: %{python_module maxminddb >= 1.2.1}
Requires: %{python_module requests >= 2.9}
BuildArch: noarch
%if %{with test}
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
BuildRequires: fdupes
# /SECTION
Requires: %{python_module maxminddb >= 1.2.1}
Requires: %{python_module requests >= 2.9}
%ifpython2
Recommends: python2-ipaddress
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
@@ -60,7 +59,7 @@ The API also works with MaxMind's free GeoLite2 databases.
%install
%python_install
%python_expand %fdupes %buildroot%{$sitearch}
%python_expand %fdupes %{buildroot}%{$sitearch}
%if %{with test}
%check
@@ -68,7 +67,6 @@ The API also works with MaxMind's free GeoLite2 databases.
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README.rst
%{python_sitelib}/*