2016-10-06 07:57:12 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-pycountry
|
|
|
|
#
|
2019-03-29 10:44:14 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-10-06 07:57:12 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-03-29 10:44:14 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-10-06 07:57:12 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define real_name pycountry
|
|
|
|
|
2017-09-27 18:21:57 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2016-10-06 07:57:12 +02:00
|
|
|
Name: python-pycountry
|
2019-03-29 10:44:14 +01:00
|
|
|
Version: 18.12.8
|
2016-10-06 07:57:12 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Databases for ISO standards 639 3166 3166-2 4217 15924
|
2019-03-29 10:44:14 +01:00
|
|
|
License: LGPL-2.1-only
|
2016-10-06 07:57:12 +02:00
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Url: https://pypi.python.org/pypi/pycountry/
|
|
|
|
Source: https://pypi.io/packages/source/p/%{real_name}/%{real_name}-%{version}.tar.gz
|
2017-09-27 18:21:57 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-03-29 10:44:14 +01:00
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
# /SECTION
|
2016-10-06 07:57:12 +02:00
|
|
|
Requires: python-lxml
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-09-27 18:21:57 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
2016-10-06 07:57:12 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
pycountry provides the ISO databases for the standards 639 (Languages),
|
|
|
|
3166 (Countries), 3166-2 (Subdivisions of countries), 4217 (Currencies),
|
|
|
|
15924 (Scripts). The databases are imported from Debian's pkg-isocodes,
|
|
|
|
packaged into pycountry and made accessible through a Python API.
|
|
|
|
Translation files for the various strings are included as well.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{real_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-09-27 18:21:57 +02:00
|
|
|
%python_build
|
2016-10-06 07:57:12 +02:00
|
|
|
|
|
|
|
%install
|
2017-09-27 18:21:57 +02:00
|
|
|
%python_install
|
2016-10-06 07:57:12 +02:00
|
|
|
|
2019-03-29 10:44:14 +01:00
|
|
|
%check
|
|
|
|
%pytest
|
|
|
|
|
2017-09-27 18:21:57 +02:00
|
|
|
%files %{python_files}
|
|
|
|
%defattr(-,root,root,-)
|
2019-03-29 10:44:14 +01:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README
|
2017-09-27 18:21:57 +02:00
|
|
|
%{python_sitelib}/*
|
2016-10-06 07:57:12 +02:00
|
|
|
|
|
|
|
%changelog
|