public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/FAudio] rawhide: Build FAudio-CS
@ 2026-11-20  2:12 Zephyr Lykos
  0 siblings, 0 replies; only message in thread
From: Zephyr Lykos @ 2026-11-20  2:12 UTC (permalink / raw)
  To: git-commits

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-20  2:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-20  2:12 [rpms/FAudio] rawhide: Build FAudio-CS Zephyr Lykos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox