Wrap larger sections in ?python_extras_subpkg blocks

This commit is contained in:
Christian Heimes 2021-03-12 07:54:13 +01:00
parent 57d84944fe
commit e09fe75b9a

View File

@ -83,31 +83,33 @@ pytest -k "not test_override" -k "not testCanonicalNameDangling"
%files -n python3-%{py_package_name} %files -n python3-%{py_package_name}
%license LICENSE %license LICENSE
%doc README.md examples %doc README.md examples
%{?python_extras_subpkg:%pycached %exclude %{python3_sitelib}/dns/_trio_backend.py} %{?python_extras_subpkg:
%{?python_extras_subpkg:%pycached %exclude %{python3_sitelib}/dns/_curio_backend.py} %pycached %exclude %{python3_sitelib}/dns/_trio_backend.py
%pycached %exclude %{python3_sitelib}/dns/_curio_backend.py
}
%{python3_sitelib}/%{py_package_name} %{python3_sitelib}/%{py_package_name}
%{python3_sitelib}/%{pypi_name}-*.egg-info %{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} %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 %endif
%if %{with trio} %if %{with trio}
%{?python_extras_subpkg:
%python_extras_subpkg -n python3-dns -i %{python3_sitelib}/*.egg-info trio %python_extras_subpkg -n python3-dns -i %{python3_sitelib}/*.egg-info trio
%pycached %{python3_sitelib}/dns/_trio_backend.py %pycached %{python3_sitelib}/dns/_trio_backend.py
}
%endif %endif
%if %{with curio} %if %{with curio}
%{?python_extras_subpkg:
%python_extras_subpkg -n python3-dns -i %{python3_sitelib}/*.egg-info curio %python_extras_subpkg -n python3-dns -i %{python3_sitelib}/*.egg-info curio
%pycached %{python3_sitelib}/dns/_curio_backend.py %pycached %{python3_sitelib}/dns/_curio_backend.py
}
%endif %endif
# end of python_extras_subpkg
}
%changelog %changelog
* Tue Mar 09 2021 Christian Heimes <cheimes@redhat.com> - 2.1.0-3 * Tue Mar 09 2021 Christian Heimes <cheimes@redhat.com> - 2.1.0-3
- Add bconds for extras require trio, curio, and doh - Add bconds for extras require trio, curio, and doh