diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..91348f5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/idna-3.4.tar.gz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/python3.11-idna.spec b/python3.11-idna.spec new file mode 100644 index 0000000..997aef2 --- /dev/null +++ b/python3.11-idna.spec @@ -0,0 +1,70 @@ +%global __python3 /usr/bin/python3.11 +%global python3_pkgversion 3.11 + +%global srcname idna + +Name: python%{python3_pkgversion}-%{srcname} +Version: 3.4 +Release: 1%{?dist} +Summary: Internationalized Domain Names in Applications (IDNA) + +License: BSD and Python and Unicode +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}-rpm-macros +BuildRequires: python%{python3_pkgversion}-setuptools + +%description +A library to support the Internationalised Domain Names in Applications (IDNA) +protocol as specified in RFC 5891 . 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 + +# setuptools currently does not support dynamic version, +# hence we set it statically in pyproject.toml +sed -i 's/dynamic.*/version=\"%{version}\"/g' pyproject.toml + + +%build +%py3_build + +%install +%py3_install + +%check +%{__python3} -m unittest + + +%files +%license LICENSE.md +%doc README.rst HISTORY.rst +%{python3_sitelib}/%{srcname} +%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info + +%changelog +* Fri Oct 21 2022 Charalampos Stratakis - 3.4-1 +- Initial package +- Fedora contributions by: + Charalampos Stratakis + Dennis Gilmore + Iryna Shcherbina + Jeremy Cline + Lumir Balhar + Miro HronĨok + Orion Poplawski + Paul Wouters + Robert Kuska + Tom Prince diff --git a/sources b/sources new file mode 100644 index 0000000..6330f8e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (idna-3.4.tar.gz) = 4060a9304c9bac04efdd0b97ec8f5aeb7e17417e767bf51c5dfc26605edad25ab67456cf6f6a3c5a9f32b8247e46f6343edfd8a6ffbcd6d1075c71e66d089d6a