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-utf16_iter] epel10: Add a programmatic guard against future introduction of CC0-1.0 test code
Date: Mon, 23 Nov 2026 06:19:28 GMT [thread overview]
Message-ID: <179541476882.1.3503199941554770522.rpms-rust-utf16_iter-62b1a7f772ac@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rust-utf16_iter
Branch : epel10
Commit : 62b1a7f772acc6d174b05fbbf08aac7a046ee314
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-10-31T10:27:57+00:00
Stats : +22/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rust-utf16_iter/c/62b1a7f772acc6d174b05fbbf08aac7a046ee314?branch=epel10
Log:
Add a programmatic guard against future introduction of CC0-1.0 test code
---
diff --git a/rust-utf16_iter.spec b/rust-utf16_iter.spec
index 431eab3..501c25a 100644
--- a/rust-utf16_iter.spec
+++ b/rust-utf16_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:19 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=179541476882.1.3503199941554770522.rpms-rust-utf16_iter-62b1a7f772ac@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