From 619a74dcee4d26669c23a7696d82a8ffb7308b57 Mon Sep 17 00:00:00 2001 From: James Antill Date: Mon, 8 Aug 2022 13:59:33 -0400 Subject: [PATCH] Import rpm: 011aaa788b2ceee083685acf232b6f9d4b1ca3b3 --- .fmf/version | 1 + .gitignore | 1 + gating.yaml | 6 +++ plans.fmf | 11 +++++ python-idna.spec | 111 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 6 files changed, 131 insertions(+) create mode 100644 .fmf/version create mode 100644 .gitignore create mode 100644 gating.yaml create mode 100644 plans.fmf create mode 100644 python-idna.spec create mode 100644 sources 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 new file mode 100644 index 0000000..4726fc0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/idna-2.5.tar.gz diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..648918d --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-9 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} 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..b2180e5 --- /dev/null +++ b/python-idna.spec @@ -0,0 +1,111 @@ +%bcond_without python3 +%global srcname idna + +Name: python-%{srcname} +Version: 2.5 +Release: 7%{?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: python2-devel +BuildRequires: python2-setuptools +%if %{with python3} +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +%endif # with python3 + +%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 python2-%{srcname} +Summary: Internationalized Domain Names in Applications (IDNA) +%{?python_provide:%python_provide python2-%{srcname}} + +%description -n python2-%{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. + +%if %{with python3} +%package -n python%{python3_pkgversion}-%{srcname} +Summary: Internationalized Domain Names in Applications (IDNA) +%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} + +%description -n python%{python3_pkgversion}-%{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. +%endif # with python3 + +%prep +%setup -q -n %{srcname}-%{version} +# Remove bundled egg-info +rm -rf %{srcname}.egg-info + +%build +%py2_build + +%if %{with python3} +%py3_build +%endif # with python3 + +%install +%if %{with python3} +%py3_install +%endif # with python3 + +%py2_install + +%check +%{__python2} setup.py test + +%if %{with python3} +%{__python3} setup.py test +%endif # with python3 + + +%files -n python2-%{srcname} +%license LICENSE.rst +%doc README.rst HISTORY.rst +%{python2_sitelib}/%{srcname} +%{python2_sitelib}/%{srcname}-%{version}-py%{python2_version}.egg-info + +%if %{with python3} +%files -n python%{python3_pkgversion}-%{srcname} +%license LICENSE.rst +%doc README.rst HISTORY.rst +%{python3_sitelib}/%{srcname} +%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info +%endif # with python3 + +%changelog +* Thu Apr 25 2019 Tomas Orsava - 2.5-7 +- Bumping due to problems with modular RPM upgrade path +- Resolves: rhbz#1695587 + +* Tue Jul 31 2018 Lumír Balhar - 2.5-6 +- Switch python3 coditions to bcond + +* Mon Jul 16 2018 Lumír Balhar - 2.5-5 +- First version for python27 module diff --git a/sources b/sources new file mode 100644 index 0000000..9b3d226 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA1 (idna-2.5.tar.gz) = 499531b72bf0440ded6ce7f079a1f979270ae2d0