public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-utf16_iter] f45: Add a programmatic guard against future introduction of CC0-1.0 test code
@ 2026-11-23 6:19 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-11-23 6:19 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-utf16_iter
Branch : f45
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=f45
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\
+""",
+]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-23 6:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 6:19 [rpms/rust-utf16_iter] f45: Add a programmatic guard against future introduction of CC0-1.0 test code 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