43d8017
%global modname idna-ssl
43d8017
43d8017
# Circular dependency with aiohttp
43d8017
%bcond_with check
43d8017
43d8017
Name:           python-%{modname}
330dfb6
Version:        1.1.0
6a380cc
Release:        10%{?dist}
43d8017
Summary:        Patch ssl.match_hostname for Unicode(idna) domains support
43d8017
43d8017
License:        MIT
43d8017
URL:            https://github.com/aio-libs/idna_ssl
43d8017
Source0:        %{url}/archive/v%{version}/%{modname}-%{version}.tar.gz
43d8017
43d8017
BuildArch:      noarch
43d8017
43d8017
%description
43d8017
%{summary}.
43d8017
43d8017
%package -n python3-%{modname}
43d8017
Summary:        %{summary}
330dfb6
BuildRequires:  python3-devel
43d8017
BuildRequires:  python3-setuptools
43d8017
%if %{with check}
43d8017
BuildRequires:  python3dist(pytest-runner)
43d8017
BuildRequires:  python3dist(pytest)
43d8017
BuildRequires:  python3dist(pytest-asyncio)
43d8017
BuildRequires:  python3dist(pytest-cov)
43d8017
BuildRequires:  python3dist(aiohttp) > 2.3
2ac7f86
BuildRequires:  python3dist(idna) >= 2
43d8017
%endif
4f6945c
%{?python_provide:%python_provide python3-%{modname}}
43d8017
43d8017
%description -n python3-%{modname}
43d8017
%{summary}.
43d8017
43d8017
%prep
43d8017
%autosetup -n %{modname}-%{version}
43d8017
43d8017
%build
43d8017
%py3_build
43d8017
43d8017
%install
43d8017
%py3_install
43d8017
43d8017
%if %{with check}
43d8017
%check
43d8017
%{__python3} setup.py pytest
43d8017
%endif
43d8017
43d8017
%files
43d8017
%license LICENSE
43d8017
%doc README.rst example.py
43d8017
%{python3_sitelib}/idna_ssl-*.egg-info/
43d8017
%{python3_sitelib}/idna_ssl.py
43d8017
%{python3_sitelib}/__pycache__/idna_ssl.*
43d8017
43d8017
%changelog
6a380cc
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-10
6a380cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6a380cc
4f6945c
* Fri May 29 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.1.0-9
4f6945c
- Fix typo in provide macro
4f6945c
1514bd1
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-8
1514bd1
- Rebuilt for Python 3.9
1514bd1
296fe11
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-7
296fe11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
296fe11
9bad8f7
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-6
9bad8f7
- Rebuilt for Python 3.8.0rc1 (#1748018)
9bad8f7
5a754d8
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-5
5a754d8
- Rebuilt for Python 3.8
5a754d8
2a80077
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
2a80077
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2a80077
cb4ff78
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
cb4ff78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
cb4ff78
e1cf4ce
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
e1cf4ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e1cf4ce
330dfb6
* Sat Jul 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.1.0-1
330dfb6
- Update to 1.1.0
330dfb6
1a8fb1e
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-2
1a8fb1e
- Rebuilt for Python 3.7
1a8fb1e
43d8017
* Sat Feb 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.0-1
43d8017
- Initial package