Skip to content

Commit

Permalink
[idna] Packaging for 2.9. JB#49282
Browse files Browse the repository at this point in the history
  • Loading branch information
jusa committed Mar 26, 2020
1 parent a8dedda commit a89b2ae
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions rpm/python3-idna.spec
@@ -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

0 comments on commit a89b2ae

Please sign in to comment.