|
|
|
@ -3,17 +3,15 @@
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
%bcond_with trio
|
|
|
|
|
%bcond_with curio
|
|
|
|
|
%bcond_with doh
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without trio
|
|
|
|
|
%bcond_without curio
|
|
|
|
|
%bcond_without doh
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: python-dns
|
|
|
|
|
Version: 2.3.0
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Version: 2.5.0
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: DNS toolkit for Python
|
|
|
|
|
|
|
|
|
|
# The entire package is licensed with both licenses, see LICENSE file
|
|
|
|
@ -21,6 +19,7 @@ License: ISC
|
|
|
|
|
URL: http://www.dnspython.org
|
|
|
|
|
|
|
|
|
|
Source0: https://github.com/rthalley/%{pypi_name}/archive/v%{version}%{rctag}/%{pypi_name}-%{version}%{rctag}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
@ -41,17 +40,24 @@ manipulation of DNS zones, messages, names, and records.
|
|
|
|
|
%description %_description
|
|
|
|
|
%package -n python3-dns
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
%if ! 0%{?rhel}
|
|
|
|
|
Obsoletes: python3-dns+curio < 2.3.0-6
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description -n python3-dns %_description
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%pyproject_buildrequires -r -x dnssec -x idna %{?with_trio:-x trio} %{?with_curio:-x curio} %{?with_doh:-x doh}
|
|
|
|
|
%pyproject_buildrequires -r -x dnssec -x idna %{?with_trio:-x trio} %{?with_doh:-x doh}
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1 -n %{pypi_name}-%{version}%{rctag}
|
|
|
|
|
# strip exec permissions so that we don't pick up dependencies from docs
|
|
|
|
|
find examples -type f | xargs chmod a-x
|
|
|
|
|
|
|
|
|
|
# Allow newer cryptography and requests-toolbelt
|
|
|
|
|
sed -i 's/cryptography = {version=">=2.6,<40.0"/cryptography = {version=">=2.6,<42.0"/' pyproject.toml
|
|
|
|
|
sed -i 's/requests-toolbelt = {version=">=0.9.1,<0.11.0"/requests-toolbelt = {version=">=0.9.1,<=1.0.0"/' pyproject.toml
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
@ -67,7 +73,6 @@ export OPENSSL_ENABLE_SHA1_SIGNATURES=yes
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md examples
|
|
|
|
|
%pycached %exclude %{python3_sitelib}/dns/_trio_backend.py
|
|
|
|
|
%pycached %exclude %{python3_sitelib}/dns/_curio_backend.py
|
|
|
|
|
|
|
|
|
|
%pyproject_extras_subpkg -n python3-dns dnssec idna
|
|
|
|
|
|
|
|
|
@ -80,12 +85,35 @@ export OPENSSL_ENABLE_SHA1_SIGNATURES=yes
|
|
|
|
|
%pycached %{python3_sitelib}/dns/_trio_backend.py
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with curio}
|
|
|
|
|
%pyproject_extras_subpkg -n python3-dns curio
|
|
|
|
|
%pycached %{python3_sitelib}/dns/_curio_backend.py
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 20 2024 Lumír Balhar <lbalhar@redhat.com> - 2.5.0-1
|
|
|
|
|
- Update to 2.5.0 (rhbz#2257079)
|
|
|
|
|
|
|
|
|
|
* Wed Nov 08 2023 Carl George <carlwgeorge@fedoraproject.org> - 2.4.2-2
|
|
|
|
|
- Relax upper bound on trio dependency
|
|
|
|
|
|
|
|
|
|
* Thu Aug 10 2023 Lumír Balhar <lbalhar@redhat.com> - 2.4.2-1
|
|
|
|
|
- Update to 2.4.2 (rhbz#2230509)
|
|
|
|
|
|
|
|
|
|
* Mon Jul 31 2023 Lumír Balhar <lbalhar@redhat.com> - 2.4.1-1
|
|
|
|
|
- Update to 2.4.1 (rhbz#2219703)
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jul 03 2023 Python Maint <python-maint@redhat.com> - 2.3.0-6
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 2.3.0-5
|
|
|
|
|
- Bootstrap for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Wed Jun 14 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 2.3.0-4
|
|
|
|
|
- Fix FTBFS by allowing newer versions of cryptography and requests-toolbelt
|
|
|
|
|
- Fixes: rhbz#2214971
|
|
|
|
|
|
|
|
|
|
* Wed Mar 8 2023 Rafael Jeffman <rjeffman@redhat.com> - 2.3.0-3
|
|
|
|
|
- Migrated to SPDX license
|
|
|
|
|
|
|
|
|
|