diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/.gitignore b/.gitignore index e69de29..fe9a770 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,21 @@ +/idna-1.0.tar.gz +/idna-2.0.tar.gz +/idna-2.1.tar.gz +/idna-2.2.tar.gz +/idna-2.3.tar.gz +/idna-2.4.tar.gz +/idna-2.5.tar.gz +/idna-2.7.tar.gz +/idna-2.8.tar.gz +/idna-2.9.tar.gz +/idna-2.10.tar.gz +/idna-3.0.tar.gz +/idna-3.1.tar.gz +/idna-3.2.tar.gz +/idna-3.3.tar.gz +/idna-3.4.tar.gz +/idna-3.6.tar.gz +/idna-3.7.tar.gz +/idna-3.8.tar.gz +/idna-3.9.tar.gz +/idna-3.10.tar.gz diff --git a/changelog b/changelog new file mode 100644 index 0000000..ba9b4ca --- /dev/null +++ b/changelog @@ -0,0 +1,155 @@ +* Fri Jan 26 2024 Fedora Release Engineering - 3.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 3.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Tue Nov 28 2023 Lumír Balhar - 3.6-1 +- Update to 3.6 (rhbz#2251399) + +* Tue Aug 08 2023 Karolina Surma - 3.4-5 +- Update the package's license + +* Fri Jul 21 2023 Fedora Release Engineering - 3.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jun 13 2023 Python Maint - 3.4-3 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 3.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Sep 15 2022 Lumír Balhar - 3.4-1 +- Update to 3.4 +Resolves: rhbz#2126582 + +* Fri Jul 22 2022 Fedora Release Engineering - 3.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 3.3-3 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 3.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Oct 14 2021 Lumír Balhar - 3.3-1 +- Update to 3.3 +Resolves: rhbz#2013470 + +* Tue Aug 03 2021 Lumír Balhar - 3.2-1 +- Update to 3.2 +Resolves: rhbz#1965774 + +* Fri Jul 23 2021 Fedora Release Engineering - 2.10-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jun 02 2021 Python Maint - 2.10-4 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 2.10-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 2.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jul 07 2020 Lumír Balhar - 2.10-1 +- Update to 2.10 (#1851653) + +* Fri May 22 2020 Miro Hrončok - 2.9-2 +- Rebuilt for Python 3.9 + +* Tue May 05 2020 Lumír Balhar - 2.9-1 +- Update to 2.9 (#1803654) + +* Thu Jan 30 2020 Fedora Release Engineering - 2.8-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sun Nov 24 2019 Miro Hrončok - 2.8-5 +- Subpackage python2-idna has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Thu Oct 03 2019 Miro Hrončok - 2.8-4 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Thu Aug 15 2019 Miro Hrončok - 2.8-3 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 2.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue May 28 2019 Jeremy Cline - 2.8-1 +- Update to v2.8 +- Drop python version conditionals + +* Sat Feb 02 2019 Fedora Release Engineering - 2.7-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 2.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Jun 14 2018 Miro Hrončok - 2.7-2 +- Rebuilt for Python 3.7 + +* Tue Jun 12 2018 Jeremy Cline - 2.7-1 +- Update to v2.7 (rhbz 1589803) + +* Fri Feb 09 2018 Fedora Release Engineering - 2.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Jan 19 2018 Iryna Shcherbina - 2.5-3 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Thu Jul 27 2017 Fedora Release Engineering - 2.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Tue Mar 07 2017 Jeremy Cline - 2.5-1 +- Update to version 2.5 + +* Wed Mar 01 2017 Jeremy Cline - 2.4-1 +- Update to version 2.4 + +* Tue Feb 28 2017 Paul Wouters - 2.3-1 +- Resolves: rhbz#1427499 Update to 2.3 for IDNAError bugfix and memory improvement + +* Thu Feb 09 2017 Jeremy Cline - 2.2-1 +- Update to version 2.2 (#1406757) + +* Fri Dec 09 2016 Charalampos Stratakis - 2.1-3 +- Rebuild for Python 3.6 + +* Mon Nov 28 2016 Orion Poplawski - 2.1-2 +- Ship python2-idna +- Enable python3 for EPEL +- Modernize spec + +* Mon Oct 17 2016 tom.prince@ualberta.net - 2.1-1 +- Bump version. + +* Tue Jul 19 2016 Fedora Release Engineering - 2.0-4 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Nov 04 2015 Robert Kuska - 2.0-2 +- Rebuilt for Python3.5 rebuild + +* Thu Aug 13 2015 Paul Wouters - 2.0-1 +- Update to 2.0 which is required by python-cryptography + +* Thu Jun 18 2015 Fedora Release Engineering - 1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Dec 31 2014 tom.prince@ualberta.net - 1.0-1 +- Bump version. + +* Mon Oct 27 2014 tom.prince@ualberta.net - 0.8-3 +- Update licences. + +* Sat Jul 12 2014 tom.prince@ualberta.net - 0.8-2 +- Be more specfic about .egg-info directories. +- Use python2-devel + +* Sat Jul 12 2014 tom.prince@ualberta.net - 0.8-1 +- Initial package. diff --git a/plans.fmf b/plans.fmf new file mode 100644 index 0000000..f395040 --- /dev/null +++ b/plans.fmf @@ -0,0 +1,11 @@ +discover: + - name: Smoke-tests + how: shell + tests: + - name: python-import-test + test: python3 -c 'import idna' + require: + - python3-idna + duration: 1m +execute: + how: tmt diff --git a/python-idna.spec b/python-idna.spec new file mode 100644 index 0000000..a9e7613 --- /dev/null +++ b/python-idna.spec @@ -0,0 +1,63 @@ +%global srcname idna + +Name: python-%{srcname} +Version: 3.10 +Release: %autorelease +Summary: Internationalized Domain Names in Applications (IDNA) + +License: BSD-3-Clause +URL: https://github.com/kjd/idna +Source0: https://pypi.io/packages/source/i/%{srcname}/%{srcname}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(pytest) + +%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. + +%package -n python3-%{srcname} +Summary: Internationalized Domain Names in Applications (IDNA) +%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} + +%description -n python3-%{srcname} +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 + +%generate_buildrequires +%pyproject_buildrequires + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files %{srcname} + +%check +%pytest + +%files -n python3-%{srcname} -f %pyproject_files +%license LICENSE.md +%doc README.rst + +%changelog +%autochangelog diff --git a/rpminspect.yaml b/rpminspect.yaml new file mode 100644 index 0000000..b3f80c0 --- /dev/null +++ b/rpminspect.yaml @@ -0,0 +1,5 @@ +# completely disabled inspections: +inspections: + # we know about RIGHT-TO-LEFT OVERRIDE in tests/IdnaTestV2.txt + # (fine tuning of this inspection does not seem to work) + unicode: off diff --git a/sources b/sources new file mode 100644 index 0000000..71847fc --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (idna-3.10.tar.gz) = bdc00fb42c48a34ec3df91b0592fe41785061f891a252ce82f168d99089a52e8e5bc7a823794f61e7915c0f691d911ed8b3bf7aecf3e2aeb3fc85da4ef35f47e