public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-rend] f43: Fix CRNL newlines in installed sources
@ 2026-07-03 18:14 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-07-03 18:14 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-rend
Branch : f43
Commit : f4bdffe8d6911c2cb76047924744115737517051
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-07-03T07:12:15+01:00
Stats  : +14/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-rend/c/f4bdffe8d6911c2cb76047924744115737517051?branch=f43

Log:
Fix CRNL newlines in installed sources

---
diff --git a/rust-rend.spec b/rust-rend.spec
index fd398c0..779c9f9 100644
--- a/rust-rend.spec
+++ b/rust-rend.spec
@@ -14,6 +14,7 @@ URL:            https://crates.io/crates/rend
 Source:         %{crates_source}
 
 BuildRequires:  cargo-rpm-macros >= 24
+BuildRequires:  dos2unix
 
 %global _description %{expand:
 Cross-platform, endian-aware primitives for Rust.}
@@ -84,6 +85,8 @@ use the "zerocopy-0_8" feature of the "%{crate}" crate.
 
 %prep
 %autosetup -n %{crate}-%{version} -p1
+# The crate has a mixture of newline styles.
+find . -type f -exec dos2unix --keepdate '{}' '+'
 %cargo_prep
 
 %generate_buildrequires

diff --git a/rust2rpm.toml b/rust2rpm.toml
index 5db7c26..460027d 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -6,3 +6,14 @@ doc-files.exclude = [
     # documentation is not installed.
     "README.md",
 ]
+
+[requires]
+build = [
+    "dos2unix",
+]
+
+[scripts.prep]
+pre = [
+    "# The crate has a mixture of newline styles.",
+    "find . -type f -exec dos2unix --keepdate '{}' '+'",
+]

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

only message in thread, other threads:[~2026-07-03 18:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-03 18:14 [rpms/rust-rend] f43: Fix CRNL newlines in installed sources 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