public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-zlib-rs] epel10.2: Don’t mark README.md as documentation
Date: Mon, 22 Jun 2026 05:40:17 GMT	[thread overview]
Message-ID: <178210681736.1.2554069911837357568.rpms-rust-zlib-rs-f985fced4608@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rust-zlib-rs
            Branch : epel10.2
            Commit : f985fced4608a5a03ee0209f8a78640177d25862
            Author : Benjamin A. Beasley <code@musicinmybrain.net>
            Date   : 2026-06-21T21:20:22+01:00
            Stats  : +8/-3 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/rust-zlib-rs/c/f985fced4608a5a03ee0209f8a78640177d25862?branch=epel10.2

            Log:
            Don’t mark README.md as documentation

It is used when compiling the crate as a Rust doc string, so it must be
present

---
diff --git a/rust-zlib-rs.spec b/rust-zlib-rs.spec
index d33150f..572ee36 100644
--- a/rust-zlib-rs.spec
+++ b/rust-zlib-rs.spec
@@ -40,7 +40,6 @@ use the "%{crate}" crate.
 
 %files          devel
 %license %{crate_instdir}/LICENSE
-%doc %{crate_instdir}/README.md
 %{crate_instdir}/
 
 %package     -n %{name}+default-devel

diff --git a/rust2rpm.toml b/rust2rpm.toml
index 81b04a7..c41efd4 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -12,4 +12,10 @@ necessary quickcheck dev-dependency.\
     """,
     "Keep the __internal-api feature because libz-rs-sys uses it.",
 ]
-
+doc-files.exclude = [
+    # This file is included as a documentation string in the library, so
+    # compilation fails if it is not present. It therefore must not be marked
+    # as documentation, because packages should be equally useful when their
+    # documentation is not installed.
+    "README.md",
+]

diff --git a/zlib-rs-fix-metadata.diff b/zlib-rs-fix-metadata.diff
index 5bfcbfa..dee9d6e 100644
--- a/zlib-rs-fix-metadata.diff
+++ b/zlib-rs-fix-metadata.diff
@@ -1,5 +1,5 @@
 --- zlib-rs-0.6.4/Cargo.toml	2006-07-24T01:21:28+00:00
-+++ zlib-rs-0.6.4/Cargo.toml	2026-06-21T20:08:09.341159+00:00
++++ zlib-rs-0.6.4/Cargo.toml	2026-06-21T20:19:31.783300+00:00
 @@ -28,11 +28,7 @@
  repository = "https://github.com/trifectatechfoundation/zlib-rs"
  

                 reply	other threads:[~2026-06-22  5: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=178210681736.1.2554069911837357568.rpms-rust-zlib-rs-f985fced4608@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --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