2015-01-01 01:37:07 +00:00
|
|
|
%global srcname idna
|
|
|
|
|
|
|
|
Name: python-%{srcname}
|
2024-04-11 07:05:47 +00:00
|
|
|
Version: 3.7
|
2024-01-29 14:36:52 +00:00
|
|
|
Release: %autorelease
|
2015-01-01 01:37:07 +00:00
|
|
|
Summary: Internationalized Domain Names in Applications (IDNA)
|
|
|
|
|
2023-08-08 12:45:05 +00:00
|
|
|
License: BSD-3-Clause
|
2015-01-01 01:37:07 +00:00
|
|
|
URL: https://github.com/kjd/idna
|
2016-10-18 04:02:52 +00:00
|
|
|
Source0: https://pypi.io/packages/source/i/%{srcname}/%{srcname}-%{version}.tar.gz
|
2015-01-01 01:37:07 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2019-05-28 16:43:55 +00:00
|
|
|
BuildRequires: python3-devel
|
2022-09-15 08:37:17 +00:00
|
|
|
BuildRequires: python3dist(pytest)
|
2015-01-01 01:37:07 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
A library to support the Internationalised Domain Names in Applications (IDNA)
|
|
|
|
protocol as specified in RFC 5891 <http://tools.ietf.org/html/rfc5891>. This
|
|
|
|
version of the protocol is often referred to as "IDNA2008" and can produce
|
|
|
|
different results from the earlier standard from 2003.
|
|
|
|
|
|
|
|
The library is also intended to act as a suitable drop-in replacement for the
|
|
|
|
"encodings.idna" module that comes with the Python standard library but
|
2015-01-01 04:01:03 +00:00
|
|
|
currently only supports the older 2003 specification.
|
2015-01-01 01:37:07 +00:00
|
|
|
|
2019-05-28 16:43:55 +00:00
|
|
|
%package -n python3-%{srcname}
|
2015-01-01 01:37:07 +00:00
|
|
|
Summary: Internationalized Domain Names in Applications (IDNA)
|
2016-12-04 21:00:36 +00:00
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
2015-01-01 01:37:07 +00:00
|
|
|
|
2019-05-28 16:43:55 +00:00
|
|
|
%description -n python3-%{srcname}
|
2015-01-01 01:37:07 +00:00
|
|
|
A library to support the Internationalised Domain Names in Applications (IDNA)
|
|
|
|
protocol as specified in RFC 5891 <http://tools.ietf.org/html/rfc5891>. This
|
2015-01-01 04:01:03 +00:00
|
|
|
version of the protocol is often referred to as "IDNA2008" and can produce
|
2015-01-01 01:37:07 +00:00
|
|
|
different results from the earlier standard from 2003.
|
|
|
|
|
|
|
|
The library is also intended to act as a suitable drop-in replacement for the
|
2015-01-01 04:01:03 +00:00
|
|
|
"encodings.idna" module that comes with the Python standard library but
|
|
|
|
currently only supports the older 2003 specification.
|
2015-01-01 01:37:07 +00:00
|
|
|
|
|
|
|
%prep
|
2019-05-28 16:43:55 +00:00
|
|
|
%autosetup -p1 -n %{srcname}-%{version}
|
2015-01-01 01:37:07 +00:00
|
|
|
# Remove bundled egg-info
|
|
|
|
rm -rf %{srcname}.egg-info
|
|
|
|
|
2022-09-15 08:37:17 +00:00
|
|
|
%generate_buildrequires
|
|
|
|
%pyproject_buildrequires
|
|
|
|
|
2015-01-01 01:37:07 +00:00
|
|
|
%build
|
2022-09-15 08:37:17 +00:00
|
|
|
%pyproject_wheel
|
2015-01-01 01:37:07 +00:00
|
|
|
|
|
|
|
%install
|
2022-09-15 08:37:17 +00:00
|
|
|
%pyproject_install
|
|
|
|
%pyproject_save_files %{srcname}
|
2015-01-01 01:37:07 +00:00
|
|
|
|
|
|
|
%check
|
2022-09-15 08:37:17 +00:00
|
|
|
%pytest
|
2015-01-01 01:37:07 +00:00
|
|
|
|
2022-09-15 08:37:17 +00:00
|
|
|
%files -n python3-%{srcname} -f %pyproject_files
|
2021-01-05 05:58:08 +00:00
|
|
|
%license LICENSE.md
|
2023-11-28 18:28:28 +00:00
|
|
|
%doc README.rst
|
2015-01-01 01:37:07 +00:00
|
|
|
|
|
|
|
%changelog
|
2024-01-29 14:36:52 +00:00
|
|
|
%autochangelog
|