e7233af
%global srcname idna
e7233af
e7233af
Name:           python-%{srcname}
1825533
Version:        3.7
30db7c3
Release:        %autorelease
e7233af
Summary:        Internationalized Domain Names in Applications (IDNA)
e7233af
7121d05
License:        BSD-3-Clause
e7233af
URL:            https://github.com/kjd/idna
Tom Prince 1721259
Source0:        https://pypi.io/packages/source/i/%{srcname}/%{srcname}-%{version}.tar.gz
e7233af
BuildArch:      noarch
e7233af
Jeremy Cline 7e3e756
BuildRequires:  python3-devel
43244f1
BuildRequires:  python3dist(pytest)
e7233af
e7233af
%description
e7233af
A library to support the Internationalised Domain Names in Applications (IDNA)
e7233af
protocol as specified in RFC 5891 <http://tools.ietf.org/html/rfc5891>.  This
e7233af
version of the protocol is often referred to as "IDNA2008" and can produce
e7233af
different results from the earlier standard from 2003.
e7233af
e7233af
The library is also intended to act as a suitable drop-in replacement for the
e7233af
"encodings.idna" module that comes with the Python standard library but
707eb17
currently only supports the older 2003 specification.
e7233af
Jeremy Cline 7e3e756
%package -n python3-%{srcname}
e7233af
Summary:        Internationalized Domain Names in Applications (IDNA)
Orion Poplawski 3cba5e9
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
e7233af
Jeremy Cline 7e3e756
%description -n python3-%{srcname}
e7233af
A library to support the Internationalised Domain Names in Applications (IDNA)
e7233af
protocol as specified in RFC 5891 <http://tools.ietf.org/html/rfc5891>.  This
707eb17
version of the protocol is often referred to as "IDNA2008" and can produce
e7233af
different results from the earlier standard from 2003.
e7233af
e7233af
The library is also intended to act as a suitable drop-in replacement for the
707eb17
"encodings.idna" module that comes with the Python standard library but
707eb17
currently only supports the older 2003 specification.
e7233af
e7233af
%prep
Jeremy Cline 7e3e756
%autosetup -p1 -n %{srcname}-%{version}
e7233af
# Remove bundled egg-info
e7233af
rm -rf %{srcname}.egg-info
e7233af
43244f1
%generate_buildrequires
43244f1
%pyproject_buildrequires
43244f1
e7233af
%build
43244f1
%pyproject_wheel
e7233af
e7233af
%install
43244f1
%pyproject_install
43244f1
%pyproject_save_files %{srcname}
e7233af
e7233af
%check
43244f1
%pytest
e7233af
43244f1
%files -n python3-%{srcname} -f %pyproject_files
a8954f8
%license LICENSE.md
7b798b5
%doc README.rst
e7233af
e7233af
%changelog
30db7c3
%autochangelog