diff --git a/1000-use-setuptools-to-build-dnspython.patch b/1000-use-setuptools-to-build-dnspython.patch index c518d47..2b4f3d6 100644 --- a/1000-use-setuptools-to-build-dnspython.patch +++ b/1000-use-setuptools-to-build-dnspython.patch @@ -34,7 +34,7 @@ diff -Naur dnspython-2.6.1/setup.py dnspython-2.6.1-mod/setup.py +# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +import sys -+from setuptools import setup ++from setuptools import setup, find_packages + + +try: @@ -53,7 +53,7 @@ diff -Naur dnspython-2.6.1/setup.py dnspython-2.6.1-mod/setup.py +kwargs = { + "name": "dnspython", + "version": "@VERSION@", -+ "packages": ["dns", "dns.rdtypes", "dns.dnssecalgs", "dns.quic"], ++ "packages": find_packages(exclude=["tests"]), + "ext_modules": ext_modules if compile_cython else None, + "zip_safe": False if compile_cython else None, +} diff --git a/python-dns.spec b/python-dns.spec index 37032ac..20a98fe 100644 --- a/python-dns.spec +++ b/python-dns.spec @@ -12,7 +12,7 @@ Name: python-dns Version: 2.6.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: DNS toolkit for Python # The entire package is licensed with both licenses, see LICENSE file @@ -95,6 +95,10 @@ pytest %endif %changelog +* Tue Aug 20 2024 Rafael Jeffman - 2.6.1-3 +- Ensure dns.rdtypes subpackages are available + Related: RHEL-32663 + * Mon Aug 19 2024 Rafael Jeffman - 2.6.1-2 - Add missing files due to build change from hatchling to setuptools Related: RHEL-32663