Add missing files due to build change from hatchling to setuptools

Related: RHEL-32663

Signed-off-by: Rafael Guterres Jeffman <rjeffman@redhat.com>
This commit is contained in:
Rafael Guterres Jeffman 2024-08-19 12:11:29 -03:00
parent 7dbca3abc2
commit 7dbb003756
2 changed files with 21 additions and 9 deletions

View File

@ -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"],
+ "packages": ["dns", "dns.rdtypes", "dns.dnssecalgs", "dns.quic"],
+ "ext_modules": ext_modules if compile_cython else None,
+ "zip_safe": False if compile_cython else None,
+}

View File

@ -12,12 +12,12 @@
Name: python-dns
Version: 2.6.1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: DNS toolkit for Python
# The entire package is licensed with both licenses, see LICENSE file
License: ISC
URL: http://www.dnspython.org
URL: https://www.dnspython.org
Source0: https://github.com/rthalley/%{pypi_name}/archive/v%{version}%{rctag}/%{pypi_name}-%{version}%{rctag}.tar.gz
Patch1000: 1000-use-setuptools-to-build-dnspython.patch
@ -73,21 +73,33 @@ find examples -type f | xargs chmod a-x
%py3_install
%check
# testCanonicalNameDangling is failing with
# AssertionError: <DNS name dangling-cname.dnspython.org.> != <DNS name dangling-target.dnspython.org.>
pytest -k "not testCanonicalNameDangling"
export OPENSSL_ENABLE_SHA1_SIGNATURES=yes
pytest
%files -n python3-%{py_package_name}
%license LICENSE
%doc README.md examples
%{?python_extras_subpkg:
%pycached %exclude %{python3_sitelib}/dns/_trio_backend.py
}
%{python3_sitelib}/%{py_package_name}
%{python3_sitelib}/%{pypi_name}-*.egg-info
%python_extras_subpkg -n python3-dns -i %{python3_sitelib}/dns/__init__.py dnssec idna
%if %{with doh}
%python_extras_subpkg -n python3-dns -i %{python3_sitelib}/dns/__init__.py doh
%endif
%if %{with trio}
%python_extras_subpkg -n python3-dns -i %{python3_sitelib}/dns/__init__.py trio
%pycached %{python3_sitelib}/dns/_trio_backend.py
%endif
%changelog
* Mon Aug 16 2024 Rafael Jeffman <rjeffman@redhat.com> - 2.6.1-1
* Mon Aug 19 2024 Rafael Jeffman <rjeffman@redhat.com> - 2.6.1-2
- Add missing files due to build change from hatchling to setuptools
Related: RHEL-32663
* Fri Aug 16 2024 Rafael Jeffman <rjeffman@redhat.com> - 2.6.1-1
- Rebase to 2.6.1
Resolves: RHEL-32628, RHEL-32663