public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jeremy Cline <jeremycline@microsoft.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-siguldry] epel10: Include the database migrations
Date: Mon, 01 Jun 2026 21:07:59 GMT	[thread overview]
Message-ID: <178034807933.1.5954872906062113477.rpms-rust-siguldry-6a9f1deb1235@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rust-siguldry
            Branch : epel10
            Commit : 6a9f1deb1235417abf05c6ad067a5da1374e139f
            Author : Jeremy Cline <jeremycline@microsoft.com>
            Date   : 2026-04-14T16:40:28-04:00
            Stats  : +6/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/rust-siguldry/c/6a9f1deb1235417abf05c6ad067a5da1374e139f?branch=epel10

            Log:
            Include the database migrations

While the CLI embeds these and will apply them for you, it's nice and
sometimes desirable to see what migrations are being applied.

---
diff --git a/rust-siguldry.spec b/rust-siguldry.spec
index 2aa9997..3a0f95a 100644
--- a/rust-siguldry.spec
+++ b/rust-siguldry.spec
@@ -85,6 +85,7 @@ License:        ((MIT OR Apache-2.0) AND Unicode-DFS-2016) AND (Apache-2.0) AND 
 %config(noreplace) %{_sysconfdir}/siguldry/bridge.toml
 %config(noreplace) %{_sysconfdir}/siguldry/client.toml
 %config(noreplace) %{_sysconfdir}/siguldry/server.toml
+%{_datadir}/siguldry
 %{_unitdir}/siguldry-bridge.service
 %{_unitdir}/siguldry-client-proxy@.service
 %{_unitdir}/siguldry-client-proxy.socket
@@ -178,6 +179,8 @@ install -D -p -m 0644 %{SOURCE10} %{buildroot}%{_sysusersdir}/siguldry.conf
 install -D -p -m 0644 %{SOURCE11} %{buildroot}%{_tmpfilesdir}/siguldry.conf
 
 ## Server-related files ##
+install -d -p -m 0755 %{buildroot}%{_datadir}/siguldry/migrations
+install -D -p -m 0644 migrations/* %{buildroot}%{_datadir}/siguldry/migrations/
 install -D -p -m 0644 siguldry-server.service %{buildroot}%{_unitdir}/siguldry-server.service
 install -D -p -m 0644 siguldry-signer@.service %{buildroot}%{_unitdir}/siguldry-signer@.service
 install -D -p -m 0644 siguldry-signer.socket %{buildroot}%{_unitdir}/siguldry-signer.socket

diff --git a/rust2rpm.toml b/rust2rpm.toml
index 6330bd5..ced0c48 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -14,6 +14,7 @@ extra-files = [
 	"%config(noreplace) %{_sysconfdir}/siguldry/bridge.toml",
 	"%config(noreplace) %{_sysconfdir}/siguldry/client.toml",
 	"%config(noreplace) %{_sysconfdir}/siguldry/server.toml",
+	"%{_datadir}/siguldry",
 	"%{_unitdir}/siguldry-bridge.service",
 	"%{_unitdir}/siguldry-client-proxy@.service",
 	"%{_unitdir}/siguldry-client-proxy.socket",
@@ -50,6 +51,8 @@ post = [
 	"install -D -p -m 0644 %{SOURCE11} %{buildroot}%{_tmpfilesdir}/siguldry.conf",
 	"",
 	"## Server-related files ##",
+	"install -d -p -m 0755 %{buildroot}%{_datadir}/siguldry/migrations",
+	"install -D -p -m 0644 migrations/* %{buildroot}%{_datadir}/siguldry/migrations/",
 	"install -D -p -m 0644 siguldry-server.service %{buildroot}%{_unitdir}/siguldry-server.service",
 	"install -D -p -m 0644 siguldry-signer@.service %{buildroot}%{_unitdir}/siguldry-signer@.service",
 	"install -D -p -m 0644 siguldry-signer.socket %{buildroot}%{_unitdir}/siguldry-signer.socket",

                 reply	other threads:[~2026-06-01 21:07 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=178034807933.1.5954872906062113477.rpms-rust-siguldry-6a9f1deb1235@fedoraproject.org \
    --to=jeremycline@microsoft.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