Compare commits
No commits in common. "c10-beta" and "c8-stream-3.8" have entirely different histories.
c10-beta
...
c8-stream-
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
idna-3.7.tar.gz
|
SOURCES/idna-2.8.tar.gz
|
||||||
|
1
.python-idna.metadata
Normal file
1
.python-idna.metadata
Normal file
@ -0,0 +1 @@
|
|||||||
|
c1e59def26dac74a2ec53181032df76d40368657 SOURCES/idna-2.8.tar.gz
|
@ -1,27 +1,30 @@
|
|||||||
## START: Set by rpmautospec
|
%global with_python3 1
|
||||||
## (rpmautospec version 0.6.1)
|
|
||||||
## RPMAUTOSPEC: autorelease, autochangelog
|
|
||||||
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
||||||
release_number = 2;
|
|
||||||
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
||||||
print(release_number + base_release_number - 1);
|
|
||||||
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
||||||
## END: Set by rpmautospec
|
|
||||||
|
|
||||||
%global srcname idna
|
%global srcname idna
|
||||||
|
|
||||||
|
# Prepared for Python 2 removal
|
||||||
|
%bcond_with python2
|
||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 3.7
|
Version: 2.8
|
||||||
Release: %autorelease
|
Release: 6%{?dist}
|
||||||
Summary: Internationalized Domain Names in Applications (IDNA)
|
Summary: Internationalized Domain Names in Applications (IDNA)
|
||||||
|
|
||||||
License: BSD-3-Clause
|
License: BSD and Python and Unicode
|
||||||
URL: https://github.com/kjd/idna
|
URL: https://github.com/kjd/idna
|
||||||
Source0: https://pypi.io/packages/source/i/%{srcname}/%{srcname}-%{version}.tar.gz
|
Source0: https://pypi.io/packages/source/i/%{srcname}/%{srcname}-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
# Exclude i686 arch. Due to a modularity issue it's being added to the
|
||||||
|
# x86_64 compose of CRB, but we don't want to ship it at all.
|
||||||
|
# See: https://projects.engineering.redhat.com/browse/RCM-72605
|
||||||
|
ExcludeArch: i686
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
%if %{with python2}
|
||||||
BuildRequires: python3dist(pytest)
|
BuildRequires: python2-devel
|
||||||
|
BuildRequires: python2-setuptools
|
||||||
|
%endif
|
||||||
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||||
|
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A library to support the Internationalised Domain Names in Applications (IDNA)
|
A library to support the Internationalised Domain Names in Applications (IDNA)
|
||||||
@ -33,11 +36,27 @@ 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
|
"encodings.idna" module that comes with the Python standard library but
|
||||||
currently only supports the older 2003 specification.
|
currently only supports the older 2003 specification.
|
||||||
|
|
||||||
%package -n python3-%{srcname}
|
%if %{with python2}
|
||||||
|
%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 <http://tools.ietf.org/html/rfc5891>. 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
|
||||||
|
|
||||||
|
%package -n python%{python3_pkgversion}-%{srcname}
|
||||||
Summary: Internationalized Domain Names in Applications (IDNA)
|
Summary: Internationalized Domain Names in Applications (IDNA)
|
||||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
||||||
|
|
||||||
%description -n python3-%{srcname}
|
%description -n python%{python3_pkgversion}-%{srcname}
|
||||||
A library to support the Internationalised Domain Names in Applications (IDNA)
|
A library to support the Internationalised Domain Names in Applications (IDNA)
|
||||||
protocol as specified in RFC 5891 <http://tools.ietf.org/html/rfc5891>. This
|
protocol as specified in RFC 5891 <http://tools.ietf.org/html/rfc5891>. This
|
||||||
version of the protocol is often referred to as "IDNA2008" and can produce
|
version of the protocol is often referred to as "IDNA2008" and can produce
|
||||||
@ -52,100 +71,45 @@ currently only supports the older 2003 specification.
|
|||||||
# Remove bundled egg-info
|
# Remove bundled egg-info
|
||||||
rm -rf %{srcname}.egg-info
|
rm -rf %{srcname}.egg-info
|
||||||
|
|
||||||
%generate_buildrequires
|
|
||||||
%pyproject_buildrequires
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%if %{with python2}
|
||||||
|
%py2_build
|
||||||
|
%endif
|
||||||
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%py3_install
|
||||||
%pyproject_save_files %{srcname}
|
%if %{with python2}
|
||||||
|
%py2_install
|
||||||
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
%if %{with python2}
|
||||||
|
%{__python2} setup.py test
|
||||||
|
%endif
|
||||||
|
%{__python3} setup.py test
|
||||||
|
|
||||||
%files -n python3-%{srcname} -f %pyproject_files
|
|
||||||
%license LICENSE.md
|
%if %{with python2}
|
||||||
%doc README.rst
|
%files -n python2-%{srcname}
|
||||||
|
%license LICENSE.rst
|
||||||
|
%doc README.rst HISTORY.rst
|
||||||
|
%{python2_sitelib}/%{srcname}
|
||||||
|
%{python2_sitelib}/%{srcname}-%{version}-py%{python2_version}.egg-info
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
## START: Generated by rpmautospec
|
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 2.8-6
|
||||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 3.7-2
|
- Exclude unsupported i686 arch
|
||||||
- Bump release for June 2024 mass rebuild
|
|
||||||
|
|
||||||
* Thu Apr 11 2024 Lumir Balhar <lbalhar@redhat.com> - 3.7-1
|
* Wed Nov 20 2019 Lumír Balhar <lbalhar@redhat.com> - 2.8-5
|
||||||
- Update to 3.7 (rhbz#2274439)
|
- Adjusted for Python 3.8 module in RHEL 8
|
||||||
|
|
||||||
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
||||||
|
|
||||||
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Nov 28 2023 Lumír Balhar <lbalhar@redhat.com> - 3.6-1
|
|
||||||
- Update to 3.6 (rhbz#2251399)
|
|
||||||
|
|
||||||
* Tue Aug 08 2023 Karolina Surma <ksurma@redhat.com> - 3.4-5
|
|
||||||
- Update the package's license
|
|
||||||
|
|
||||||
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.4-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 3.4-3
|
|
||||||
- Rebuilt for Python 3.12
|
|
||||||
|
|
||||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.4-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Sep 15 2022 Lumír Balhar <lbalhar@redhat.com> - 3.4-1
|
|
||||||
- Update to 3.4
|
|
||||||
Resolves: rhbz#2126582
|
|
||||||
|
|
||||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
||||||
|
|
||||||
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.3-3
|
|
||||||
- Rebuilt for Python 3.11
|
|
||||||
|
|
||||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Oct 14 2021 Lumír Balhar <lbalhar@redhat.com> - 3.3-1
|
|
||||||
- Update to 3.3
|
|
||||||
Resolves: rhbz#2013470
|
|
||||||
|
|
||||||
* Tue Aug 03 2021 Lumír Balhar <lbalhar@redhat.com> - 3.2-1
|
|
||||||
- Update to 3.2
|
|
||||||
Resolves: rhbz#1965774
|
|
||||||
|
|
||||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.10-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 2.10-4
|
|
||||||
- Rebuilt for Python 3.10
|
|
||||||
|
|
||||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.10-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.10-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jul 07 2020 Lumír Balhar <lbalhar@redhat.com> - 2.10-1
|
|
||||||
- Update to 2.10 (#1851653)
|
|
||||||
|
|
||||||
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 2.9-2
|
|
||||||
- Rebuilt for Python 3.9
|
|
||||||
|
|
||||||
* Tue May 05 2020 Lumír Balhar <lbalhar@redhat.com> - 2.9-1
|
|
||||||
- Update to 2.9 (#1803654)
|
|
||||||
|
|
||||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-6
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sun Nov 24 2019 Miro Hrončok <mhroncok@redhat.com> - 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 <mhroncok@redhat.com> - 2.8-4
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.8-4
|
||||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||||
@ -189,7 +153,7 @@ Resolves: rhbz#1965774
|
|||||||
- Update to version 2.4
|
- Update to version 2.4
|
||||||
|
|
||||||
* Tue Feb 28 2017 Paul Wouters <pwouters@redhat.com> - 2.3-1
|
* Tue Feb 28 2017 Paul Wouters <pwouters@redhat.com> - 2.3-1
|
||||||
- Resolves: rhbz#1427499 Update to 2.3 for IDNAError bugfix and memory improvement
|
- Resolves bugzilla 1427499 Update to 2.3 for IDNAError bugfix and memory improvement
|
||||||
|
|
||||||
* Thu Feb 09 2017 Jeremy Cline <jeremy@jcline.org> - 2.2-1
|
* Thu Feb 09 2017 Jeremy Cline <jeremy@jcline.org> - 2.2-1
|
||||||
- Update to version 2.2 (#1406757)
|
- Update to version 2.2 (#1406757)
|
||||||
@ -232,5 +196,3 @@ Resolves: rhbz#1965774
|
|||||||
|
|
||||||
* Sat Jul 12 2014 tom.prince@ualberta.net - 0.8-1
|
* Sat Jul 12 2014 tom.prince@ualberta.net - 0.8-1
|
||||||
- Initial package.
|
- Initial package.
|
||||||
|
|
||||||
## END: Generated by rpmautospec
|
|
Loading…
Reference in New Issue
Block a user