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-rend] f43: Fix CRNL newlines in installed sources
Date: Fri, 03 Jul 2026 18:14:56 GMT	[thread overview]
Message-ID: <178310249670.1.8913597468094606384.rpms-rust-rend-f4bdffe8d691@fedoraproject.org> (raw)

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 '{}' '+'",
+]

                 reply	other threads:[~2026-07-03 18:14 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=178310249670.1.8913597468094606384.rpms-rust-rend-f4bdffe8d691@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