|
|
0f4bc7 |
%global __python3 /usr/bin/python3.11
|
|
|
0f4bc7 |
%global python3_pkgversion 3.11
|
|
|
0f4bc7 |
|
|
|
0f4bc7 |
%global srcname idna
|
|
|
0f4bc7 |
|
|
|
0f4bc7 |
Name: python%{python3_pkgversion}-%{srcname}
|
|
|
0f4bc7 |
Version: 3.4
|
|
|
0f4bc7 |
Release: 1%{?dist}
|
|
|
0f4bc7 |
Summary: Internationalized Domain Names in Applications (IDNA)
|
|
|
0f4bc7 |
|
|
|
0f4bc7 |
License: BSD and Python and Unicode
|
|
|
0f4bc7 |
URL: https://github.com/kjd/idna
|
|
|
0f4bc7 |
Source0: https://pypi.io/packages/source/i/%{srcname}/%{srcname}-%{version}.tar.gz
|
|
|
0f4bc7 |
BuildArch: noarch
|
|
|
0f4bc7 |
|
|
|
0f4bc7 |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
0f4bc7 |
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
|
|
0f4bc7 |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
0f4bc7 |
|
|
|
0f4bc7 |
%description
|
|
|
0f4bc7 |
A library to support the Internationalised Domain Names in Applications (IDNA)
|
|
|
0f4bc7 |
protocol as specified in RFC 5891 <http://tools.ietf.org/html/rfc5891>. This
|
|
|
0f4bc7 |
version of the protocol is often referred to as "IDNA2008" and can produce
|
|
|
0f4bc7 |
different results from the earlier standard from 2003.
|
|
|
0f4bc7 |
|
|
|
0f4bc7 |
The library is also intended to act as a suitable drop-in replacement for the
|
|
|
0f4bc7 |
"encodings.idna" module that comes with the Python standard library but
|
|
|
0f4bc7 |
currently only supports the older 2003 specification.
|
|
|
0f4bc7 |
|
|
|
0f4bc7 |
|
|
|
0f4bc7 |
%prep
|
|
|
0f4bc7 |
%autosetup -p1 -n %{srcname}-%{version}
|
|
|
0f4bc7 |
# Remove bundled egg-info
|
|
|
0f4bc7 |
rm -rf %{srcname}.egg-info
|
|
|
0f4bc7 |
|
|
|
0f4bc7 |
# setuptools currently does not support dynamic version,
|
|
|
0f4bc7 |
# hence we set it statically in pyproject.toml
|
|
|
0f4bc7 |
sed -i 's/dynamic.*/version=\"%{version}\"/g' pyproject.toml
|
|
|
0f4bc7 |
|
|
|
0f4bc7 |
|
|
|
0f4bc7 |
%build
|
|
|
0f4bc7 |
%py3_build
|
|
|
0f4bc7 |
|
|
|
0f4bc7 |
%install
|
|
|
0f4bc7 |
%py3_install
|
|
|
0f4bc7 |
|
|
|
0f4bc7 |
%check
|
|
|
0f4bc7 |
%{__python3} -m unittest
|
|
|
0f4bc7 |
|
|
|
0f4bc7 |
|
|
|
0f4bc7 |
%files
|
|
|
0f4bc7 |
%license LICENSE.md
|
|
|
0f4bc7 |
%doc README.rst HISTORY.rst
|
|
|
0f4bc7 |
%{python3_sitelib}/%{srcname}
|
|
|
0f4bc7 |
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
|
|
|
0f4bc7 |
|
|
|
0f4bc7 |
%changelog
|
|
|
0f4bc7 |
* Fri Oct 21 2022 Charalampos Stratakis <cstratak@redhat.com> - 3.4-1
|
|
|
0f4bc7 |
- Initial package
|
|
|
0f4bc7 |
- Fedora contributions by:
|
|
|
0f4bc7 |
Charalampos Stratakis <cstratak@redhat.com>
|
|
|
0f4bc7 |
Dennis Gilmore <dennis@ausil.us>
|
|
|
0f4bc7 |
Iryna Shcherbina <shcherbina.iryna@gmail.com>
|
|
|
0f4bc7 |
Jeremy Cline <jeremy@jcline.org>
|
|
|
0f4bc7 |
Lumir Balhar <lbalhar@redhat.com>
|
|
|
0f4bc7 |
Miro HronĨok <miro@hroncok.cz>
|
|
|
0f4bc7 |
Orion Poplawski <orion@cora.nwra.com>
|
|
|
0f4bc7 |
Paul Wouters <pwouters@redhat.com>
|
|
|
0f4bc7 |
Robert Kuska <rkuska@redhat.com>
|
|
|
0f4bc7 |
Tom Prince <tom.prince@ualberta.net>
|