python-pycountry/python-pycountry.spec

59 lines
1.9 KiB
RPMSpec

#
# spec file for package python-pycountry
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define real_name pycountry
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pycountry
Version: 17.5.14
Release: 0
Summary: Databases for ISO standards 639 3166 3166-2 4217 15924
License: LGPL-2.1
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
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
Requires: python-lxml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%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
%python_build
%install
%python_install
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE.txt README
%{python_sitelib}/*
%changelog