Accepting request 683718 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/683718
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=7
This commit is contained in:
Dominique Leuenberger 2019-03-12 08:46:19 +00:00 committed by Git OBS Bridge
parent 0e4fa93738
commit 7a970a904d
2 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Mar 11 07:07:04 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Fix minimum build dependency of maxminddb
- Fix fdupes
- Use more useful GitHub repo as URL
- Add HISTORY.rst to %doc
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Dec 4 12:48:25 UTC 2018 - Matej Cepl <mcepl@suse.com> Tue Dec 4 12:48:25 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-geoip2 # spec file for package python-geoip2
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -24,13 +24,13 @@ Release: 0
Summary: MaxMind GeoIP2 Python API Summary: MaxMind GeoIP2 Python API
License: Apache-2.0 License: Apache-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
URL: http://www.maxmind.com/ URL: https://github.com/maxmind/GeoIP2-python
Source: https://files.pythonhosted.org/packages/source/g/geoip2/geoip2-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/g/geoip2/geoip2-%{version}.tar.gz
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module maxminddb >= 1.2.1} BuildRequires: %{python_module maxminddb >= 1.4.0}
BuildRequires: %{python_module requests >= 2.9} BuildRequires: %{python_module requests >= 2.9}
BuildRequires: %{python_module requests-mock >= 0.5} BuildRequires: %{python_module requests-mock >= 0.5}
# /SECTION # /SECTION
@ -54,14 +54,14 @@ The API also works with MaxMind's free GeoLite2 databases.
%install %install
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$sitearch} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%python_exec setup.py test %python_exec setup.py test
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst HISTORY.rst
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog