3f4da56
%global _description ISO 3166-1 defines two-letter, three-letter, and three-digit country\
5242cc7
codes. python-iso3166 is a self-contained module that converts between these\
5242cc7
codes and the corresponding country name.
5242cc7
0f32079
%global srcname iso3166
0f32079
5242cc7
Name:           python-%{srcname}
3f4da56
Version:        1.0.1
0f32079
Release:        1%{?dist}
0f32079
Summary:        Self-contained ISO 3166-1 country definitions
5242cc7
5242cc7
License:        MIT
0f32079
URL:            https://github.com/deactivated/%{name}/
3f4da56
Source0:        %{pypi_source}
5242cc7
5242cc7
BuildRequires:  python3-devel
3f4da56
BuildRequires:  python3-pytest
5242cc7
BuildArch:      noarch
5242cc7
5242cc7
%description
3f4da56
%{_description}
5242cc7
5242cc7
5242cc7
%package -n python3-%{srcname}
0f32079
Summary:        %{summary}
5242cc7
%{?python_provide:%python_provide python3-%{srcname}}
5242cc7
5242cc7
%description -n python3-%{srcname}
3f4da56
%{_description}
5242cc7
5242cc7
5242cc7
%prep
5242cc7
%autosetup -n %{srcname}-%{version}
5242cc7
5242cc7
5242cc7
%build
5242cc7
%py3_build
5242cc7
5242cc7
5242cc7
%install
5242cc7
%py3_install
5242cc7
5242cc7
3f4da56
%check
3b749e3
PYTHONPATH=$PWD py.test-%{python3_version}
3f4da56
3f4da56
5242cc7
%files -n python3-%{srcname}
5242cc7
%doc CHANGES README.rst
5242cc7
%license LICENSE.txt
0f32079
%{python3_sitelib}/%{srcname}/
0f32079
%{python3_sitelib}/%{srcname}-*.egg-info/
5242cc7
5242cc7
5242cc7
%changelog
3f4da56
* Mon Dec 16 2019 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.0.1-1
3f4da56
- Update to 1.0.1
3f4da56
- Add tests
3f4da56
0f32079
* Wed Mar 27 2019 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.0-1
0f32079
- Update to 1.0
0f32079
9f2fbb2
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-3
9f2fbb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
9f2fbb2
71ed821
* Wed Jan 16 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9-2
71ed821
- Subpackage python2-iso3166 has been removed
71ed821
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
71ed821
Mohamed El Morabity 24ff1d7
* Sun Aug 05 2018 Mohamed El Morabity <melmorabity@fedoraproject.org> - 0.9-1
Mohamed El Morabity 24ff1d7
- Update to 0.9
Mohamed El Morabity 24ff1d7
09867fa
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-5
09867fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
09867fa
4b65c7c
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.8-4
4b65c7c
- Rebuilt for Python 3.7
4b65c7c
b47507c
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-3
b47507c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b47507c
2d68c6f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-2
2d68c6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2d68c6f
5242cc7
* Tue Feb 14 2017 Mohamed El Morabity <melmorabity@fedoraproject.org> - 0.8-1
5242cc7
- Initial RPM release