Blame SPECS/python3.11-idna.spec

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