|
|
2f51df6 |
%global srcname pycountry
|
|
|
2f51df6 |
|
|
|
2f51df6 |
Name: python-%{srcname}
|
|
|
ae55f64 |
Version: 19.8.18
|
|
|
8a10671 |
Release: 5%{?dist}
|
|
|
2f51df6 |
Summary: ISO country, subdivision, language, currency and script definitions and their translations
|
|
|
2f51df6 |
|
|
|
2f51df6 |
License: LGPLv2
|
|
|
ce6f3a1 |
URL: https://github.com/flyingcircusio/pycountry
|
|
|
2f51df6 |
Source0: %pypi_source
|
|
|
2f51df6 |
# Rebased from Debian:
|
|
|
2f51df6 |
Patch0001: 00-use_system_iso-codes.patch
|
|
|
ce6f3a1 |
# https://github.com/flyingcircusio/pycountry/pull/16 (partially)
|
|
|
ce6f3a1 |
Patch0002: https://github.com/flyingcircusio/pycountry/pull/16/commits/1979282ee3cc6b1955240dbea46843832e9afc3a.patch
|
|
|
e50aaba |
Patch0003: support-iso-codes-450.patch
|
|
|
2f51df6 |
|
|
|
2f51df6 |
BuildArch: noarch
|
|
|
2f51df6 |
|
|
|
2f51df6 |
BuildRequires: iso-codes >= 4.1
|
|
|
2f51df6 |
BuildRequires: python3-devel
|
|
|
2f51df6 |
BuildRequires: python3dist(setuptools)
|
|
|
2f51df6 |
BuildRequires: python3dist(pytest)
|
|
|
2f51df6 |
|
|
|
2f51df6 |
%description
|
|
|
2f51df6 |
pycountry provides the ISO databases for the standards:
|
|
|
2f51df6 |
* 639-3 Languages
|
|
|
2f51df6 |
* 3166 Countries
|
|
|
2f51df6 |
* 3166-3 Deleted countries
|
|
|
2f51df6 |
* 3166-2 Subdivisions of countries
|
|
|
2f51df6 |
* 4217 Currencies
|
|
|
2f51df6 |
* 15924 Scripts
|
|
|
2f51df6 |
|
|
|
2f51df6 |
|
|
|
2f51df6 |
%package -n python3-%{srcname}
|
|
|
2f51df6 |
Summary: %{summary}
|
|
|
2f51df6 |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
2f51df6 |
|
|
|
2f51df6 |
Requires: iso-codes >= 4.1
|
|
|
2f51df6 |
|
|
|
2f51df6 |
%description -n python3-%{srcname}
|
|
|
2f51df6 |
pycountry provides the ISO databases for the standards:
|
|
|
2f51df6 |
* 639-3 Languages
|
|
|
2f51df6 |
* 3166 Countries
|
|
|
2f51df6 |
* 3166-3 Deleted countries
|
|
|
2f51df6 |
* 3166-2 Subdivisions of countries
|
|
|
2f51df6 |
* 4217 Currencies
|
|
|
2f51df6 |
* 15924 Scripts
|
|
|
2f51df6 |
|
|
|
2f51df6 |
|
|
|
2f51df6 |
%prep
|
|
|
2f51df6 |
%autosetup -n %{srcname}-%{version} -p1
|
|
|
2f51df6 |
|
|
|
2f51df6 |
# Remove bundled egg-info
|
|
|
2f51df6 |
rm -rf src/%{srcname}.egg-info
|
|
|
2f51df6 |
|
|
|
2f51df6 |
# Remove bundled iso-codes data
|
|
|
2f51df6 |
rm -rf src/%{srcname}/{databases,locales}
|
|
|
2f51df6 |
|
|
|
2f51df6 |
|
|
|
2f51df6 |
%build
|
|
|
2f51df6 |
%py3_build
|
|
|
2f51df6 |
|
|
|
2f51df6 |
|
|
|
2f51df6 |
%install
|
|
|
2f51df6 |
%py3_install
|
|
|
2f51df6 |
|
|
|
2f51df6 |
|
|
|
2f51df6 |
%check
|
|
|
2f51df6 |
PYTHONPATH=%{buildroot}%{python3_sitelib} PYTHONDONTWRITEBYTECODE=1 \
|
|
|
e50aaba |
%{python3} -m pytest --pyargs pycountry
|
|
|
2f51df6 |
|
|
|
2f51df6 |
|
|
|
2f51df6 |
%files -n python3-%{srcname}
|
|
|
ae55f64 |
%doc README.rst HISTORY.txt
|
|
|
2f51df6 |
%license LICENSE.txt
|
|
|
2f51df6 |
%{python3_sitelib}/%{srcname}
|
|
|
e50aaba |
%{python3_sitelib}/%{srcname}-%{version}-py*.egg-info
|
|
|
2f51df6 |
|
|
|
2f51df6 |
|
|
|
2f51df6 |
%changelog
|
|
|
e50aaba |
* Wed May 27 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 19.8.18-5
|
|
|
e50aaba |
- Support iso-codes 4.5
|
|
|
e50aaba |
|
|
|
8a10671 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 19.8.18-5
|
|
|
8a10671 |
- Rebuilt for Python 3.9
|
|
|
8a10671 |
|
|
|
ce6f3a1 |
* Sun Feb 09 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 19.8.18-4
|
|
|
ce6f3a1 |
- Update upstream URL
|
|
|
ce6f3a1 |
- Backport patch to build with iso-codes 4.4
|
|
|
ce6f3a1 |
|
|
|
2cc0c65 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 19.8.18-3
|
|
|
2cc0c65 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
2cc0c65 |
|
|
|
fe1cf96 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 19.8.18-2
|
|
|
fe1cf96 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
fe1cf96 |
|
|
|
ae55f64 |
* Mon Aug 19 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 19.8.18-1
|
|
|
ae55f64 |
- Update to latest version
|
|
|
ae55f64 |
|
|
|
e07f51e |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 18.12.8-3
|
|
|
e07f51e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
e07f51e |
|
|
|
028d06c |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 18.12.8-2
|
|
|
028d06c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
028d06c |
|
|
|
2f51df6 |
* Thu Dec 13 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 18.12.8-1
|
|
|
2f51df6 |
- Initial package.
|