public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-ruamel-yaml] rawhide: Make ruamel-yaml-clib optional
@ 2026-10-09 13:40 Yaakov Selkowitz
0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-10-09 13:40 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-ruamel-yaml
Branch : rawhide
Commit : 8f7256f56832c73dde6746f595abe2c60ea7e04a
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2026-10-08T22:09:09-04:00
Stats : +9/-5 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-ruamel-yaml/c/8f7256f56832c73dde6746f595abe2c60ea7e04a?branch=rawhide
Log:
Make ruamel-yaml-clib optional
As of 0.19.1, ruamel-yaml includes a built-in implementation and not
require ruamel-yaml-clib.
https://github.com/fedora-eln/eln/issues/568
---
diff --git a/python-ruamel-yaml.spec b/python-ruamel-yaml.spec
index 93c571e..5b0211d 100644
--- a/python-ruamel-yaml.spec
+++ b/python-ruamel-yaml.spec
@@ -1,5 +1,6 @@
# Breaks the circular dependency with ruamel.yaml.clib.
-%bcond_with bootstrap
+%bcond bootstrap 0
+%bcond oldlibyaml %[%{without bootstrap} && %{defined fedora}]
Name: python-ruamel-yaml
Version: 0.19.1
@@ -28,10 +29,11 @@ BuildRequires: python3-pytest
%py_provides python3-ruamel.yaml
-%if !%{with bootstrap}
+%if %{with oldlibyaml}
# ruamel.yaml.clibz is not available in Fedora (and probably never will
-# be), so require the old clib backend
-Requires: python3-ruamel-yaml+oldlibyaml = %{version}-%{release}
+# be), so recommend the old clib backend. However, no additional backend
+# is required, as a pure Python backend is builtin.
+Recommends: python3-ruamel-yaml+oldlibyaml
%endif
%description -n python3-ruamel-yaml %{_description}
@@ -40,7 +42,7 @@ Requires: python3-ruamel-yaml+oldlibyaml = %{version}-%{release}
%autosetup -n ruamel.yaml-%{version}
%generate_buildrequires
-%pyproject_buildrequires %{!?with_bootstrap:-x oldlibyaml}
+%pyproject_buildrequires %{?with_oldlibyaml:-x oldlibyaml}
%build
%pyproject_wheel
@@ -62,7 +64,9 @@ k="${k-}${k+ and }not test_dump_cyaml_1_2"
%files -n python3-ruamel-yaml -f %{pyproject_files}
%doc README.md
+%if %{with oldlibyaml}
%pyproject_extras_subpkg -n python3-ruamel-yaml oldlibyaml
+%endif
%changelog
%autochangelog
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-09 13:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-09 13:40 [rpms/python-ruamel-yaml] rawhide: Make ruamel-yaml-clib optional Yaakov Selkowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox