Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# fixme: should be defined in base system side | ||
%define python3_sitearch %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))") | ||
|
||
Name: python3-idna | ||
Summary: Internationalized Domain Names in Applications | ||
Version: 2.9 | ||
Release: 1 | ||
License: BSD | ||
URL: https://pypi.org/project/idna/ | ||
BuildArch: noarch | ||
Source0: %{name}-%{version}.tar.bz2 | ||
Requires: python3-base | ||
BuildRequires: python3-setuptools | ||
|
||
%description | ||
Support for the Internationalised Domain Names in Applications (IDNA) protocol as specified in RFC 5891. This is the latest version of the protocol and is sometimes referred to as “IDNA 2008”. | ||
|
||
This library also provides support for Unicode Technical Standard 46, Unicode IDNA Compatibility Processing. | ||
|
||
This acts as a suitable replacement for the “encodings.idna” module that comes with the Python standard library, but only supports the old, deprecated IDNA specification (RFC 3490). | ||
|
||
%prep | ||
%setup -q -n %{name}-%{version}/idna | ||
|
||
%build | ||
python3 ./setup.py build | ||
|
||
%install | ||
rm -rf %{buildroot} | ||
python3 ./setup.py install --skip-build --root %{buildroot} | ||
|
||
%files | ||
%defattr(-,root,root,-) | ||
%{python3_sitearch}/idna | ||
%{python3_sitearch}/idna-*.egg-info |