From e09fe75b9a8080a68825f1ff6f07b3f45d9596b8 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Fri, 12 Mar 2021 07:54:13 +0100 Subject: [PATCH] Wrap larger sections in ?python_extras_subpkg blocks --- python-dns.spec | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/python-dns.spec b/python-dns.spec index 1ebafbc..4d56328 100644 --- a/python-dns.spec +++ b/python-dns.spec @@ -83,31 +83,33 @@ pytest -k "not test_override" -k "not testCanonicalNameDangling" %files -n python3-%{py_package_name} %license LICENSE %doc README.md examples -%{?python_extras_subpkg:%pycached %exclude %{python3_sitelib}/dns/_trio_backend.py} -%{?python_extras_subpkg:%pycached %exclude %{python3_sitelib}/dns/_curio_backend.py} +%{?python_extras_subpkg: +%pycached %exclude %{python3_sitelib}/dns/_trio_backend.py +%pycached %exclude %{python3_sitelib}/dns/_curio_backend.py +} %{python3_sitelib}/%{py_package_name} %{python3_sitelib}/%{pypi_name}-*.egg-info -%{?python_extras_subpkg:%python_extras_subpkg -n python3-dns -i %{python3_sitelib}/*.egg-info dnssec idna} +%{?python_extras_subpkg: +%python_extras_subpkg -n python3-dns -i %{python3_sitelib}/*.egg-info dnssec idna %if %{with doh} -%{?python_extras_subpkg:%python_extras_subpkg -n python3-dns -i %{python3_sitelib}/*.egg-info doh} +%python_extras_subpkg -n python3-dns -i %{python3_sitelib}/*.egg-info doh %endif %if %{with trio} -%{?python_extras_subpkg: %python_extras_subpkg -n python3-dns -i %{python3_sitelib}/*.egg-info trio %pycached %{python3_sitelib}/dns/_trio_backend.py -} %endif %if %{with curio} -%{?python_extras_subpkg: %python_extras_subpkg -n python3-dns -i %{python3_sitelib}/*.egg-info curio %pycached %{python3_sitelib}/dns/_curio_backend.py -} %endif +# end of python_extras_subpkg +} + %changelog * Tue Mar 09 2021 Christian Heimes - 2.1.0-3 - Add bconds for extras require trio, curio, and doh