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-utf8_iter] f45: Add a programmatic guard against future introduction of CC0-1.0 test code
Date: Mon, 23 Nov 2026 06:21:10 GMT	[thread overview]
Message-ID: <179541487029.1.14509226964109916398.rpms-rust-utf8_iter-16167a707966@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rust-utf8_iter
Branch : f45
Commit : 16167a7079661e01da8e96b3d6ea88b0669d9762
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-10-31T10:13:51+00:00
Stats  : +22/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-utf8_iter/c/16167a7079661e01da8e96b3d6ea88b0669d9762?branch=f45

Log:
Add a programmatic guard against future introduction of CC0-1.0 test code

---
diff --git a/rust-utf8_iter.spec b/rust-utf8_iter.spec
index b5be131..154bd5b 100644
--- a/rust-utf8_iter.spec
+++ b/rust-utf8_iter.spec
@@ -63,6 +63,14 @@ use the "default" feature of the "%{crate}" crate.
 
 %prep
 %autosetup -n %{crate}-%{version} -p1
+if grep -ErinI 'cc0|creative.commons' \
+    --exclude=COPYRIGHT --exclude=CONTRIBUTING.md . >/dev/null
+then
+   cat 1>&2 <<'EOF'
+Possible CC0-1.0-licensed test code detected; this must be removed!
+EOF
+  exit 1
+fi
 %cargo_prep
 
 %generate_buildrequires

diff --git a/rust2rpm.toml b/rust2rpm.toml
index 6ba8a99..97ca594 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -13,3 +13,17 @@ preamble = """
 # For now, there are no such sections in this particular crate, so we may use
 # the unmodified crate archive.
 """
+
+[scripts]
+prep.pre = [
+    """\
+if grep -ErinI 'cc0|creative.commons' \\
+    --exclude=COPYRIGHT --exclude=CONTRIBUTING.md . >/dev/null
+then
+   cat 1>&2 <<'EOF'
+Possible CC0-1.0-licensed test code detected; this must be removed!
+EOF
+  exit 1
+fi\
+""",
+]

                 reply	other threads:[~2026-11-23  6:21 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=179541487029.1.14509226964109916398.rpms-rust-utf8_iter-16167a707966@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