Wrap larger sections in ?python_extras_subpkg blocks
This commit is contained in:
parent
57d84944fe
commit
e09fe75b9a
@ -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 <cheimes@redhat.com> - 2.1.0-3
|
||||
- Add bconds for extras require trio, curio, and doh
|
||||
|
Loading…
Reference in New Issue
Block a user