public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-ruamel-yaml] rawhide: Make ruamel-yaml-clib optional
Date: Fri, 09 Oct 2026 13:40:13 GMT	[thread overview]
Message-ID: <179155321304.1.17037120616908626541.rpms-python-ruamel-yaml-8f7256f56832@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-10-09 13:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179155321304.1.17037120616908626541.rpms-python-ruamel-yaml-8f7256f56832@fedoraproject.org \
    --to=yselkowi@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox