Blame SPECS/python3.11-idna.spec

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