Blame SPECS/python3.11-idna.spec

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