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-vhost-device-sound] f43: Use rust2rpm.toml for some spec-file customizations
Date: Mon, 30 Nov 2026 15:02:46 GMT	[thread overview]
Message-ID: <179605096602.1.5226430290833570616.rpms-rust-vhost-device-sound-860355e6c56e@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rust-vhost-device-sound
Branch : f43
Commit : 860355e6c56e93c213003caa6d86bdd368565196
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-11-30T11:38:00+00:00
Stats  : +65/-6 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-vhost-device-sound/c/860355e6c56e93c213003caa6d86bdd368565196?branch=f43

Log:
Use rust2rpm.toml for some spec-file customizations

---
diff --git a/rust-vhost-device-sound.spec b/rust-vhost-device-sound.spec
index a2161ef..cf88eae 100644
--- a/rust-vhost-device-sound.spec
+++ b/rust-vhost-device-sound.spec
@@ -1,4 +1,4 @@
-# Generated by rust2rpm 27
+# Generated by rust2rpm 28
 %bcond check 1
 %bcond bundled_rust_deps %{defined:rhel}
 
@@ -89,7 +89,7 @@ License:        (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Apache-2.0 AND (Apa
 %doc CHANGELOG.md
 %doc README.md
 %{_bindir}/vhost-device-sound
-%{_mandir}/man1/*
+%{_mandir}/man1/vhost-device-sound.1*
 
 %if %{without bundled_rust_deps}
 # Packages that build with vendored dependencies MUST NOT provide a Rust library interface
@@ -210,9 +210,24 @@ install -p -m 644 vhost-device-sound.1 %{buildroot}/%{_mandir}/man1/
 
 %if %{with check}
 %check
-# * skip pipewire tests that fail because it requires test utility to launch a temporary dbus daemon for pipewire.
-# * skip alsa tests that fail because of unwrapping the result of PCM::new(), which lead to a runtime panic
-%cargo_test -- -- --skip audio_backends::pipewire::tests::test_pipewire_backend_invalid_stream --skip audio_backends::pipewire::tests::test_pipewire_backend_success --skip audio_backends::tests::test_alloc_audio_backend --skip audio_backends::alsa::tests::test_alsa_invalid_fmt --skip audio_backends::alsa::tests::test_alsa_valid_parameters --skip audio_backends::alsa::tests::test_alsa_ops --skip audio_backends::alsa::tests::test_alsa_invalid_rate --skip audio_backends::alsa::tests::test_alsa_invalid_state_transitions --skip audio_backends::alsa::tests::test_alsa_invalid_stream_id --skip audio_backends::gstreamer::tests::test_gstreamer_backend_success --skip audio_backends::gstreamer::tests::test_gstreamer_multiple_prepare_release_cycles --skip audio_backends::gstreamer::tests::test_gstreamer_invalid_state_transitions
+# * skip pipewire tests that fail because it requires test utility to launch a
+#   temporary dbus daemon for pipewire.
+# * skip alsa tests that fail because of unwrapping the result of PCM::new(),
+#   which lead to a runtime panic
+%{cargo_test -- -- %{shrink:
+    --skip audio_backends::pipewire::tests::test_pipewire_backend_invalid_stream
+    --skip audio_backends::pipewire::tests::test_pipewire_backend_success
+    --skip audio_backends::tests::test_alloc_audio_backend
+    --skip audio_backends::alsa::tests::test_alsa_invalid_fmt
+    --skip audio_backends::alsa::tests::test_alsa_valid_parameters
+    --skip audio_backends::alsa::tests::test_alsa_ops
+    --skip audio_backends::alsa::tests::test_alsa_invalid_rate
+    --skip audio_backends::alsa::tests::test_alsa_invalid_state_transitions
+    --skip audio_backends::alsa::tests::test_alsa_invalid_stream_id
+    --skip audio_backends::gstreamer::tests::test_gstreamer_backend_success
+    --skip audio_backends::gstreamer::tests::test_gstreamer_multiple_prepare_release_cycles
+    --skip audio_backends::gstreamer::tests::test_gstreamer_invalid_state_transitions
+}}
 %endif
 
 %changelog

diff --git a/rust2rpm.toml b/rust2rpm.toml
new file mode 100644
index 0000000..a193f70
--- /dev/null
+++ b/rust2rpm.toml
@@ -0,0 +1,44 @@
+[package]
+cargo-toml-patch-comments = [
+    "relax gstreamer crate dependencies to allow both v0.24 and v0.25",
+]
+extra-files = [
+    "%{_mandir}/man1/vhost-device-sound.1*",
+]
+
+[scripts]
+build.post = [
+    "%if %{with bundled_rust_deps}",
+    "%cargo_vendor_manifest",
+    "%endif",
+]
+install.post = [
+    "mkdir -p %{buildroot}/%{_mandir}/man1",
+    "install -p -m 644 vhost-device-sound.1 %{buildroot}/%{_mandir}/man1/",
+]
+
+[tests]
+comments = [
+    """\
+skip pipewire tests that fail because it requires test utility \
+to launch a temporary dbus daemon for pipewire.\
+""",
+    """\
+skip alsa tests that fail because of unwrapping the result of PCM::new(), \
+which lead to a runtime panic\
+""",
+]
+skip = [
+    "audio_backends::pipewire::tests::test_pipewire_backend_invalid_stream",
+    "audio_backends::pipewire::tests::test_pipewire_backend_success",
+    "audio_backends::tests::test_alloc_audio_backend",
+    "audio_backends::alsa::tests::test_alsa_invalid_fmt",
+    "audio_backends::alsa::tests::test_alsa_valid_parameters",
+    "audio_backends::alsa::tests::test_alsa_ops",
+    "audio_backends::alsa::tests::test_alsa_invalid_rate",
+    "audio_backends::alsa::tests::test_alsa_invalid_state_transitions",
+    "audio_backends::alsa::tests::test_alsa_invalid_stream_id",
+    "audio_backends::gstreamer::tests::test_gstreamer_backend_success",
+    "audio_backends::gstreamer::tests::test_gstreamer_multiple_prepare_release_cycles",
+    "audio_backends::gstreamer::tests::test_gstreamer_invalid_state_transitions",
+]

diff --git a/vhost-device-sound-fix-metadata.diff b/vhost-device-sound-fix-metadata.diff
index cfdfbe3..3965484 100644
--- a/vhost-device-sound-fix-metadata.diff
+++ b/vhost-device-sound-fix-metadata.diff
@@ -1,5 +1,5 @@
 --- vhost-device-sound-0.3.0/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ vhost-device-sound-0.3.0/Cargo.toml	2026-03-11T20:18:40.055931+00:00
++++ vhost-device-sound-0.3.0/Cargo.toml	2026-11-30T11:36:54.247824+00:00
 @@ -121,19 +121,19 @@
  optional = true
  

                 reply	other threads:[~2026-11-30 15:02 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=179605096602.1.5226430290833570616.rpms-rust-vhost-device-sound-860355e6c56e@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