python3.14-idna/python3.14-idna.spec
Tomáš Hrnčiar 28a1746ff5 Convert from Fedora for the Python 3.14 stack in RHEL
Fedora contributions by:
    Benson Muite <benson_muite@emailplus.org>
    Charalampos Stratakis <cstratak@redhat.com>
    Dennis Gilmore <dennis@ausil.us>
    Iryna Shcherbina <ishcherb@redhat.com>
    Jeremy Cline <jeremy@jcline.org>
    Karolina Surma <ksurma@redhat.com>
    Lumír Balhar <lbalhar@redhat.com>
    Miro Hrončok <mhroncok@redhat.com>
    Orion Poplawski <orion@cora.nwra.com>
    Paul Wouters <pwouters@redhat.com>
    Robert Kuska <rkuska@redhat.com>
    Tomas Orsava <torsava@redhat.com>
    Tom Prince <tom.prince@ualberta.net>
2025-11-28 10:36:24 +01:00

51 lines
1.4 KiB
RPMSpec

%global python3_pkgversion 3.14
%global srcname idna
Name: python%{python3_pkgversion}-%{srcname}
Version: 3.10
Release: %autorelease
Summary: Internationalized Domain Names in Applications (IDNA)
License: BSD-3-Clause
URL: https://github.com/kjd/idna
Source0: https://pypi.io/packages/source/i/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-pytest
%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
currently only supports the older 2003 specification.
%prep
%autosetup -p1 -n %{srcname}-%{version}
# Remove bundled egg-info
rm -rf %{srcname}.egg-info
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files %{srcname}
%check
%pytest
%files -n python%{python3_pkgversion}-%{srcname} -f %pyproject_files
%license LICENSE.md
%doc README.rst
%changelog
%autochangelog