Blame SPECS/python3.11-idna.spec

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