public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-zlib-rs] f44: Don’t mark README.md as documentation
@ 2026-06-22  5:40 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-06-22  5:40 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/rust-zlib-rs
            Branch : f44
            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=f44

            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"
  

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-22  5:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-22  5:40 [rpms/rust-zlib-rs] f44: Don’t mark README.md as documentation Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox