public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Paul Murphy <murp@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rust] rawhide: Add copr srpm makefile
Date: Thu, 15 Oct 2026 18:12:38 GMT	[thread overview]
Message-ID: <179208795865.1.6652082104252230797.rpms-rust-ee7a5c4f23dd@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rust
            Branch : rawhide
            Commit : ee7a5c4f23ddc620daceef4d5ad9cbcabeaf9e47
            Author : Paul Murphy <murp@redhat.com>
            Date   : 2026-10-15T11:11:41-07:00
            Stats  : +18/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/rust/c/ee7a5c4f23ddc620daceef4d5ad9cbcabeaf9e47?branch=rawhide

            Log:
            Add copr srpm makefile

This seems to be the most flexible way to prepare an srpm
with copr. It's loosely based off LLVM's.

rpmautospec is explicitly run. copr will repackage this srpm
in an environment without the distgit history.

[skip changelog]

---
diff --git a/.copr/Makefile b/.copr/Makefile
new file mode 100644
index 0000000..b233192
--- /dev/null
+++ b/.copr/Makefile
@@ -0,0 +1,18 @@
+# See "make srpm" within https://docs.copr.fedorainfracloud.org/user_documentation.html#scm
+
+outdir?=$(shell pwd)
+spec?=rust.spec
+required_packages=rpmdevtools rpmautospec
+
+.PHONY: srpm
+srpm:
+	rpm -q $(required_packages) || dnf install -y $(required_packages) --setopt=install_weak_deps=False
+
+	spectool -g $(spec) --directory $(shell pwd)
+
+	rpmautospec process-distgit $(spec) $(spec)
+
+	rpmbuild \
+		--define "_sourcedir $(shell pwd)" \
+		--define "_srcrpmdir $(outdir)" \
+		-bs $(spec)

                 reply	other threads:[~2026-10-15 18:12 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=179208795865.1.6652082104252230797.rpms-rust-ee7a5c4f23dd@fedoraproject.org \
    --to=murp@redhat.com \
    --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