From e6d2c875d6b64d43ec5bb9c4eb57a4ae857fa8a8 Mon Sep 17 00:00:00 2001 From: Michael Cronenworth Date: Mon, 22 Aug 2022 21:49:01 -0500 Subject: [PATCH] Update to 22.08 and initial MinGW package --- FAudio.spec | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 74 insertions(+), 2 deletions(-) diff --git a/FAudio.spec b/FAudio.spec index aa7d0d1..65262ea 100644 --- a/FAudio.spec +++ b/FAudio.spec @@ -1,6 +1,6 @@ Name: FAudio -Version: 22.03 -Release: 2%{?dist} +Version: 22.08 +Release: 1%{?dist} Summary: FNA is a reimplementation of the Microsoft XNA Game Studio 4.0 Refresh libraries License: zlib @@ -14,6 +14,13 @@ BuildRequires: make BuildRequires: SDL2-devel +BuildRequires: mingw32-filesystem >= 95 +BuildRequires: mingw32-gcc +BuildRequires: mingw32-SDL2 + +BuildRequires: mingw64-filesystem >= 95 +BuildRequires: mingw64-gcc +BuildRequires: mingw64-SDL2 %description This is FAudio, an XAudio reimplementation that focuses solely on developing @@ -40,18 +47,47 @@ Requires: libFAudio%{?_isa} = %{version}-%{release} Development files for the FAudio library. +%package -n mingw32-%{name} +Summary: %{summary} +BuildArch: noarch + + +%description -n mingw32-%{name} +%{summary} + + +%package -n mingw64-%{name} +Summary: %{summary} +BuildArch: noarch + + +%description -n mingw64-%{name} +%{summary} + + %prep %autosetup -p1 +mkdir ../mingw-build +cp -rp . ../mingw-build %build %cmake %cmake_build +pushd ../mingw-build +%mingw_cmake +%mingw_make %{?_smp_mflags} +popd + %install %cmake_install +pushd ../mingw-build +%mingw_make_install +popd + %files -n libFAudio %license LICENSE @@ -73,7 +109,43 @@ Development files for the FAudio library. %{_includedir}/FAudioFX.h +%files -n mingw32-%{name} +%license LICENSE +%{mingw32_bindir}/FAudio.dll +%{mingw32_includedir}/F3DAudio.h +%{mingw32_includedir}/FACT.h +%{mingw32_includedir}/FACT3D.h +%{mingw32_includedir}/FAPO.h +%{mingw32_includedir}/FAPOBase.h +%{mingw32_includedir}/FAPOFX.h +%{mingw32_includedir}/FAudio.h +%{mingw32_includedir}/FAudioFX.h +%{mingw32_libdir}/cmake/%{name}/ +%{mingw32_libdir}/libFAudio.dll.a +%{mingw32_libdir}/pkgconfig/%{name}.pc + + +%files -n mingw64-%{name} +%license LICENSE +%{mingw64_bindir}/FAudio.dll +%{mingw64_includedir}/F3DAudio.h +%{mingw64_includedir}/FACT.h +%{mingw64_includedir}/FACT3D.h +%{mingw64_includedir}/FAPO.h +%{mingw64_includedir}/FAPOBase.h +%{mingw64_includedir}/FAPOFX.h +%{mingw64_includedir}/FAudio.h +%{mingw64_includedir}/FAudioFX.h +%{mingw64_libdir}/cmake/%{name}/ +%{mingw64_libdir}/libFAudio.dll.a +%{mingw64_libdir}/pkgconfig/%{name}.pc + + %changelog +* Mon Aug 22 2022 Michael Cronenworth - 22.08-1 +- Update to 22.08 +- Initial MinGW package + * Wed Jul 20 2022 Fedora Release Engineering - 22.03-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild