diff --git a/dnspython-2.3.0.tar.gz b/dnspython-2.3.0.tar.gz deleted file mode 100644 index aef403c5560cb178d46d6012b8754aa26e9326d5..0000000000000000000000000000000000000000 Binary files a/dnspython-2.3.0.tar.gz and /dev/null differ diff --git a/dnspython-2.5.0.tar.gz b/dnspython-2.5.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..27ede5920eec6988d4ce1a11b35f9f4fe77915c3 Binary files /dev/null and b/dnspython-2.5.0.tar.gz differ diff --git a/python-dns.spec b/python-dns.spec index 30d8f3dfaa163e38ecec2cd75dae67e068b54247..2b43314e7cf15f65f0af1fafb1b521b66a67d116 100644 --- a/python-dns.spec +++ b/python-dns.spec @@ -2,19 +2,19 @@ %global pypi_name dnspython %bcond_with trio -%bcond_with curio %bcond_with doh Name: python-dns -Version: 2.3.0 +Version: 2.5.0 Release: %{anolis_release}%{?dist} Summary: DNS toolkit for Python # The entire package is licensed with both licenses, see LICENSE file -License: ISC and MIT +License: ISC URL: http://www.dnspython.org Source0: https://github.com/rthalley/%{pypi_name}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz + BuildArch: noarch BuildRequires: python3-devel @@ -35,18 +35,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 %{?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} - # 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 @@ -56,15 +62,12 @@ find examples -type f | xargs chmod a-x %check export OPENSSL_ENABLE_SHA1_SIGNATURES=yes -%if 0 %pytest -%endif %files -n python3-dns -f %{pyproject_files} %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 @@ -77,12 +80,10 @@ 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 +* Wed Feb 07 2024 mgb01105731 - 2.5.0-1 +- Update to 2.5.0 + * Sat Apr 8 2023 Funda Wang - 2.3.0-1 - New version 2.3.0 - Disable test as it requires valid /etc/resolv.conf, which does not