public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Zephyr Lykos <git@mochaa.ws>
To: git-commits@fedoraproject.org
Subject: [rpms/FAudio] rawhide: Build FAudio-CS
Date: Fri, 20 Nov 2026 02:12:00 GMT [thread overview]
Message-ID: <179514072010.1.10177715614578106270.rpms-FAudio-458e349c1a2a@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/FAudio
Branch : rawhide
Commit : 458e349c1a2a64e52e470bcbd2806838eb3b5158
Author : Zephyr Lykos <git@mochaa.ws>
Date : 2026-11-17T19:35:05+08:00
Stats : +33/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/FAudio/c/458e349c1a2a64e52e470bcbd2806838eb3b5158?branch=rawhide
Log:
Build FAudio-CS
---
diff --git a/FAudio.spec b/FAudio.spec
index 93550d2..e0c1f27 100644
--- a/FAudio.spec
+++ b/FAudio.spec
@@ -12,6 +12,9 @@ BuildRequires: ninja-build
BuildRequires: gcc
BuildRequires: gcc-c++
+BuildRequires: mono-core
+BuildRequires: mono-devel
+
BuildRequires: SDL3-devel
BuildRequires: mingw32-filesystem >= 95
@@ -38,6 +41,17 @@ fully accurate DirectX Audio runtime libraries for the FNA project, including
XAudio2, X3DAudio, XAPO, and XACT3.
+%package csharp
+Summary: %{summary}
+BuildArch: noarch
+Requires: (libFAudio%{?_isa} = %{version}-%{release} if mono-core)
+Requires: (mingw32-%{name} = %{version}-%{release} if wine-mono)
+Requires: (mingw64-%{name} = %{version}-%{release} if wine-mono)
+
+
+%description csharp
+This is FAudio#, a C# wrapper for FAudio, an XAudio reimplementation for FNA.
+
%package -n libFAudio-devel
Summary: Development files for the FAudio library
Requires: libFAudio%{?_isa} = %{version}-%{release}
@@ -76,6 +90,11 @@ BuildArch: noarch
%cmake -GNinja
%cmake_build
+cp csharp/app.config %{_vpath_builddir}/FAudio-CS.dll.config
+# We don't have a bundled key, so borrow mono's.
+# This is intended usage, read rpms/mono's changelog for more info.
+mcs -unsafe -debug -keyfile:/etc/pki/mono/mono.snk -out:%{_vpath_builddir}/FAudio-CS.dll -target:library csharp/FAudio.cs
+
%mingw_cmake -GNinja
%mingw_ninja
@@ -83,10 +102,18 @@ BuildArch: noarch
%install
%cmake_install
+gacutil -i %{_vpath_builddir}/FAudio-CS.dll -package %{name} -root %{buildroot}%{_prefix}/lib
+
%mingw_ninja_install
%mingw_debug_install_post
+%check
+pushd %{_vpath_builddir}
+mono-shlib-cop FAudio-CS.dll
+popd
+
+
%files -n libFAudio
%license LICENSE
%doc README
@@ -107,6 +134,12 @@ BuildArch: noarch
%{_includedir}/FAudioFX.h
+%files csharp
+%license LICENSE
+%{_monodir}/%{name}/
+%{_monogacdir}/FAudio-CS/
+
+
%files -n mingw32-%{name}
%license LICENSE
%{mingw32_bindir}/FAudio.dll
reply other threads:[~2026-11-20 2: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=179514072010.1.10177715614578106270.rpms-FAudio-458e349c1a2a@fedoraproject.org \
--to=git@mochaa.ws \
--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